:root {
  --primary-color: #9177de;
  --primary-hover: #6721fd;
  --primary-shadow: rgba(128, 97, 251, 0.3);
  --primary-shadow-hover: rgba(164, 97, 251, 0.4);
}

html {
  background-color: #eceaff;
}
.quiz-container {
  max-width: 800px;
  margin: 150px auto 0px;
  padding: 0px;
  font-family: 'Arial', sans-serif;
}

.quiz-header {
  text-align: center;
  margin-bottom: 2rem;
}

.quiz-header h1 {
  color: #333;
  margin-bottom: 1rem;
}

.progress {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e1e5e9;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-hover)
  );
  transition: width 0.3s ease;
}

.question-card {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.question-text h2 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: left;
}

.option:hover:not(:disabled) {
  border-color: var(--primary-color);
  background: #f8f9fa;
  transform: translateY(-2px);
}

.option:disabled {
  cursor: not-allowed;
}

.option.correct {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.option.incorrect {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.explanation {
  margin: 1.5rem 0px 4rem 0px;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.explanation p {
  margin: 0px;
  color: #666;
  font-style: italic;
}

.next-button {
  position: absolute;
  right: 32px;
  bottom: 32px;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--primary-shadow);
}

.next-button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-shadow-hover);
}

.next-button:active {
  transform: translateY(0);
}

.results-card {
  text-align: center;
  background: white;
  border-radius: 12px;
  padding: 3rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.results-card h2 {
  color: #333;
  margin-bottom: 2rem;
}

.score-display {
  margin-bottom: 2rem;
}

.score-circle {
  display: inline-block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.score-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
}

.score-total {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.percentage {
  font-size: 1.2rem;
  color: #666;
}

.score-message {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #333;
}

.results-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.restart-btn,
.back-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.restart-btn {
  background: var(--primary-color);
  color: white;
}

.restart-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.back-btn {
  background: #6c757d;
  color: white;
}

.back-btn:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

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

  .question-card {
    padding: 1.5rem;
  }

  .results-actions {
    flex-direction: column;
  }
  .next-button {
    right: 24px;
    bottom: 24px;
  }
}
