body {
  background: linear-gradient(to right, #4facfe, #00f2fe);
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
}

.quiz-container {
  border-radius: 15px;
  background-color: white;
  animation: fadeIn 0.8s ease;
}

h3 {
  color: #333;
  letter-spacing: 0.5px;
}

/* --- Option Buttons --- */
.option-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
  padding: 15px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background-color: #f9f9f9;
  color: #333;
  font-weight: 500;
  transition: all 0.25s ease;
  overflow: hidden;
}

.option-btn::before {
  content: "";
  position: absolute;
  left: 0;
  width: 5px;
  height: 100%;
  background: transparent;
  transition: background 0.3s ease;
}

.option-btn:hover {
  border-color: #007bff;
  background-color: #eaf2ff;
  transform: translateY(-2px);
}

.option-btn.selected {
  border-color: #007bff;
  background-color: #007bff;
  color: white;
}

.option-btn.correct {
  border-color: #28a745;
  background-color: #28a745;
  color: #fff;
}

.option-btn.wrong {
  border-color: #dc3545;
  background-color: #dc3545;
  color: #fff;
}

.option-btn.correct::before {
  background: #28a745;
}

.option-btn.wrong::before {
  background: #dc3545;
}

/* Feedback section */
#feedback {
  font-size: 1rem;
  border-top: 1px solid #ddd;
  margin-top: 15px;
  padding-top: 10px;
  animation: fadeInUp 0.5s ease;
}

/* Result box */
.result-box {
  animation: fadeInUp 0.7s ease;
  text-align: center;
}

.result-score {
  font-size: 2.5rem;
  font-weight: bold;
  color: #007bff;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
