input[type="radio"] {
    display: none;
}

.question {
  max-width: 700px;
  margin: auto;
  background: white;
  padding: 30px;
  border: 1px solid #dedede;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
  margin-bottom: 10px;
  font-family: "inter-bold", sans-serif;
  color: #333!important;
  font-size: 1.2rem!important;
  line-height: 1.5;

  display: flex;
  flex-direction: column;
  align-items: center; /* centers children horizontally */
}

.question img {
    max-width: 100%;
}

.question h6 {
    font-family: "inter", sans-serif;
    padding-top: 8px;
    padding-bottom: 5px;
    font-style: italic;
    margin-bottom: 20px;
}

.quiz fieldset {
  margin-bottom: 25px;
  border: none;
  padding: 0;
}

legend {
  font-weight: bold;
  margin-bottom: 20px;
  display: block;
  line-height: 1.7;
}

.option {
  display: block;
  background: #778BBA;
  color: #fff;
  margin: 8px 0;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.3s;
}

.option.correct {
  background-color: #d4edda;
  border-color: #2e6f40;
  color: #155724;
}

.option.wrong {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.option:hover {
  background: #ddd;
}

.explanation {
  display: none;
  padding: 10px 15px;
  margin-top: 10px;
  border-radius: 5px;
  font-size: 1.2rem!important;
  color: #333;
  font-family: "inter", sans-serif;
  line-height: 1.7;
}

.explanation-answer {
  padding-top: 10px;
  padding-bottom: 7px;
}

#results {
  margin-top: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

#quizScoreContainer {
  font-family: "inter-bold", sans-serif;
  font-size: 1.5rem!important;
  color: #3e5a9d;
}

/* Next Question Button */
.next-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3e5a9d;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-family: "inter-bold", sans-serif;
    gap: 8px;
    transition: background 0.3s;
    margin-bottom: 10px;
}

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

.security-message {
  margin-top: 20px;
}

.security-message h6 {
  font-size: 11px;
  color: #9f9f9f;
}

@media screen and (max-width: 720px) {
  .explanation {font-size: 1rem!important;}
}
