/* General Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Comic Sans MS', cursive;
  background: linear-gradient(135deg, #83a4d4, #b6fbff);
  min-height: 100vh;
  overflow: hidden;
}

/* Screen Styles */
.screen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

/* Home Screen */
#homeScreen {
  background: rgb(139, 205, 216);
}

#homeScreen h1 {
  animation: float 2s infinite;
  font-size: 3em;
  color: #e74c3c;
  margin: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.how-to-play {
  background: #f1c40f;
  padding: 20px;
  border-radius: 15px;
  margin: 20px;
  max-width: 500px;
  text-align: left;
}

/* Settings Button */
.settings-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s;
}

.settings-btn:hover {
  transform: rotate(180deg);
}

/* Settings Modal */
.settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.settings-content {
  background: white;
  padding: 20px;
  border-radius: 15px;
  width: 300px;
  margin: 50px auto;
  text-align: center;
}

.volume-control {
  margin: 20px 0;
}

.volume-control input[type="range"] {
  width: 80%;
  margin: 10px 0;
}

/* Game Screen */
.game-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

#gameContainer .monster {
  font-size: 100px;
  cursor: pointer;
  transition: transform 0.2s;
  margin: 20px;
}

.monster:hover {
  transform: scale(1.1);
}

.hearts {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px;
  font-size: 30px;
}

.question-box {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin: 20px;
}

.answers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.answer-btn {
  padding: 15px;
  font-size: 24px;
  border: none;
  border-radius: 10px;
  background: #ffd700;
  cursor: pointer;
  transition: all 0.2s;
}

.answer-btn:hover {
  background: #ffdf4d;
  transform: scale(1.05);
}

.score-board {
  display: flex;
  justify-content: space-around;
  font-size: 24px;
  color: #2c3e50;
  margin: 20px;
}

/* End Screen */
#endScreen {
  background: rgba(255, 255, 255, 0.95);
}

/* Buttons */
button {
  padding: 15px 30px;
  font-size: 24px;
  border: none;
  border-radius: 25px;
  background: #2ecc71;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  margin: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button:hover {
  transform: scale(1.1);
  background: #27ae60;
}

/* Animations */
@keyframes confetti {
  0% { transform: translateY(-100%) rotate(0deg); }
  100% { transform: translateY(100vh) rotate(360deg); }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
  75% { transform: translateX(-10px); }
  100% { transform: translateX(0); }
}