.roboto-thin {
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-style: normal;
  }
  
  .roboto-light {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .roboto-regular {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .roboto-medium {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-style: normal;
  }
  
  .roboto-bold {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .roboto-black {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-style: normal;
  }
  
  .roboto-thin-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-style: italic;
  }
  
  .roboto-light-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .roboto-regular-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .roboto-medium-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-style: italic;
  }
  
  .roboto-bold-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: italic;
  }
  
  .roboto-black-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-style: italic;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
    font-family: "roboto", sans-serif;
    min-height: 100vh;
  }
  
  body {
    background-color: #F5F7FA;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
  }
  
  p {
    font-size: 16px;
  }
  
  #container {
    background-color: white;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    max-width: 500px;
    margin-top: 20px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    padding: 10px;
    box-shadow: rgba(137, 161, 226, 1) 0px 14px 20px 0px;
    
  }

  #footer {
    border-radius: 20px;
    display: flex;
    margin: 0 auto;
    margin-bottom: 30px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
  }
  
  #settings-section,
  #quiz-section {
    padding: 20px;
    width: 100%;
    border-radius: 15px;
  }
  
  #quiz-section h2#set-title {
    text-align: center;
    font-size: 1.2em;
    font-weight: normal;
    margin-bottom: 20px;
  }
  
  #settings-section {
    color: #423F52;
  }
  
  #settings-section h2 {
    color: #423F52;
    font-size: 24px;
    margin-bottom: 20px;
    font-style: normal;
    font-weight: normal;
  }

  #settings-section h3 {
    color: #423F52;
    font-size: 22px;
    margin-bottom: 20px;
    font-style: normal;
    font-weight: normal;
    text-align: center;
  }

  #settings-section p{
    color: #423F52;
    line-height: 1.3;
    font-size: 17px;
  }
  
  #settings-section label {
    color: #423F52;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
  }
  
  #settings-section button {
    width: 100%;
  }

  #settings-section ul {
    padding: 0 0 0 20px;
  }
  
  #settings-section ul li {
    margin-bottom: 10px;
    font-size: 18px;
  }
  
  .audio-btn, .audio-answer-btn {
    display: none;
  }

  /* Specifieke stijl voor quizsectie */
  #quiz-section {
    background-color: #fff;
  }
  
  /* Algemene knopstijl */
  button,
  .btn {
    background-color: #2c3e50;
    background: linear-gradient(145deg, #4EBDFB, #7948E2);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
    box-shadow: rgba(137, 161, 226, 1) 0px 14px 20px -10px;
    transform: scale(1);
    transition: all 0.3s ease;
  }

  .user {
    width: auto !important;
    display: block;
    margin-top: 15px;
    box-shadow: rgba(137, 161, 226, 1) 0px 14px 20px -10px;
    text-decoration: none;
  }
  
  button:hover,
  .btn:hover {
    background-color: #34495e;
    box-shadow: rgba(137, 161, 226, 1) 0px 14px 30px -20px;
    transform: scale(1.02);
  }
  
  button:focus,
  .btn:focus,
  input:focus,
  select:focus {
    transform: scale(1);
  }
  
  button#pause-btn {
    margin-bottom: 10px;
  }
  
  /* Stijl voor meerkeuze knoppen */
  #choices {
    margin-bottom: 10px;
  }
  
  .choice-btn {
    background: linear-gradient(145deg, #FFF, #FFF);
    color: #423F52;
    /* border: 1px solid #E2E1E6; */
    border-radius: 15px;
    padding: 25px;
    margin: 4px 0;
    display: inline-block;
    width: 50%;
    text-align: center;
    cursor: pointer;
    font-size: 18px;
    transform: scale(0.98);
  }
  
  .choice-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1);
    transition: all 0.3s ease;
  }
  
  .choice-btn:active {
    background-color: #d0d0d0;
  }
  
  .choice-btn:focus {
    outline: 3px solid #3F77EE;
  }
  
  .choice-btn:disabled,
  .choice-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  .choice-btn:disabled:hover,
  .choice-btn.disabled:hover {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  .choice-btn.selected {
    background-color: #d1e7dd;
    border-color: #badbcc;
  }
  
  #disabled {
    cursor: not-allowed;
  }
  
  /* Input velden stijl */
  input[type="text"],
  input[type="number"],
  select {
    width: -webkit-fill-available;
    padding: 15px;
    border: 1px solid #E1E1E3;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #423F52;
  }
  
  input[type="number"] {
    width: auto;
    display: none;
  }
  
  input[type="text"] {
    border-image-slice: 1;
  }
  
  input[type="number"]:focus,
  select:focus {
    outline: none;
  }

  select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url("images/arrow-down-thin.svg") no-repeat 60px;
    background-position: 97% 50%;;
    width: 100%;
    border: 1px solid #E1E1E3;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    line-height: 1.1;
    background-color: #fff;
    background-size: 12px;
  }

  select {
    line-height: 1;
    /* -webkit-appearance: none; */
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3); /* Semi-transparant zwart/ of lichtgrijs: rgba(0,0,0,0.1) bijv.*/
  z-index: 999; /* net onder popup */
}

