/* ---- KVÍZ ---- */

/* Navigációs gombok egy sorban */
.answering-form .form-actions > .form-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.answering-form .form-actions > .form-wrapper > .form-wrapper {
  display: contents;
}

.quiz-question-multichoice > h2,
.quiz-question-truefalse > h2 {
    font-size: 1rem;
    margin-top: 1rem;
}

/* Választóelemek (rádiógomb és jelölőnégyzet egyformán) */
.answering-form .form-check-input {
  float: none;
  width: 1.1em;
  height: 1.1em;
  margin: .15rem 0 0 0;
  border-radius: 50%;
  flex: 0 0 auto;
}

/* Válaszsor, ahol a label a dobozban van (igaz/hamis) */
.answering-form .form-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding-left: 0;
  margin-bottom: .5rem;
}
.answering-form .form-check label {
  margin: 0;
  flex: 1;
}

/* Válaszok táblázatos elrendezésben (feleletválasztós) */
.answering-form table {
  width: 100%;
  border: 0;
}
.answering-form table td,
.answering-form table th {
  vertical-align: top;
  border: 0;
  box-shadow: none;
}
.answering-form table td:first-child,
.answering-form table th:first-child {
  width: 2.5rem;
  padding-right: 0;
}

.answering-form table td:first-child {
  padding-left: 0;
}

/* Igaz/hamis: a válasz szövege ugyanott kezdődjön, mint a táblázatos kérdéseknél */
.answering-form .fieldgroup .form-check {
  gap: 0;
  margin-bottom: 0;
}
.answering-form .fieldgroup .form-check label {
  padding: 8px 12px 8px calc(2.5rem - 1.1em);
}
.answering-form .fieldgroup .form-check-input {
  margin-top: 8px;
}

/* "Választás" felirat a válaszszöveg fölé igazítva */
.answering-form .fieldgroup > legend {
  padding-left: 2.5rem;
}

.answering-form .fieldset-legend,
.answering-form table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* RESULT PAGE */

div.quiz-report-score-container {
 border-radius: 6px;
 border: none !important;
 margin-bottom: 1rem;    
}

.page-route-entity-quiz-result-canonical .fieldset-legend {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.page-route-entity-quiz-result-canonical table {
  table-layout: fixed;
  width: 100%;
}

/* fix oszlopok: 1., 3., 4., 5. */
.page-route-entity-quiz-result-canonical table th:nth-child(1),
.page-route-entity-quiz-result-canonical table td:nth-child(1),
.page-route-entity-quiz-result-canonical table th:nth-child(n+3),
.page-route-entity-quiz-result-canonical table td:nth-child(n+3) {
  width: 100px;
  text-align: center;
}

/* Eredményoldal: kérdésenkénti pontszám oszlop elrejtése */
.page-route-entity-quiz-result-canonical fieldset table th:nth-child(4),
.page-route-entity-quiz-result-canonical fieldset table td:nth-child(4) {
  display: none;
}


/* Kérdés szövege félkövér – kitöltés és eredmény oldalon */
.answering-form .field--name-body,
.page-route-entity-quiz-result-canonical fieldset .field--name-body {
  font-weight: 700;
}


/*--- JELENTKEZÉS gomb a kurzus oldalán ---*/

.node--type-e-learning-kurzus .field--name-field-body h6 {
  margin: 2rem 0;
}

.node--type-e-learning-kurzus .field--name-field-body h6 a {
  display: inline-block;
  padding: .75rem 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1f3b6e;
  background-color: #FFF;
  border: 2px solid #1f3b6e;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}


.node--type-e-learning-kurzus .field--name-field-body h6 a:hover,
.node--type-e-learning-kurzus .field--name-field-body h6 a:focus-visible {
  color: #fff;
  background-color: #1f3b6e;
}

/* Mobilon kisebb és teljes szélességű */
@media (max-width: 575.98px) {
  .node--type-e-learning-kurzus .field--name-field-body h6 a {
    display: block;
    font-size: 1.15rem;
    text-align: center;
    padding: .75rem 1rem;
  }
}
