/* Add styles here */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f0f8ff;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden; /* Hide scrollbars */
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

#quiz-container {
  position: relative;
  background-color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 90%;
  max-width: 400px;
}

h1 {
  color: #ff69b4;
}

#problem {
  font-size: 2em;
  margin: 20px 0;
}

#answer-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}

.answer-btn {
  background-color: #add8e6;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-size: 1.5em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.answer-btn:hover {
  background-color: #87ceeb;
}

#feedback {
  font-size: 1.2em;
  margin-top: 20px;
  min-height: 20px;
  font-weight: bold;
}

#score-container {
  margin-top: 20px;
  font-size: 1.2em;
}

.mini-emoji {
  position: absolute;
  width: 40px;
  height: 40px;
  font-size: 30px;
  line-height: 40px;
  text-align: center;
}

.emoji1 { top: -10px; left: -10px; }
.emoji2 { top: -10px; right: -10px; }
.emoji3 { bottom: 5px; left: -10px; }
.emoji4 { bottom: 5px; right: -10px; }

/* Responsive styles */
@media (max-width: 600px) {
  #quiz-container {
    width: 95%;
    padding: 15px;
  }

  .answer-btn {
    font-size: 1.2em;
    padding: 10px;
  }

  .mini-emoji {
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 30px;
  }
}

/* Animations */
.correct-answer-animation {
  animation: jump 0.5s ease-in-out;
}

.incorrect-answer-animation {
  animation: shake 0.5s ease-in-out;
}

@keyframes jump {
  0% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-20px) rotate(10deg); }
  100% { transform: translateY(0) rotate(0); }
}

@keyframes shake {
  0% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-10px) rotate(-5deg); }
  50% { transform: translateX(10px) rotate(5deg); }
  75% { transform: translateX(-10px) rotate(-5deg); }
  100% { transform: translateX(0) rotate(0); }
}
