.quiz-card {
  border-color: var(--bs-border-color);
  background: var(--bs-body-bg);
}

.quiz-question-prompt {
  border-bottom: 1px solid var(--bs-border-color);
  font-size: 1.25rem;
  padding-bottom: 0.75rem;
}

.quiz-question fieldset {
  min-width: 0;
}

.quiz-question .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--bs-secondary-color);
  background-color: var(--bs-body-bg);
}

.quiz-question .form-check-input:checked {
  border-color: var(--bs-info);
  background-color: var(--bs-info);
}

.quiz-question .form-check-input:focus-visible,
.quiz-matrix input:focus-visible {
  outline: 2px solid var(--bs-info);
  outline-offset: 2px;
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-info-rgb), 0.25);
}

.quiz-question legend {
  margin-bottom: 1rem;
}

.quiz-code {
  max-height: 24rem;
  overflow: auto;
}

.quiz-matrix {
  max-width: 100%;
}

.quiz-matrix table {
  min-width: 34rem;
}

.quiz-matrix th,
.quiz-matrix td {
  vertical-align: middle;
}

.quiz-matrix td {
  text-align: center;
}

.quiz-matrix input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--bs-info);
}

.quiz-review-item + .quiz-review-item {
  border-top: 1px solid var(--bs-border-color);
  padding-top: 1rem;
}

.quiz-results-table {
  font-size: 0.92rem;
}

.quiz-results-table thead th {
  background-color: #19334d !important;
  color: var(--bs-emphasis-color);
  font-weight: 600;
  white-space: nowrap;
}

.quiz-results-table tfoot th,
.quiz-results-table tfoot td {
  background-color: var(--bs-tertiary-bg);
  border-top-width: 2px;
}

.quiz-results-prompt {
  min-width: 14rem;
}

.quiz-download-icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.quiz-timer {
  position: relative;
  flex: 0 0 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
}

.quiz-timer-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.quiz-timer-track,
.quiz-timer-progress {
  fill: none;
  stroke-width: 3;
}

.quiz-timer-track {
  stroke: var(--bs-secondary-bg);
}

.quiz-timer-progress {
  stroke: var(--bs-info);
  stroke-dasharray: 125.66;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.25s linear, stroke 0.25s linear;
}

.quiz-timer-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.quiz-timer[data-time-low="true"] .quiz-timer-progress {
  stroke: var(--bs-danger);
}

@media (max-width: 575.98px) {
  .quiz-card .card-body {
    padding: 1rem;
  }

  .quiz-matrix table {
    min-width: 30rem;
  }
}
