/* General Body Styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #181818; /* Dark background */
  color: #ecf0f1; /* Light text color */
  margin: 0;
  padding: 20px;
  line-height: 1.6; /* Better line spacing for readability */
}

/* Quiz Container */
.quiz-container {
  max-width: 900px;
  margin: auto;
  background: #2c3e50; /* Dark card background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* Softer and larger shadow */
}

/* Headings */
h1, h2 {
  color: #ecf0f1; /* Light heading text */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

h1 {
  font-size: 2rem; /* Larger font size for main title */
}

h2 {
  font-size: 1.5rem;
  margin-top: 20px;
  font-weight: 500;
  color: #bdc3c7; /* Slightly lighter for subheadings */
}

/* Section Styling */
.quiz-section {
  margin-bottom: 40px;
}

/* Quiz Group Label */
.quiz-group label {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #bdc3c7; /* Light gray label color */
  font-weight: 500; /* Slightly bolder */
}

/* Dropdown (Select) Styling */
select {
  margin-top: 5px;
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1px solid #34495e;
  border-radius: 8px;
  background-color: #34495e; /* Dark background for select */
  color: #ecf0f1; /* Light text in select */
  transition: border 0.3s ease, background-color 0.3s ease;
}

select:focus {
  border-color: #3498db;
  background-color: #2c3e50; /* Slightly darker when focused */
  outline: none;
}

/* Textarea Styling */
textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  min-height: 80px;
  margin-top: 10px;
  margin-bottom: 20px;
  border: 1px solid #34495e;
  border-radius: 8px;
  background-color: #34495e; /* Dark background for textarea */
  color: #ecf0f1; /* Light text */
  resize: vertical;
  transition: border 0.3s ease, background-color 0.3s ease;
}

textarea:focus {
  border-color: #3498db;
  background-color: #2c3e50; /* Slightly darker when focused */
  outline: none;
}

/* Button Styles */
button {
  padding: 12px 24px;
  background-color: #3498db;
  color: white;
  border: none;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  margin: 20px auto;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
  background-color: #2980b9;
  transform: translateY(-2px); /* Slight lift effect on hover */
}

button:active {
  transform: translateY(0); /* Return to normal state when clicked */
}

/* Result Styling */
.result {
  text-align: center;
  font-size: 1.2em;
  margin-top: 30px;
  padding: 15px;
  border-radius: 6px;
}

/* Correct Answer Styling */
.result.correct {
  color: #2ecc71;
  background-color: #1e2d1b; /* Dark green background */
  border: 2px solid #2ecc71;
}

/* Incorrect Answer Styling */
.result.incorrect {
  color: #e74c3c;
  background-color: #3b0f0f; /* Dark red background */
  border: 2px solid #e74c3c;
}

/* Styling for Correct and Incorrect Choices.js options */
.choices[data-state="correct"] .choices__inner {
  border: 2px solid #2ecc71;
  background-color: #1e2d1b; /* Dark green for correct */
}

.choices[data-state="incorrect"] .choices__inner {
  border: 2px solid #e74c3c;
  background-color: #3b0f0f; /* Dark red for incorrect */
}

/* Example text gray color */
em {
  color: #7f8c8d; /* Gray color */
  font-style: normal; /* Optional: remove italics if you prefer */
}

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

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  button {
    font-size: 1rem;
    padding: 10px 20px;
  }
}
