/* ------------------------------------------------------------------
   quiz.css — page styles for the YouHodler quiz list.

   Ported 1:1 from the Webflow build (learn.youhodler.com). Class names
   are kept as Webflow generated them (.section-2, .paragraph-4, …) so
   the markup stays diffable against the original; the state rules that
   used to sit in an inline <style> in <head> are folded in at the end.
   ------------------------------------------------------------------ */

body {
  color: #333;
  font-family: Ubuntu, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 20px;
}

/* --- UK risk disclaimer (revealed by geo.js for GBR visitors) ------ */

.uk-disclaimer {
  z-index: 997;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #000;
  background-color: #fff;
  justify-content: center;
  align-items: center;
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  margin-right: auto;
  padding: 1rem;
  display: none;
  transform: translate(-50%);
}

.uk-disclaimer.show-gbr {
  z-index: 0;
}

.container-large {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: .5rem;
  padding-right: .5rem;
}

.text-size-tiny {
  letter-spacing: -.0175rem;
  font-size: .875rem;
  line-height: 1.4;
}

/* .text-color-dark and .text-align-center are on the disclaimer markup but
   were never defined in the Webflow stylesheet — left undefined here too so
   the disclaimer renders exactly as it does today. Give them rules if the
   copy is meant to be centred. */

/* --- Header / logo ------------------------------------------------ */

.section-4 {
  width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.container-5 {
  padding-top: 25px;
}

.div-block-2 {
  margin-top: 0;
  display: inline-block;
}

/* --- Intro copy --------------------------------------------------- */

.section-2 {
  width: 640px;
  margin: 25px auto 15px;
}

.container {
  margin-top: 0;
}

.number-title {
  margin-top: 0;
  margin-bottom: 5px;
  display: inline-block;
}

.paragraph-3 {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 22px;
}

.paragraph-2 {
  margin-top: 40px;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  display: block;
}

/* --- Progress bar ------------------------------------------------- */

.section-7 {
  background-color: transparent;
  border-radius: 20px;
  width: 640px;
  margin-bottom: 25px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.div-block-9 {
  -webkit-text-fill-color: inherit;
  background-color: #f0f5ff;
  background-clip: border-box;
  border-radius: 20px;
  height: 12px;
  overflow: hidden;
}

.div-block-10 {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  background-color: #2979ff;
  border-radius: 20px;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  width: 0;
  height: 100%;
  transition: width .3s cubic-bezier(.39, .575, .565, 1);
  display: block;
}

.text-block-8 {
  text-align: center;
  padding-top: 5px;
}

/* --- Quiz grid ---------------------------------------------------- */

.section-5 {
  width: 640px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 40px;
}

.collection-list-wrapper {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-columns: 1fr;
  display: block;
}

.collection-list {
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-columns: 1fr;
  display: grid;
}

.collection-list-item {
  margin-bottom: 0;
}

/* Webflow emitted this as a hashed per-node id; kept as a class so every
   card can share it instead of repeating a duplicate id six times. */
.quiz-grid-cell {
  grid-area: span 1 / span 1 / span 1 / span 1;
}

/* --- Quiz card ---------------------------------------------------- */

.quiz-block {
  background-color: #f0f5ff;
  border-radius: 10px;
  padding: 20px;
}

.quiz-number {
  background-color: transparent;
  border: 1px solid #2979ff;
  border-radius: 20px;
  width: 30px;
  height: 30px;
  display: inline-block;
}

.paragraph-4 {
  color: #2979ff;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 27px;
  display: block;
}

.quiz-done-icon,
.quiz-wrong-icon {
  float: right;
  width: 30px;
  height: 30px;
  display: none;
}

.image-4 {
  width: 100%;
}

.paragraph-5 {
  margin-top: 10px;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.button-2 {
  background-color: #2979ff;
  border-radius: 6px;
}

.button-2.quiz-button {
  text-align: center;
  cursor: pointer;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

/* Two classes deep on purpose: this outranks the .quiz-button:hover further
   down, so an unanswered card hovers to #50adff. The .quiz-done / .quiz-wrong
   hovers match its specificity and win on source order. */
.button-2.quiz-button:hover {
  background-color: #50adff;
}

.text-block-9 {
  color: #999;
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  display: none;
}

/* --- Card states -------------------------------------------------- */
/* Was an inline <style> in the Webflow page <head>. */

#quiz-section,
#progress-text {
  display: none;
}

#progress-bar-container {
  display: block;
}

/* Dead on the live site — .button-2.quiz-button:hover above outranks it.
   Kept so the cascade stays identical to the Webflow build. */
.quiz-button:hover {
  background-color: #3991F9;
}

.quiz-done {
  background-color: #D7F5F0;
}

.quiz-done .quiz-number {
  border-color: #187765;
}

.quiz-done .quiz-number p {
  color: #187765;
}

.quiz-done .quiz-button {
  background-color: #22BEA1;
}

.quiz-done .quiz-button:hover {
  background-color: #3ACBB7;
}

.quiz-done .quiz-done-icon {
  display: inline-block;
}

.quiz-wrong {
  background-color: #FEE0DA;
}

.quiz-wrong .quiz-number {
  border-color: #CA303C;
}

.quiz-wrong .quiz-number p {
  color: #CA303C;
}

.quiz-wrong .quiz-button {
  background-color: #DD3212;
}

.quiz-wrong .quiz-button:hover {
  background-color: #ef5b41;
}

.quiz-wrong .quiz-wrong-icon {
  display: inline-block;
}

/* --- Breakpoints -------------------------------------------------- */

@media screen and (min-width: 1440px) {
  .uk-disclaimer {
    background-color: #fff;
    width: 100vw;
    margin-left: 50%;
    transform: translate(-50%);
  }
}

@media screen and (max-width: 991px) {
  .section-2,
  .section-4 {
    width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-5,
  .section-7 {
    width: 600px;
  }

  .uk-disclaimer {
    padding-left: 1rem;
    padding-right: 1rem;
    top: 4.6rem;
  }

  .uk-disclaimer.show-gbr {
    z-index: 99;
    position: relative;
    top: 0;
  }

  .container-large {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media screen and (max-width: 767px) {
  .collection-list {
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr;
  }

  .section-2,
  .section-4,
  .section-5 {
    width: 500px;
  }

  .section-7 {
    width: 500px;
  }

  .container-large {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media screen and (max-width: 479px) {
  .collection-list {
    grid-template-rows: auto;
    grid-template-columns: 1fr;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .button-2.quiz-button {
    font-size: 14px;
    line-height: 25px;
  }

  .section-2 {
    width: auto;
  }

  .div-block-2 {
    width: 100px;
  }

  .container-5 {
    padding-top: 12px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .number-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 26px;
    line-height: 36px;
  }

  .section-4 {
    width: auto;
  }

  .paragraph-2 {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 20px;
  }

  .paragraph-3 {
    font-size: 14px;
    line-height: 20px;
  }

  .section-5 {
    width: auto;
  }

  .container-6 {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-7 {
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .container-9 {
    padding-left: 20px;
    padding-right: 20px;
  }
}