.time-limit {
  display: none !important;
}

#overlay.hidden {
  display: none;
}

  select::-ms-expand {
    display: block;
  }
  
  #timer,
  #score,
  #question-number,
  #wrong-answers,
  #avg-time,
  #high-score {
    margin-top: 20px;
    color: #423F52;
    font-size: 18px;
  }
  
  #avg-time {
    margin-bottom: 20px;
  }
  
  /* Kaart stijl */
  #card {
    margin: 0 0 20px;
    background-color: transparent;
    border-radius: 18px;
    font-style: italic;
    padding: 20px 10px;
    color: #423F52;
    font-size: 20px;
    text-align: center;
  }
  
  /* Voortgangsbalk container */
  #progress-bar-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .progress-label {
    font-size: 1em;
    margin: 0 10px;
  }
  
  #correct-count {
    margin: 2px 0 0 5px;
    float: right;
  }
  
  /* Voortgangsbalk */
  #progress-bar {
    flex: 1;
    height: 6px;
    background-color: #E2E1E7;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
  }
  
  #progress-fill {
    height: 100%;
    width: 0%;
    background-color: #3F77EE;
    transition: width 0.5s;
  }
  
  /* Hart icoon */
  #heart-icon {
    color: red;
  }
  
  /* Stijl voor de antwoord-popup */
  #answer-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: -webkit-fill-available;
    background-color: #f9f9f9; /* Lichte achtergrondkleur */
    border-top: 1px solid #ccc;
    padding: 15px;
    display: flex;
    flex-wrap: wrap; /* Zorgt ervoor dat inhoud wrapt indien nodig */
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
  }
  
  #answer-popup.hidden {
    display: none;
  }
  
  #answer-message {
    color: #423F52;
    flex: 1 1 100%; /* Laat het bericht de volledige breedte innemen */
    font-size: 1.1em;
    margin-bottom: 10px;
  }
  
  #popup-buttons {
    display: block;
    gap: 10px;
    width: 100%;
  }
  
  /* Samenvatting sectie */
  #summary-section {
    background-color: #fff;
    margin-top: 40px;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 650px;
    padding: 20px;
  }
  
  .summary-section .new-highscore {
    color: gold;
    font-weight: bold;
    font-size: 1.3em;
  }
  
  #summary-text {
    text-align: left;
    color: #333;
    padding: 0 20px;
  }
  
  #summary-text h2 {
    font-size: 24px;
    font-weight: bold;
  }
  
  #summary-text ul {
    list-style: none;
    padding: 0;
  }
  
  #summary-text ul li {
    margin-bottom: 10px;
    font-size: 18px;
  }
  
  .correct-message {
    color: #423F52;
    font-weight: bold;
    display: block;
  }
  
  .incorrect-message {
    color: red;
    font-weight: bold;
    display: block;
  }
  
  /* Correcte antwoorden */
  .correct {
    background: green !important;
    background: rgb(34,193,195) !important;
    background: linear-gradient(0deg, rgba(34,193,195,1) 0%, rgba(47,253,45,0.7917542016806722) 100%) !important;
    background: none;
    color: white;
  }
  
  .correct:hover {
    background: none;
    color: white;
  }
  
  /* Onjuiste antwoorden */
  .incorrect {
    background: red !important;
    background: #FF416C !important;
    background: -webkit-linear-gradient(to right, #FF4B2B, #FF416C) !important;  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #FF4B2B, #FF416C) !important; /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: none;
    color: white;
  }
  
  .incorrect:hover {
    background: none;
    color: white;
  }
  
  /* Geselecteerde knoppen (optioneel) */
  .selected {
    opacity: 0.7;
  }
  
  #next-btn {
    margin-top: 20px;
  }
  
  img {
    max-width: 70%;
    margin-top: 10px;
    border-radius: 10px;
  }
  
  .correct-answers li {
    background-color: #d4edda; /* Lichtgroene achtergrond */
    border-left: 5px solid #28a745; /* Groene rand */
    margin-bottom: 10px;
    padding: 10px;
  }
  
  .incorrect-answers li {
    background-color: #f8d7da; /* Lichtrode achtergrond */
    border-left: 5px solid #dc3545; /* Rode rand */
    margin-bottom: 10px;
    padding: 10px;
  }

  /* Flashcard container */
