/* Quiz section styling */
.quiz {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6rem 1rem 4rem;
  min-height: 100vh;
}

.section__title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #222;
}

/* Quiz box */
.quiz-box {
  background: #ffffff;
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  width: 100%;
  text-align: center;
}

/* Progress */
#progress {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Question */
#question {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
}

/* Answer buttons */
.answers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.answers button {
  background-color: #f2f2f2;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
  transition: all 0.3s ease;
}

.answers button:hover {
  background-color: #e0e0e0;
}

.answers button.correct {
  background-color: #4caf50;
  color: #fff;
}

.answers button.wrong {
  background-color: #e53935;
  color: #fff;
}

/* Next button */
#nextBtn {
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background-color: #1e88e5;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

#nextBtn:hover {
  background-color: #1565c0;
}

/* Result */
.quiz__result {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 2rem;
  color: #333;
  display: none;
}
.quiz__buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  background-color: #4e9af1;
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: #377fd6;
}
.quiz__buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  background-color: #4e9af1;
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.btn:hover {
  background-color: #347cd1;
}
.quiz__wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  text-align: center;
  margin-top: 6rem;
}

.quiz__title {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.quiz__answers {
  list-style: none;
  padding: 0;
}

.quiz__option {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 1rem;
  font-size: 1rem;
  border: none;
  background-color: #ececec;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: 0.3s;
}

.quiz__option:hover {
  background-color: #dcdcdc;
}

.correct {
  background-color: #a0e7a0 !important;
}

.wrong {
  background-color: #f5a3a3 !important;
}

.quiz__result {
  margin-top: 2rem;
  display: none;
}

.quiz__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  background-color: #4e9af1;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
}

.btn:hover {
  background-color: #2d78c8;
}
