* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(to right, #ffe259, #ffa751);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

#dark-mode-btn {
  margin-bottom: 20px;
  padding: 10px 20px;
  border: none;
  background-color: #333;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}

.quiz-container {
  background-color: #fff;
  padding: 50px;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

.question {
  font-size: 35px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #333;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.answers button {
  padding: 16px 25px;
  border: none;
  border-radius: 10px;
  background-color: #f7b733;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.answers button:hover {
  background-color: #fc4a1a;
  transform: scale(1.02);
}

.score-section {
  margin-top: 20px;
}

#score {
  font-size: 22px;
  font-weight: bold;
  color: #2d3436;
  margin-bottom: 20px;
}

#restart-btn {
  padding: 12px 20px;
  font-size: 16px;
  background-color: #f60c0c;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#restart-btn:hover {
  background-color: #98011a;
}

.progress-bar {
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
  height: 16px;
  margin-bottom: 20px;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #f7971e, #ffd200);
  transition: width 0.5s ease;
}

.fade-question {
  animation: fadeQuestion 0.4s ease-in-out;
}

@keyframes fadeQuestion {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.correct {
  background-color: #2ecc71 !important;
  color: white;
}

.incorrect {
  background-color: #e74c3c !important;
  color: white;
}

/* DARK MODE */
body.dark-mode {
  background: linear-gradient(to right, #141e30, #243b55);
  color: #f1f1f1;
}

body.dark-mode .quiz-container {
  background-color: #2c3e50;
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

body.dark-mode .question,
body.dark-mode #score {
  color: #fff;
}

body.dark-mode .answers button {
  background-color: #34495e;
  color: #ecf0f1;
}

body.dark-mode .answers button:hover {
  background-color: #3b5998;
}

body.dark-mode #restart-btn {
  background-color: #7f8c8d;
}

body.dark-mode #restart-btn:hover {
  background-color: #95a5a6;
}

