/* General Styles */
body {
  font-family: Arial, sans-serif;
  background: #111;
  color: #fff;
  margin: 0;
  padding: 20px;
  text-align: center;
}

h1 {
  color: #00ffcc;
  font-size: 2.5em;
  margin-bottom: 20px;
}

/* Box for school level selection */
.box {
  background: #222;
  padding: 20px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.box label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #00ffcc;
}

.box select {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  background: #333;
  color: #fff;
  font-size: 16px;
}

.box select:focus {
  outline: none;
  box-shadow: 0 0 5px #00ffcc;
}

/* Score and lives display */
p {
  font-size: 18px;
  margin: 10px 0;
}

#score, #lives {
  color: #00ffcc;
  font-weight: bold;
}

/* Question display */
#question {
  font-size: 24px;
  margin: 20px 0;
  color: #fff;
}

/* Answer input */
#answer {
  padding: 10px;
  font-size: 18px;
  border: none;
  border-radius: 4px;
  background: #333;
  color: #fff;
  width: 200px;
  margin: 10px;
  text-align: center;
}

#answer:focus {
  outline: none;
  box-shadow: 0 0 5px #00ffcc;
}

/* Buttons */
button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  background: #00ffcc;
  color: #111;
  cursor: pointer;
  margin: 10px;
  transition: background 0.3s;
}

button:hover {
  background: #00cccc;
}

#startBtn {
  background: #ffcc00;
  color: #111;
}

#startBtn:hover {
  background: #ffaa00;
}

/* Result and explanation */
#result {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0;
}

#explanation {
  font-size: 16px;
  color: #ccc;
  margin: 10px 0;
}

/* Progress bar */
.progress {
  width: 100%;
  max-width: 400px;
  height: 20px;
  background: #333;
  border-radius: 10px;
  margin: 20px auto;
  overflow: hidden;
}

#progressBar {
  height: 100%;
  background: #00ffcc;
  width: 0%;
  transition: width 0.3s;
}

/* Badge */
#badge {
  font-size: 18px;
  color: #ffcc00;
  font-weight: bold;
  margin: 20px 0;
}

/* 📱 Mobile */
@media (max-width: 600px) {
  h1 {
    font-size: 2em;
  }

  .box {
    max-width: 90%;
  }

  #answer {
    width: 80%;
  }

  button {
    width: 80%;
    margin: 10px auto;
    display: block;
  }

  .progress {
    max-width: 90%;
  }
}

/* 🌙 Dark mode (already dark, but for consistency) */
body.dark {
  background: #000;
}

body.dark .box {
  background: #111;
}

body.dark .progress {
  background: #222;
}