/* === General Layout === */
body {
  font-family: 'Poppins', Arial, sans-serif;
  background: #f5f7fb;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.container {
  width: 90%;
  max-width: 700px;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  text-align: center;
}

/* === Headings and Buttons === */
h1 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 10px 18px;
  margin: 8px;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #0056b3;
}

/* === Multiple Choice Questions === */
.question {
  text-align: left;
  font-weight: bold;
  margin: 20px 0 10px;
}

.options {
  text-align: left;
  margin-bottom: 15px;
}

.options label {
  display: block;
  background: #f2f2f2;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: 0.2s;
}

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

.options label:hover {
  background-color: #e9e9e9;
}

/* === Feedback Colors === */
.correct {
  background-color: #d4edda !important;
  border-left: 5px solid #28a745;
}

.incorrect {
  background-color: #f8d7da !important;
  border-left: 5px solid #dc3545;
}

/* === Buttons (Submit / Reset / Check) === */
button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  margin: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s;
}

button:hover {
  background-color: #0056b3;
}

/* === Results Section === */
#result {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: bold;
}

.explanation {
  background-color: #eef5ff;
  border-left: 4px solid #007bff;
  padding: 8px 12px;
  border-radius: 10px;
  margin-top: 5px;
  font-style: italic;
}