body {
  background: linear-gradient(135deg, #193d61, #1797a8);
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
}

.container {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 400px;
  text-align: center;
}

h1 {
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 15px;
}

.counter {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #555;
}

.word {
  font-size: 2rem;
  margin: 20px 0;
  font-weight: bold;
  color: #444;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  font-size: 1.2rem;
  border: 2px solid #ccc;
  border-radius: 5px;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.buttons {
  margin-bottom: 15px;
}

.button {
  padding: 10px 15px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button-check {
  background-color: #4caf50;
  color: #fff;
}

.button-hint {
  background-color: #2196f3;
  color: #fff;
}

.button-next {
  background-color: #ff9800;
  color: #fff;
}

.button-check:hover {
  background-color: #45a049;
}

.button-hint:hover {
  background-color: #1976d2;
}

.button-next:hover {
  background-color: #e68900;
}

.feedback {
  font-size: 1.2rem;
  margin-top: 10px;
  min-height: 24px;
}

/* Hint area styling */
#hintArea {
  margin-top: 5px;
  font-size: 1rem;
  color: #333;
}

/* Feedback animations */
.correct-animation {
  animation: correctAnim 0.5s;
}
@keyframes correctAnim {
  0% {
    background-color: #fff;
  }
  50% {
    background-color: #c8e6c9;
  }
  100% {
    background-color: #fff;
  }
}

.wrong-animation {
  animation: wrongAnim 0.5s;
}
@keyframes wrongAnim {
  0% {
    background-color: #fff;
  }
  50% {
    background-color: #ffcdd2;
  }
  100% {
    background-color: #fff;
  }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  h1 {
    font-size: 1.4rem;
  }
  .word {
    font-size: 1.8rem;
  }
  input[type="text"] {
    font-size: 1rem;
  }
  .button {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
  .feedback {
    font-size: 1rem;
  }
  /* Update container to fill the viewport horizontally */
  .container {
    width: 100vw;
    max-width: 100vw;
    padding: 10px;
    margin: 0;
    border-radius: 0;
  }
}

/* Fireworks container */
#fireworks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* Firework particle styling */
.firework {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: explode 2s ease-out forwards;
}

/* Keyframes for firework explosion */
@keyframes explode {
  from {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)))
      scale(5);
    opacity: 0;
  }
}

/* Bounce animation for 5 in a row */
@keyframes bounce {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(0.95);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.bounce-animation {
  animation: bounce 0.8s ease;
}
