/* Prevent text selection across the entire project */
* {
    user-select: none;         /* Standard */
    -webkit-user-select: none; /* Safari/Chrome */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* index.html */
/* Theme toggle button */
body.dark {
  background-color: #1a1a1a;
  color: #cccccc;
}

body.dark .hero-section,
body.dark .about-section {
  background-color: #1a1a1a;
}

body.dark .hero-title,
body.dark .about-title 
/* body.dark .about-card,
body.dark .emoji-card  */
{
  color: #cccccc;
}

body.dark .hero-tagline {
  color: #ffffff;
}

/* body.dark .about-card, */
/* body.dark .emoji-card {
  background-color: #2c2c2c;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
} */

body.dark .about-card {
  background: linear-gradient(135deg, #2c2c2c, #1e1e1e);
  color: #e5e5e5;
  box-shadow: -6px 8px 20px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.05);
}

body.dark .emoji-card {
  background: #2a2a2a;
  color: #cccccc;
  box-shadow: 0 6px 14px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.05);
}

body.dark .emoji-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.8);
}

body.dark .emoji-title-health {
  color: #ff6b6b;
}

body.dark .emoji-title-wallet {
  color: #ffb74c;
}

body.dark .emoji-title-environment {
  color: #4caf50;
}

body.dark .emoji-card p {
  color: #cccccc;
}

body.dark .features-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

body.dark .features-title {
  color: #ffffff;
}

body.dark .feature-card {
  background-color: #2c2c2c;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  color: #ffffff;
}

body.dark .feature-card .feature-title {
  color: #ffffff;
}

body.dark .feature-card .feature-info {
  color: #cccccc;
}

body.dark .how-to-play-section {
  background-color: #1a1a1a;
}

body.dark .how-to-play-card {
  background-color: #2c2c2c;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

body.dark .how-to-play-info {
  color: #cccccc;
}

body.dark .how-to-play-container::before {
  background: linear-gradient(135deg, #d40101, #ffb74c, #0059ff);
}

body.dark .how-to-play-card::before {
  background-color: #2c2c2c;
  border-color: linear-gradient(135deg, #d40101, #ffb74c, #0059ff);
}

body.dark .footer {
  background-color: #1a1a1a;
  border-top: 2px dashed #444;
}

body.dark .footer p {
  color: #f5f5f5;
}

body.dark .github-link {
  color: #cfcfcf;
}

body.dark .github-link:hover {
  color: #4da6ff;
}

body.dark .github-icon {
  color: #fff;
}

body.dark .navbar {
  background-color: #2c2c2c;
  border-bottom: 1px solid #444;
}

body.dark .nav-link {
  color: #cfcfcf;
}

body.dark .nav-link:hover,
body.dark .nav-link.active {
  color: #ffffff;
}

.navbar .nav-right {
  display: flex;
  align-items: center;
  margin-left: 2rem;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background-color: #ffffff;
  transition: all 0.3s;
  cursor: pointer;
}

.theme-toggle-btn img {
  width: 20px;
  height: 20px;
}

body.dark .theme-toggle-btn {
  background-color: #444;
  border-color: #666;
}

/* game.html */
body.dark #game-container {
  background: #2c2c2c;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
}

body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode #game-container {
    background-color: #1e1e1e;
}

body.dark-mode #stats-container {
    background: rgba(50, 50, 50, 0.85);
    color: #f0f0f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

body.dark-mode .choice-btn {
    background-color: #333;
    color: #f0f0f0;
    border: 1px solid #555;
}

body.dark-mode .choice-btn:hover {
    background-color: #444;
}

body.dark-mode .floating-change {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

body.dark-mode .final-stats-container {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* body.dark-mode .play-again-btn {
    background-color: lightblue;
    color: #000;
}

body.dark-mode .play-again-btn:hover {
    background-color: deepskyblue;
} */

body.dark-mode #path {
  background: linear-gradient(135deg, #f75f5f, #ffb43c, #3499ff);
}

body.dark-mode #character {
  color: #ffeb3b;
}

body.dark-mode .marker {
  color: #ccc;
}

body.dark-mode #food {
  color: #ff9800;
}

body.dark-mode .mode-icon:first-child {
    opacity: 0.4;
}

body.dark-mode .mode-icon:last-child {
    opacity: 1;
}

.dark-mode-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.mode-icon {
    pointer-events: none;
    transition: opacity 0.3s;
}

body.dark-mode .go-back-btn {
  background: rgba(40, 40, 40, 0.9);
  color: #eee;
}

body.dark-mode .go-back-btn:hover {
  background: rgba(60, 60, 60, 1);
}

body.dark .game-hint {
  color: #aaa;
}

body.dark-mode .memory-rule {
    color: #f0f0f0;        
}

body.dark .card-front,
body.dark .card-back {
  background: #2b2b2b;
  color: #f5f5f5;
}

body.dark .card-back {
  background: #595959;
}

.dark-mode .plate-container {
    background: radial-gradient(circle at 30% 30%, #2b2b2b, #1a1a1a);
    border: 4px solid #81c784;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.dark-mode .plate {
    background: radial-gradient(circle at 40% 40%, #2e2e2e, #3b3b3b);
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.08);
}

body.dark-mode #supermarket-dash {
  color: #f1f5f9;
}

body.dark-mode .dash-hint { color: #f0f0f0; }
body.dark-mode .dash-hint .healthy { color: #4caf50; }
body.dark-mode .dash-hint .junk { color: #ff6b6b; }
body.dark-mode .dash-hint .coin { color: #facc15; }

body.dark-mode .dash-play-area {
  background: #1f2937;
  border: 1px solid #374151;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .healthy-catch {
  animation: healthyFlashDark 0.35s ease;
}

@keyframes healthyFlashDark {
  0%   { background-color: #1f2937; } 
  50%  { background-color: rgba(16, 185, 129, 0.35); }
  100% { background-color: #1f2937; }
}

body.dark-mode .junk-catch {
  animation: junkFlashDark 0.35s ease;
}

@keyframes junkFlashDark {
  0%   { background-color: #1f2937; }
  50%  { background-color: rgba(239, 68, 68, 0.35); }
  100% { background-color: #1f2937; }
}

body.dark-mode .coin-catch {
  animation: coinFlashDark 0.35s ease;
}

@keyframes coinFlashDark {
  0%   { background-color: #1f2937; }
  50%  { background-color: rgba(250, 204, 21, 0.35); }
  100% { background-color: #1f2937; }
}
