body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #667eea, #764ba2);
  text-align: center;
  color: white;
  padding: 20px;
  margin: 0;
}

.quiz-container {
  background: white;
  padding: 20px;
  width: 60%;
  max-width: 800px;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
  color: black;
  animation: fadeIn 0.8s ease-in-out;
}

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

p {
  line-height: 1.6;
}

button {
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 6px;
  margin: 10px;
  transition: background 0.3s ease-in-out;
}

button:hover {
  background-color: #218838;
}

#downloadBtn:disabled {
  background-color: gray;
  cursor: not-allowed;
}

.correct {
  color: green;
  font-weight: bold;
  animation: blink 0.3s ease-in-out 2;
}

.incorrect {
  color: red;
  font-weight: bold;
  animation: shake 0.3s ease-in-out;
}

label {
  display: block;
  margin: 4px 0;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

input[type="radio"]:hover + label,
input[type="radio"]:focus + label {
  background-color: #f0f0f0;
}

.question-block {
  margin-bottom: 20px;
  padding: 10px;
  border-left: 4px solid transparent;
  transition: border-left 0.3s ease;
}

.correct input[type="radio"] {
  accent-color: green;
}

.incorrect input[type="radio"] {
  accent-color: red;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  50% { opacity: 0.3; }
}

@keyframes shake {
  0% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .quiz-container {
    width: 90%;
    padding: 15px;
  }

  button {
    width: 90%;
    font-size: 15px;
  }
}
