:root {
  --primary-color: #9C27B0;
  --secondary-color: #FFC107;
  --accent-color: #FF4081;
  --background-color: #F3E5F5;
  --text-color: #333;
  --correct-color: #4CAF50;
  --incorrect-color: #F44336;
  
  /* Define common colors used in the game */
  --color-red: #F44336;
  --color-blue: #2196F3;
  --color-green: #4CAF50;
  --color-yellow: #FFEB3B;
  --color-purple: #9C27B0;
  --color-orange: #FF9800;
  --color-pink: #FF4081;
  --color-brown: #795548;
  --color-black: #212121;
  --color-white: #FFFFFF;
}

body {
  font-family: 'Comic Neue', 'Bubblegum Sans', cursive;
  background-color: var(--background-color);
  background-image: linear-gradient(45deg, rgba(156, 39, 176, 0.05) 25%, transparent 25%, transparent 75%, rgba(156, 39, 176, 0.05) 75%),
                    linear-gradient(45deg, rgba(156, 39, 176, 0.05) 25%, transparent 25%, transparent 75%, rgba(156, 39, 176, 0.05) 75%);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
}

.game-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background-color: #F3E5F5;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.score, .level, .timer {
  font-size: 1.3rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  background-color: white;
}

.score {
  color: var(--primary-color);
}

.level {
  color: var(--secondary-color);
}

.timer {
  color: var(--accent-color);
}

.game-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.color-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 30px;
}

.color-name {
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
  padding: 10px 25px;
  border-radius: 15px;
  background-color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  color: var(--text-color);
}

.color-box {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.color-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 100%);
}

.color-options {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

.option-btn {
  background-color: white;
  color: var(--text-color);
  border: none;
  padding: 15px 40px;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.option-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  transition: opacity 0.3s;
}

.option-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.option-btn:active {
  transform: translateY(1px);
}

.yes-btn {
  background-color: var(--correct-color);
  color: white;
}

.no-btn {
  background-color: var(--incorrect-color);
  color: white;
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

#start-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#start-button:hover {
  background-color: #7B1FA2;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.sound-btn {
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.sound-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.instructions {
  background-color: #F3E5F5;
  padding: 15px;
  border-radius: 15px;
  margin-top: 20px;
}

.instructions h3 {
  color: var(--primary-color);
  margin-top: 0;
}

.instructions p {
  margin: 8px 0;
}

.feedback {
  position: absolute;
  font-size: 3rem;
  font-weight: bold;
  color: white;
  padding: 10px 30px;
  border-radius: 15px;
  transform: translate(-50%, -50%);
  z-index: 100;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  opacity: 0;
  animation: fadeInOut 1.5s ease-in-out;
  pointer-events: none;
}

.feedback.correct {
  background-color: var(--correct-color);
}

.feedback.wrong {
  background-color: var(--incorrect-color);
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

.level-complete, .game-over {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 100;
}

.level-complete.show, .game-over.show {
  opacity: 1;
  pointer-events: all;
}

.level-complete-text, .game-over-text {
  color: white;
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.final-score {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 30px;
}

.confetti {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: multiply;
  will-change: transform, opacity;
}


.pulse {
  animation: pulse-animation 1s ease-in-out;
}

@keyframes pulse-animation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .game-info {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  
  .color-box {
    width: 150px;
    height: 150px;
  }
  
  .color-name {
    font-size: 2rem;
  }
  
  .option-btn {
    padding: 12px 30px;
    font-size: 1.3rem;
  }
} 