body {
  background-color: #f4f4f4;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

#quiz-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.question {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 5px;
  border: 1px solid #eee;
}

.question h3 {
  color: #333;
  margin-bottom: 15px;
}

.question label {
  display: block;
  margin: 10px 0;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.question label:hover {
  background-color: #f0f0f0;
}

.question input[type="radio"] {
  margin-right: 10px;
}

#progress-bar {
  width: 0%;
  height: 20px;
  background-color: #4caf50;
  border-radius: 10px;
  margin: 20px 0;
  transition: width 0.3s ease;
  text-align: center;
  color: white;
  line-height: 20px;
  font-size: 12px;
}

#navigation {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

#navigation button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background: #4caf50;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

#navigation button:hover {
  background: #45a049;
}

#navigation button:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

#result {
  text-align: center;
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#result h2 {
  color: #333;
  margin-bottom: 10px;
}

#result p {
  color: #666;
  font-size: 1.1em;
}

.hidden {
  display: none;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .question label:hover {
    outline: 2px solid CanvasText;
  }

  #navigation button {
    border: 2px solid CanvasText;
  }
}