.flashcard {
  height: 200px;
  position: relative;
  text-align: left;
  margin: 0px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s ease;
}

/* Stijlen voor de content op de flashcard */
.flashcard-content {
  position: absolute;
  background-image: url(images/finger.svg);
  background-repeat: no-repeat;
  background-position: 95% 0%;
  background-size: 50px;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  font-weight: 500;
  padding: 20px;
  box-sizing: border-box;
  backface-visibility: hidden; 
  border-radius: 10px;
}

.flashcard-content.hidden {
  display: none;
}

.front, .back {
  padding: 0 60px 0 0;
}

.flashcard:hover {
  transform: scale(1.02);
}

.flashcard-info {
  margin-top: 10px;
  font-size: 0.9em;
  font-weight: normal;
  color: #555;
}
  
  /* Verborgen elementen */
  .hidden {
    display: none;
  }

  .checkbox-wrapper-3 input[type="checkbox"] {
    visibility: hidden;
    display: none;
  }

  .checkbox-wrapper-3 .toggle {
    position: relative;
    display: block;
    width: 40px;
    height: 20px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transform: translate3d(0, 0, 0);
  }
  .checkbox-wrapper-3 .toggle:before {
    content: "";
    position: relative;
    top: 3px;
    left: 3px;
    width: 34px;
    height: 14px;
    display: block;
    background: #9A9999;
    border-radius: 8px;
    transition: background 0.2s ease;
  }
  .checkbox-wrapper-3 .toggle span {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    display: block;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(154, 153, 153, 0.5);
    transition: all 0.2s ease;
  }
  .checkbox-wrapper-3 .toggle span:before {
    content: "";
    position: absolute;
    display: block;
    margin: -18px;
    width: 56px;
    height: 56px;
    background: rgba(79, 46, 220, 0.5);
    border-radius: 50%;
    transform: scale(0);
    opacity: 1;
    pointer-events: none;
  }

  .checkbox-wrapper-3 #cbx-3:checked + .toggle:before {
    background: #947ADA;
  }
  .checkbox-wrapper-3 #cbx-3:checked + .toggle span {
    background: #4F2EDC;
    transform: translateX(20px);
    transition: all 0.2s cubic-bezier(0.8, 0.4, 0.3, 1.25), background 0.15s ease;
    box-shadow: 0 3px 8px rgba(79, 46, 220, 0.2);
  }
  .checkbox-wrapper-3 #cbx-3:checked + .toggle span:before {
    transform: scale(1);
    opacity: 0;
    transition: all 0.4s ease;
  }

  /* Vraagtype Selectie Styling */
#question-type-selection {
  margin-bottom: 20px;
}

#question-type-selection h4 {
  margin-bottom: 10px;
}

#question-type-selection label {
  font-size: 1em;
  cursor: pointer;
}

#question-type-selection input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
  cursor: pointer;
}
  
  /* Media Queries voor betere responsiveness */
  @media (max-width: 768px) {
    #container {
      flex-direction: row;
      padding: 20px;
    }
  
    button,
    .btn {
      font-size: 14px;
      padding: 12px;
      width: 100%;
      transition: all 0.3s ease-in;
    }
  
    input[type="text"],
    input[type="number"],
    select {
      font-size: 14px;
    }
  
    #summary-text ul li {
      font-size: 16px;
    }
  }
  
  @media (max-width: 480px) {
    body {
      background-color: #fff;
    }
  
    #container {
      height: auto;
      padding: 0;
      margin: 20px 20px 0 20px;
      width: auto;
      border-radius: 20px;
    }
  
    h2 {
      font-size: 22px;
    }
  
    p {
      font-size: 14px;
    }
  
    #summary-text {
      padding: 0;
    }
  
    button,
    .btn {
      font-size: 18px;
      padding: 22px;
      margin-bottom: 15px;
    }
  
    #settings-section,
    #quiz-section {
      border-radius: 20px;
      width: calc(100vw - 80px);
    }
  }
  