* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --primary-color: #2041ff;
  --secondary-color: #6ea3ff;
  --accent-color: #ffffff;
  --light-color: #aff3ff;
  --text-color: #000000;
  --white: #ffffff;
  --error-color: #fe615c;
  --success-color: #4caf50;
  --card-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Header styles */
.header-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 0 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #fff;
  transition: all 0.3s ease;
}

.header-menu:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.logo {
  font-size: 28px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

.navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.header-menu .navigation ul li {
  position: relative;
}

.header-menu .navigation ul li a {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  padding: 22px 20px;
  display: block;
  transition: all 0.3s ease;
}

.header-menu .navigation ul li a:hover {
  background-color: rgba(255, 255, 255, 0.733);
  transform: translateY(-2px);
  color: var(--primary-color);
}

#toggle,
.header-menu label {
  display: none;
  cursor: pointer;
}

.menu {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

@media (max-width: 950px) {
  .header-menu label {
    display: initial;
  }

  .header-menu {
    padding: 15px 10%;
  }

  .header-menu .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    display: none;
    border-radius: 0 0 12px 12px;
  }

  .header-menu .navigation ul {
    flex-direction: column;
  }

  .header-menu .navigation ul li {
    width: 100%;
  }

  .header-menu .navigation ul li a {
    padding: 12px 20px;
  }

  #toggle:checked ~ .navigation {
    display: block;
    animation: slideDown 0.4s ease-out;
  }
}

/* Body styles */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, hsl(215, 100%, 86%), #3b97ff, #5c9bee);
  margin: 0;
  padding: 0;
  padding-top: 80px;
  min-height: 100vh;
  color: var(--text-color);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Game container styles */
.main-container {
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
  padding: 20px;
}

.game-container {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.game-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

h1 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 2.2rem;
  text-align: center;
  font-weight: 700;
}

.progress {
  margin: 20px 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  text-align: center;
}

.verb-display {
  font-size: 2rem;
  margin: 25px 0;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
}

input {
  padding: 12px 20px;
  font-size: 1.1rem;
  width: 100%;
  max-width: 300px;
  border: 2px solid #ddd;
  border-radius: 30px;
  outline: none;
  transition: all 0.3s;
  text-align: center;
}

input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(32, 65, 255, 0.2);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

button {
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#checkButton {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  box-shadow: 0 4px 8px rgba(32, 65, 255, 0.2);
}

#checkButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(32, 65, 255, 0.3);
}

#nextButton {
  background-color: #4caf50;
  color: white;
}

#nextButton:hover {
  background-color: #3e8e41;
  transform: translateY(-2px);
}

#restartButton {
  background-color: var(--error-color);
  color: white;
}

#restartButton:hover {
  background-color: #e53935;
  transform: translateY(-2px);
}

.result {
  margin: 25px 0;
  font-size: 1.1rem;
  min-height: 27px;
  text-align: center;
  padding: 15px;
  border-radius: 8px;
}

.correct {
  color: var(--success-color);
  background-color: rgba(76, 175, 80, 0.1);
  border-left: 4px solid var(--success-color);
}

.incorrect {
  color: var(--error-color);
  background-color: rgba(254, 97, 92, 0.1);
  border-left: 4px solid var(--error-color);
}

.score-container {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.score {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
}

.score span {
  font-size: 1.5rem;
}

.celebration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.5s;
}

.celebration-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  animation: zoomIn 0.5s;
}

.celebration-content h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
}

.celebration-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.celebration-content button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-container {
    padding: 15px;
  }

  .game-container {
    padding: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .verb-display {
    font-size: 1.8rem;
  }

  .input-container {
    flex-direction: column;
  }

  input {
    width: 100%;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
  }

  button {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  .verb-display {
    font-size: 1.5rem;
  }

  input {
    font-size: 1rem;
    padding: 10px 15px;
  }
}
