    body { 
      font-family: 'Courier New', Courier, monospace; 
      width: 100dvw;
      height: 100dvh;
      margin: 0; 
      padding: 0px; 
      background-color: tomato;
      color: whitesmoke;
      overflow: hidden;
      
    }

    * {box-sizing: border-box;
    }

/* index.html css */

#grid-container {
  display: grid;
  width: 80dvw;
  height: 80dvh;
  padding-top: 50px;
  background-color: transparent;
  margin: 0 auto;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 50px 50px 50px;
  gap: 12px;
  grid-template-areas: 
  "uitleg"
  "quiz1"
  "quiz2"
  "quiz3"
  ;

}

#uitleg {
  grid-area: uitleg;
  width: 100%;
  height: 100%;
  padding: 12px;
  margin: 0;
  box-sizing: border-box;
  text-align: center;
  color: #333;
  font-weight: bold;
  font-size: 1.1em;
}

#quiz1 {
  grid-area: quiz1;
  border-radius: 12px;
  border: 2px solid #333;
  width: 80dvw;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.8rem, 4dvw, 1.2rem); /*minimaal, ideaal en maximaal*/
  white-space: nowrap; /*voorkom regelbreuk*/
  overflow: hidden;
  text-overflow: ellipses; /*eventueel afkappen met ..*/
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
}

#quiz2 {
  grid-area: quiz2;
  border-radius: 12px;
  border: 2px solid #333;
  width: 80dvw;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.8rem, 4dvw, 1.2rem); /*minimaal, ideaal en maximaal*/
  white-space: nowrap; /*voorkom regelbreuk*/
  overflow: hidden;
  text-overflow: ellipses; /*eventueel afkappen met ..*/
  
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
}

#quiz3 {
  grid-area: quiz3;
  border-radius: 12px;
  border: 2px solid #333;
  width: 80dvw;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.8rem, 4dvw, 1.2rem); /*minimaal, ideaal en maximaal*/
  white-space: nowrap; /*voorkom regelbreuk*/
  overflow: hidden;
  text-overflow: ellipses; /*eventueel afkappen met ..*/
  padding: 10px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  
}



 

#quiz1:hover, #quiz2:hover, #quiz3:hover {
  
  background-color: mediumslateblue;
}

/*quizes css*/

  #result ul {
  list-style: none;
  padding-bottom: 50px;
  padding-left: 0;
  
}


#restartBtn {
  position: sticky;
  top: 20px;
}




    .card { 
      background: orange; 
      border-radius: 16px; 
      margin: 0 auto;
      margin-top: 50px;
      padding: 12px 24px; 
      width: 80vw;
      min-height: 85dvh;
      max-height: 85dvh;
      box-shadow: 0 10px 30px rgba(0,0,0,.8); 
      overflow-y: auto;
      overflow-x: hidden;
    }

    #home {
      position: fixed;
      top: 30px;
      right: 10px;
      
      background-color: transparent;
      font-size: 150%;
      text-decoration: none;
    }

    h1 {
       margin-top: 0;
       width: 100%;
       text-align: center;
       color: #333;
       position: fixed;
       top: 0;
       left: 0;
       height: 25px;
       align-items: center;
       justify-content: center;
       opacity: 0.6;
       
    }

  .head-left {
    text-align: left;
    padding-left: 20px;
  }

  #question {
  font-size: clamp(0.9rem, 1rem, 1.1rem);
  white-space: normal;
  overflow: hidden;
  padding: 6px;
  color: #333;
  font-weight: bold;
  height: 14dvh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: 14dvh;           /* voorkomt dat het groter wordt */
  display: -webkit-box;        /* noodzakelijk voor line-clamp */
  -webkit-box-orient: vertical;
}

    #progress {
      margin-top: 0;
       
       text-align: center;
       color: #333;
       position: fixed;
       top: 0;
       right: 0;
       padding: 5px;
       text-align: right;
       
       
    }

    .answers { 
      display: grid;
      gap: 10px; 
      margin: 20px 0; 
    }

  #result {
    text-align: center;
  }

  .quiz-image {
  height: 150px;
  width: auto;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-overlay.active {
  display: flex;
}

.modal-overlay::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
}

