/* ============================= */
/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============================= */
/* Body Styling */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
  color: #333;
}

/* ============================= */
/* Quiz Container */
.quiz-container {
  background-color: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 450px;
  max-width: 90%;
  text-align: left;
  position: relative;
}

/* ============================= */
/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #e1e8ed;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0%;
  background-color: #007bff;
  transition: width 0.3s ease;
}

/* ============================= */
/* Question Text */
#questionText {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ============================= */
/* Options Styling */
input[type="checkbox"] {
  display: none;
  /* Hide default checkbox */
}

label {
  display: block;
  padding: 12px 15px;
  margin-bottom: 12px;
  background-color: #f6f8fa;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}

label:hover {
  background-color: #e1e8ed;
}

input[type="checkbox"]:checked+label {
  background-color: #c6e2ff;
  border-left: 5px solid #007bff;
}

/* Optional: custom checkmark */
label::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #007bff;
  opacity: 0;
  transition: opacity 0.2s;
}

input[type="checkbox"]:checked+label::after {
  opacity: 1;
  background-color: #007bff;
}

/* ============================= */
/* Buttons Styling */
button {
  padding: 10px 20px;
  margin-top: 15px;
  margin-right: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

#previousQuestionButton {
  background-color: #6c757d;
  color: white;
}

#previousQuestionButton:hover {
  background-color: #5a6268;
}

#nextQuestionButton {
  background-color: #007bff;
  color: white;
}

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

#submitButton {
  background-color: #28a745;
  color: white;
}

#submitButton:hover {
  background-color: #1e7e34;
}

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

  button {
    width: 100%;
    margin: 10px 0 0 0;
  }
}