/* lib/lib.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.question {
  --correct-color: rgb(30, 224, 95);
  --incorrect-color: rgb(245, 48, 48);
  --selected-color: rgba(56, 203, 20, 0.712);
  --disabled-color: rgb(219, 219, 219);
  --disabled-correct-color: rgb(118, 212, 149);
  --disabled-incorrect-color: rgb(221, 131, 131);

  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  padding: 1em;
  border: 2px solid var(--selected-color);
  border-radius: 10px;
  font-family: 'Arial', sans-serif;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.question-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: initial;
  color: #333;
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
}

.answer {
  border: none;
  font-size: 16px;
  background: none;
  padding: 10px 5px;
  border: 2px solid rgba(0, 120, 36, 0.712);
  outline: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
  color: #010101;
  font-family: 'Arial', sans-serif;
}

.answer:hover {
  background: rgba(140, 168, 0, 0.712);
  color: white;
}

.answer.selected {
  background: var(--selected-color);
  border-color: var(--selected-color);
  color: white;
}

.question.correct .answer.selected {
  --selected-color: var(--correct-color);
}

.question.incorrect .answer.selected {
  --selected-color: var(--incorrect-color);
}

.question.correct {
  border-color: var(--correct-color);
  animation: correct-animation 0.5s ease-in-out;
}

.question.incorrect {
  border-color: var(--incorrect-color);
  animation: incorrect-animation 0.5s ease-in-out;
}

.question.disabled .answer,
.question.disabled .answer:hover {
  background-color: var(--disabled-color);
  border-color: var(--disabled-color);
  cursor: not-allowed;
}

.question.disabled.correct .answer.selected {
  background-color: var(--disabled-correct-color);
  border-color: var(--disabled-correct-color);
}

.question.disabled.incorrect .answer.selected {
  background-color: var(--disabled-incorrect-color);
  border-color: var(--disabled-incorrect-color);
}

.question-feedback {
  color: black;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  font-weight: 500;
  display: none;
  margin-top: 10px;
}

.question.correct .question-feedback,
.question.incorrect .question-feedback {
  display: inline-block;
}

.question.correct .question-feedback {
  color: var(--correct-color);
}

.question.incorrect .question-feedback {
  color: var(--incorrect-color);
}

@keyframes correct-animation {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

@keyframes incorrect-animation {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}