.modal-image {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

body.modal-open {
  overflow: hidden;
}




    button.answer {
      text-align: left; 
      padding:10px 14px; 
      border: 2px solid mediumseagreen; 
      background: #fff;
      border-radius: 12px; 
      cursor: pointer; 
      font-size: 1rem;
      color: #333;
      transition: padding 0.5s ease-in-out, letter-spacing 0.7s ease-in-out;
    }

    button.answer:hover:not(.selected) { 
      border-color: tomato; 
      color: tomato;
      letter-spacing: 0.03em;
      padding-left: 37px;
    }

    button.answer.selected { 
      background: tomato; 
      border-color: mediumslateblue; 
      color: #333;
      text-align: center;
      letter-spacing: 0.03em;
      transition: none;
    }

    .actions { 
      display:flex; 
      gap: 25vw; 
      flex-wrap: wrap; 
      flex-direction: row-reverse;
      margin-top: 18px; 
    }

    .primary {
      border: 1px solid #ccc;
      background: mediumseagreen; 
      color: white; 
      padding: 12px 16px;
      border-radius: 12px; 
      cursor: pointer; 
      font-size: 1rem;
      align-self: right;
    }

    .primary:hover {
      background-color: tomato;
    }

    .secondary {
      border: 1px solid #ccc; 
      background: tomato; 
      padding: 12px 16px;
      border-radius: 12px; 
      cursor: pointer; 
      font-size: 1rem;
      
    }

    

    .secondary:hover {
      background-color: red;
      color: #ccc;
    }

    .qa-scroll {
      text-align: center;
    }

    

    #result ul li {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      margin-bottom: 20px;
      padding: 5px;
      padding-left: 0;
    }

    .muted { 
      color:#666; 
      font-size:.95rem; 
      width: 100%;
      text-align: center;
    }

    .hidden { 
      display:none; 
    }

    .score { 
      font-size: 1.2rem;  
      margin: 10px 0 0; 
      
    }

    .answers-review {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 90%;
}

.review-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.review-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
  margin: 0 auto;
}

.review-item strong {
  display: block;
  margin-bottom: 5px;
}

/* Desktop / grotere schermen */
@media (min-width: 1024px) {

  body {
    overflow: hidden;               /* geen pagina-scroll op desktop */
  }

  /*
  Optioneel: als je op grotere schermen nog steeds één kolom wilt, overschrijf media rules die .review-item naar een rij zetten:
@media (min-width: 1024px) {
.answers-review {
max-width: 700px;
margin: 0 auto;
} .review-item {

flex-direction: column;
align-items: center;
}

}
  */

  .card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  width: 80vw;
  max-width: 1100px;
  min-height: 80vh;
  max-height: 80vh;
  margin-top: 60px;
  padding: 24px 32px;
  overflow: visible;     /* niet afknippen */
}

  /* Container voor afbeelding + vraag/antwoorden */
  .card-content {
    display: flex;
    flex: 1;
    gap: 24px;
    align-items: flex-start;
  }

  /* Linkerkolom: afbeelding */
  .quiz-image {
    width: 35vw;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
  object-position: center;
  }

  /* Rechterkolom: vraag + antwoorden */
  .qa-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-height: 100%;
    overflow: hidden;
  }

  /* Vraag + antwoorden mogen scrollen als het veel tekst is */
  .qa-scroll {
    overflow-y: auto;
    padding-right: 8px;            /* ruimte voor scrollbar */
  }

  h2#question {
    margin-top: 0;
    padding: 10px;
  }

  .answers {
    margin-top: 10px;
  }

  /* Actieknoppen onderin rechts fixeren binnen de kaart */
  .actions {
    margin-top: 16px;
    justify-content: flex-end;
    gap: 116px;
  }

  /* Resultatenlijst (review) mag wel scrollen binnen de kaart */
  .answers-review {
    max-height: 35vh;
    overflow-y: auto;
    padding-right: 10px;
  }
}