:root {
  --color-white: #f1f1f1;
  --color-lightblue: #6491de;
  --color-darkblue: #073d7f;
}

/* styles.css */
:root {
  --vh: 1vh;
}

.swiper-container {
  /* in plaats van height:100vh */
  height: calc(var(--vh) * 100);
}

/* je quiz-containers blijven overflow-y:auto */
.quiz-container,
.quiz-container2 {
  overscroll-behavior: contain;
}

body {
  background-color: var(--color-darkblue);
  color: var(--color-white);
}

/* Mobile-first styling */
body {
  margin: 0;
  padding: env(safe-area-inset-top) 1rem env(safe-area-inset-bottom);
  font-family: sans-serif;
  font-size: 16px;
  text-align: center;
}

html,
body {
  height: 100%;
  margin: 0;
}

.quiz-container {
  max-width: 360px;
  margin: 0 auto;
}

#options {
  list-style: none;
  padding: 0;
}

#options li button {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 1rem;
  font-size: 1rem;
}

/* Tablet and up */
@media (min-width: 600px) {
  .quiz-container {
    max-width: 500px;
  }
  #options li button {
    width: auto;
    padding: 0.75rem 1.5rem;
  }
}

button,
a.button {
  background-color: #004943;
  font-size: 1.3rem;
  padding: 8px 24px;
  position: relative;
  border: 3px solid #000;
  cursor: pointer;
  border-radius: 2px;
  font-weight: 400;
  display: inline-block;
  -webkit-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
  -webkit-box-shadow: 5px 5px 0 0 #000;
  box-shadow: 5px 5px 0 0 #000;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  margin: 25px 0;
  color: #fff;
  font-family: "Bebas Neue", cursive;
  font-weight: 400;
  margin-top: 30px !important;
}
button:hover,
a.button:hover {
  -webkit-box-shadow: 0 0 0 0 #000;
  box-shadow: 0 0 0 0 #000;
  -webkit-transform: translate(2px, 2px);
  -ms-transform: translate(2px, 2px);
  transform: translate(2px, 2px);
}

button {
  background-color: var(--color-lightblue);
  color: var(--color-white);
  border: none;
}

@media only screen and (max-width: 720px) {
  a.button {
    font-size: 1rem;
    margin: 15px 0;
  }
  #intro a.button {
    margin: 25px 0;
  }
  a.button.contact {
    margin: 0;
  }
  .go-down {
    margin-top: 15px;
    margin-left: 0;
    font-size: 16px;
    width: 230px;
    height: 25px;
    display: block;
  }
}

.slide-quiz .quiz-content {
  max-height: 100vh;
  overflow-y: auto;
  padding: 1rem;
}

body {
  font-family: "Montserrat", sans-serif;
}
h1,
h2,
h3 {
  font-family: "Bebas Neue", cursive;
  margin: 1rem 0;
  font-weight: 400;
}

h1 {
  font-family: "Bebas Neue", cursive;
  margin: 1rem 0;
  font-size: 40px;
  font-weight: 400;
}

#cara {
  max-width: 240px;
  position: absolute;
  right: -25px;
  bottom: 0;
}

#jan {
  max-width: 250px;
  position: absolute;
  left: -50px;
  bottom: -15px;
}

#start_heading {
  position: relative;
  bottom: 75px;
}

/* Center alle Swiper-slides horizontaal én verticaal */
.main-swiper .swiper-slide {
  display: flex;
  justify-content: center; /* horizontaal centreren */
  align-items: center; /* verticaal centreren */
  flex-direction: column; /* content onder elkaar */
  text-align: center; /* tekst in het midden */
}

/* Voor de quiz-content die scrollt, alleen horizontaal centreren */
.quiz-container {
  margin: 0 auto; /* center de scrollable container */
  width: 100%;
  max-width: 360px; /* optioneel: voorkom té brede content */
  padding: 0 !important;
}

/* Zorg dat input en button onder elkaar staan */
#text-answer,
#text-submit {
  display: block; /* blok‑element, valt op nieuwe regel */
  width: 100%; /* vult de breedte van de parent (optioneel max‑width instellen) */
  max-width: 360px; /* voorkom dat ze té breed worden */
  margin: 0.5rem auto; /* 0.5rem afstand boven en onder, centreren */
}

/* Zelfde voor de tip‑en code‑buttons */
#tip-btn,
#code-submit {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0.5rem auto;
}

#tip-btn {
  margin-top: 25px;
  background: none;
  box-shadow: none;
  font-size: 14px;
}

:root {
  --color-white: #f1f1f1;
}

/* Input: transparant met alleen een dikke, witte bottom border */
input {
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--color-white);
  color: var(--color-white);
  caret-color: var(--color-white); /* cursor‑kleur */
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  padding: 0.5rem 0;
  width: 100%;
  max-width: 360px;
  margin: 0.5rem auto;
  transition: border-color 0.3s ease;
}

/* Verberg de standaard outline, maar toon een glow op focus */
#text-answer:focus {
  outline: none;
  border-bottom-color: #6491de; /* accentkleur bij focus, bv. lichtblauw */
  box-shadow: 0 2px 0 #6491de; /* subtiele effectlijn */
}

/* Placeholder in lichter wit tonen */
#text-answer::placeholder {
  color: rgba(241, 241, 241, 0.7);
}

#question {
  font-family: "Bebas Neue", cursive;
  font-weight: 400;
  font-size: 40px;
}

#text-submit {
  margin-top: 25px;
}

input {
  padding: 10px 5px;
}

.quiz-container,
.quiz-container2 {
  overscroll-behavior: contain;
}
.swiper-container {
  overscroll-behavior: none;
}

.swiper-container {
  /* nieuw: dvin = dynamic viewport height */
  height: 100dvh;
  /* fallback voor oudere browsers: onze JS-variabele */
  height: calc(var(--vh, 1vh) * 100);
}

.quiz-container,
.quiz-container2 {
  overscroll-behavior: contain;
}

.swiper-container {
  /* 1. ‘small viewport height’ (svh) */
  height: 100svh;
  /* 2. ‘large viewport height’ (lvh) */
  height: 100lvh;
  /* 3. ‘dynamic viewport height’ (dvh) */
  height: 100dvh;
  /* 4. onze JS-fallback var(--vh) */
  height: calc(var(--vh, 1vh) * 100);
}

/* 1) Pin de hele Swiper vast aan het scherm */
.swiper-container.main-swiper {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* 2) Zorg dat wrapper en slides altijd 100% van die container beslaan */
.swiper-wrapper,
.swiper-slide {
  height: 100% !important;
}

/* 3) Je quiz‐containers blijven gewoon scrollbaar */
.quiz-container,
.quiz-container2 {
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* in styles.css */
.no-scroll {
  /* blokkeer de hele pagina‐scroll */
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}
