/*
  Quiz-specific styles.
  The page continues to use /css/styles1.css for the Top Switzerland header.
*/

.quiz-page {
  width: min(636px, calc(100% - 24px));
  margin: 0 auto;
  padding-top: 42px;
  padding-bottom: 60px;
}

.quiz-heading {
  margin-bottom: 22px;
}

.quiz-kicker {
  margin: 0 0 6px;
  color: #e30613;
  font-family: Manrope, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quiz-heading h2,
.quiz-result h2 {
  margin-bottom: 12px;
  font-family: Montserrat, Arial, sans-serif;
}

.quiz-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #6c757d;
}

.quiz-cross-score {
  display: grid;
  gap: 5px;
  justify-items: end;
  color: #212529;
}

.quiz-cross-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.quiz-cross-row .quiz-score-cross {
  opacity: 0.2;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.quiz-cross-row .quiz-score-cross.earned {
  opacity: 1;
  filter: none;
}

.quiz-status strong {
  color: #212529;
}

.quiz-panel {
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid #dee2e6;
  border-radius: 14px;
  background: #fff;
}

.quiz-image-wrap {
  margin-bottom: 24px;

}

/*
  Image dimensions come from the same existing site classes used by index.html:
  .img-rounded, .text-center and .img-fluid in /css/styles1.css.
  No fixed height or aspect ratio is imposed here.
*/
.quiz-image-wrap img {
    display: block !important;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    max-height: 300px;
}

}

.quiz-panel h3 {
  margin-bottom: 20px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 1rem
}

.quiz-answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quiz-answer-button,
.quiz-primary-button {
  min-height: 50px;
  border-radius: 9px;
  font: inherit;
  cursor: pointer;
}

.quiz-answer-button {
  padding: 13px 15px;
  border: 1px solid #ced4da;
  background: #fff;
  color: #212529;
  text-align: left;
}

.quiz-answer-button:hover:not(:disabled) {
  border-color: #e30613;
}

.quiz-answer-button.correct {
  border-color: #198754;
  background: #eaf7ef;
  color: #146c43;
  font-weight: 700;
}

.quiz-answer-button.wrong {
  border-color: #dc3545;
  background: #fff0f1;
  color: #b02a37;
}

.quiz-answer-button:disabled {
  cursor: default;
}

.quiz-answer-button.wrong:disabled {
  opacity: 0.72;
}

.quiz-primary-button {
  margin-top: 20px;
  padding: 12px 22px;
  border: 0;
  background: #e30613;
  color: #fff;
  font-weight: 700;
}

.quiz-primary-button:hover {
  background: #ba050f;
}

.quiz-result {
  text-align: center;
}

.quiz-result-level {
  font-size: 1.35rem;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .quiz-page {
    padding-top: 24px;
  }

  .quiz-status {
    display: grid;
  }

  .quiz-cross-score {
    justify-items: start;
  }

  .quiz-cross-row {
    justify-content: flex-start;
  }

  .quiz-answers {
    grid-template-columns: 1fr;
  }
}
