@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #5145BA;
}

/* Quiz Container */
.quiz-container {
  width: 480px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.13);
  padding: 25px;
}

/* Question Text */
.quiz-content .question-text {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Answer Options */
.quiz-content .answer-options {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.quiz-content .answer-option {
  display: flex;
  align-items: center;
  justify-content: space-between; /* text left, icon right */
  cursor: pointer;
  font-weight: 500;
  border-radius: 6px;
  padding: 13px 16px;
  border: 1px solid #B5ACFF;
  background: #F3F1FF;
  transition: 0.3s ease;
}

.quiz-content .answer-option:hover {
  background: #dad5fd;
}

/* Correct / Incorrect states */
.quiz-content .answer-option.correct {
  border-color: #B7E1C1;
  background: #D4EDDA;
  color: #155724;
}

.quiz-content .answer-option.incorrect {
  border-color: #F4BEC3;
  background: #F8D7DA;
  color: #721C24;
}

/* Feedback Icon (inline, preserves original style) */
.quiz-content .answer-option span {
  display: inline-block;
  flex-shrink: 0;
  width: 24px;      /* fixed width prevents jump */
  text-align: center;
  margin-left: 12px; /* space between text and icon */
  font-size: 1.2rem;
  line-height: 1;
}
.quiz-content .answer-option.correct span {
  color: #16AE56;
}
.quiz-content .answer-option.incorrect span {
  color: #F23723;
}

/* Mobile responsiveness */
@media (max-width: 624px) {
  .quiz-container {
    width: 100%;
    margin: 10px;
    padding: 20px;
  }

  .quiz-content .question-text {
    font-size: 1.3rem;
  }

  .quiz-content .answer-option {
    padding: 12px 14px;
  }
}
