body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #f4f6f9;
  color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.quiz-container {
  background: #ffffff;
  padding: 25px 35px;
  border-radius: 12px;
  width: 420px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

h1 {
  margin-bottom: 20px;
  color: #333;
}

#quiz-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-weight: bold;
}

#question {
  margin: 20px 0;
  color: #222;
}

#options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  background: #fff;
  border: 2px solid #ddd;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #000; /* black text */
  transition: all 0.25s ease-in-out;
}

.option:hover {
  border-color: #1976d2;
  background: #f1f6ff;
  transform: translateY(-2px);
}

.correct {
  background-color: #4caf50 !important;
  color: #fff !important;
  border: none;
}

.wrong {
  background-color: #f44336 !important;
  color: #fff !important;
  border: none;
}

#next-btn, button {
  margin-top: 20px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: #1976d2;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#next-btn:hover, button:hover {
  background: #125ea9;
  transform: scale(1.05);
}

.hidden {
  display: none;
}

#explanation {
  margin-top: 15px;
  padding: 10px;
  border-left: 4px solid #1976d2;
  background: #eef3fb;
  border-radius: 6px;
  text-align: left;
  font-size: 14px;
}

/* #result-box h2 {
  margin-bottom: 15px;
  color: #222;
}

#result-box p {
  font-size: 16px;
  margin: 8px 0;
} */

#result-box {
  text-align: center;
}

#result-box h2 {
  margin-bottom: 20px;
  color: #222;
  font-size: 22px;
}

.result-stats {
  display: flex;
  justify-content: space-around;
  gap: 25px; 
  margin: 20px 0;
}

.stat-card {
  background: #f9fafc;
  border: 2px solid #ddd;
  padding: 15px 20px;
  border-radius: 10px;
  width: 100px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card h3 {
  margin: 0;
  font-size: 16px;
  color: #1976d2;
  font-weight: bold;
}
