/* 





Global Styles





*/

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

body {
  background-color: #F5F5F3;
  color: #202124;
  font-family: Arial, Helvetica, sans-serif;
}

button {
  cursor: pointer;
}

/* 





Quiz Section





*/

.quiz-section {
  min-height: 100vh;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-container {
  background-color: #fff;
  max-width: 850px;
  width: 100%;
  padding: 1.5rem 2.5rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0px 5px 25px rgba(0, 0, 012);
}

/* 





Progress Bar





*/

.progress-bar {
  background-color: #E5E5E5;
  width: 100%;
  height: 10px;
  border-radius: 35px;
  overflow: hidden;
}

.progress-fill {
  background-color: #F7DF1E;
  width: 20%;
  height: 100%;
  border-radius: 35px;
}

/* 





Quiz Header





*/

.quiz-header {
  text-align: center;
  margin-top: 2rem;
}

.quiz-title-container {
  background-color: #F7DF1E;
  display: inline-block;
  padding: .8rem 2rem;
}

.quiz-title {
  color: #202124;
  font-size: 38px;
  font-weight: 800;
  text-transform: uppercase;
}

.question-count {
  color: #6A6A6A;
  font-size: 16px;
  font-weight: 600;
  margin-top: 1.4rem;
}

/* 





Quiz Question





*/

.question-container {
  margin: 2rem 0rem;
  text-align: center;
}

.question {
  color: #202124;
  font-size: 26px;
  line-height: 1.4;
}

/* 





Answer Buttons





*/

.answer-buttons-container {
  display: flex;
  flex-direction: column;
  row-gap: .8rem;
}

.answer-button {
  background-color: #fff;
  color: #202124;
  width: 100%;
  padding: 1.2rem;
  border: 2px solid #d1d1d1;
  border-radius: 8px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  transition: all .1 ease-in;
}

.answer-button:hover {
  background-color: #FAFAFA;
  border-color: #202124;
}

.answer-button.correct {
  background-color: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.answer-button.incorrect {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.answer-button:disabled {
  cursor: not-allowed;
}

.next-button:disabled {
  background-color: #6a6a6a;
  color: #d1d1d1;
  cursor: not-allowed;
}

/* 





Quiz Controls





*/

.quiz-controls {
  margin-top: 1rem;
}

.next-button {
  background-color: #202124;
  color: #F7DF1E;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  transition: all .1 ease-in;
}

.next-button:hover {
  background-color: #000;
}

/* 





Media Queries




*/

@media screen and (max-width: 767px) {
  .quiz-section {
    padding: 1rem;
    align-items: flex-start;
  }

  .quiz-container {
    padding: 1.2rem;
  }

  .quiz-header {
    margin-top: 1.3rem;
  }

  .quiz-title {
    font-size: 30px;
  }

  .question {
    font-size: 21px;

  }
}