/* Grammar quiz styles used by single/single-grammar.php and js/quiz/quiz.js. */

.text_description {
  text-align: justify;
}

.text_description h1 {
  color: #4e4e4e;
  font-family: "Open Sans", serif;
  font-weight: 600;
  border-bottom: none;
  padding-bottom: 15px;
  margin-bottom: 0;
}

#quiz .pb-6 {
  padding-bottom: 4.5rem !important;
}

#quiz h3 {
  color: #333;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 1rem;
}

#quiz .wq_singleAnswerCtr {
  background: #f2f2f2;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0.5rem 0.5rem 45px;
  margin: 0 0 15px;
  line-height: 30px;
}

#quiz .wq_singleAnswerCtr:hover,
#quiz .wq_singleAnswerCtr.chosen,
#quiz .wq_singleAnswerCtr.wq_answerSelected {
  background: #fff195;
  color: #000;
  transition: background 0.55s ease-out;
  cursor: pointer;
}

#quiz .label-container {
  display: block;
  position: relative;
  cursor: pointer;
  font-size: 1.3rem;
  user-select: none;
}

#quiz .label-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

#quiz .checkmark {
  position: absolute;
  top: 0.6rem;
  left: 0;
  height: 25px;
  width: 25px;
  margin-left: 0.5em;
  background-color: #fff;
  border: solid 2px #e0e0e0;
}

#quiz .label-container:hover input ~ .checkmark {
  background-color: #e0e0e0;
}

#quiz .label-container input:checked ~ .checkmark {
  background-color: transparent;
  border: solid 2px #fff;
}

#quiz .checkmark::after {
  content: "";
  position: absolute;
  display: none;
  width: 0;
  height: 0;
  background: #fff;
  border: 5px solid;
  left: 4px;
  top: 5px;
  border-radius: 2px;
  box-sizing: border-box;
}

#quiz .label-container input:checked ~ .checkmark::after {
  display: block;
  border: solid 6px #fff;
}

#quiz .result {
  padding: 0;
  border: 1px solid #ececec;
  margin: 20px 0 0;
  clear: both;
  width: 100%;
}

#quiz .wrong-text-highlight,
#quiz .correct-text-highlight {
  font-weight: 700;
  font-size: 1.2em;
  display: block;
  padding: 1rem 1rem 0.5rem;
}

#quiz .wrong-answer-reason,
#quiz .correct-answer-reason {
  color: #585858;
  font-weight: 500;
  font-size: 15px;
  display: block;
  padding: 0 1rem 1rem;
}

#quiz .wrong-text-highlight {
  color: #ff5722;
}

#quiz .correct-text-highlight {
  color: #4caf50;
}

@media (max-width: 768px) {
  #quiz h3 {
    font-size: 1.15rem;
  }

  #quiz .label-container {
    font-size: 1.1rem;
  }
}

@media (min-width: 992px) {
  #quiz .label-container {
    font-size: 1.3rem;
  }
}
