* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  padding: 2rem;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease-in-out;
}

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

h1 {
  color: #f0db4f;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  color: #d1d5db;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.quiz-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(240, 219, 79, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.quiz-section h2 {
  color: #f0db4f;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.question-container {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(240, 219, 79, 0.2);
}

.question-container:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.question-number {
  color: #f0db4f;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.question-text {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

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

.option {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #f0db4f;
  transform: scale(1.02);
}

.option input[type="radio"] {
  margin-right: 0.75rem;
  cursor: pointer;
  accent-color: #f0db4f;
}

.option label {
  color: #d1d5db;
  cursor: pointer;
  flex: 1;
}

.option input[type="radio"]:checked + label {
  color: #f0db4f;
  font-weight: 600;
}

.result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  display: none;
  font-weight: 600;
}

.result.show {
  display: block;
  animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.result.correct {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  color: #10b981;
}

.result.incorrect {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

.result-text {
  margin-bottom: 0.5rem;
}

.result-explanation {
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 0.5rem;
  color: #d1d5db;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, #f0db4f, #e4b824);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f0db4f;
  border: 1px solid #f0db4f;
}

.btn-secondary:hover {
  background: rgba(240, 219, 79, 0.2);
  transform: translateY(-2px);
}

.progress {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 0 1rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #f0db4f;
  width: 0%;
  transition: width 0.5s ease-in-out;
}

.score {
  color: #f0db4f;
  font-weight: 600;
}

.home-button {
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #f0db4f;
  border: 1px solid #f0db4f;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.home-button:hover {
  background: rgba(240, 219, 79, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .quiz-section {
    padding: 1.5rem;
  }
}
