* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #ffffff;
    display: flex;
    justify-content: flex-start; /* Plaats inhoud naar links */
    align-items: center; /* Verticaal gecentreerd */
    min-height: 100vh;
}

.container {
    display: flex;
    justify-content: flex-start; /* Inhoud blijft links */
    align-items: center;
    width: 100%;
}

.card {
    width: 100%;
    max-width: 768px; /* Max breedte voor iPad-formaat */
    text-align: left;
}

.image-container {
    position: relative;
    margin-top: 40px; /* Zorgt voor ruimte voor de hartjes boven de afbeelding */
}
.hearts {
    position: absolute;
    top: -40px; /* Plaatst de hartjes boven de afbeelding */
    right: 10px; /* Afstand van de rechterkant van de container */
    display: flex;
    gap: 5px; /* Ruimte tussen de hartjes */
}
.heart {
    width: 30px;
    height: 30px;
}

.image-container img {
    width: 768px; /* Specifieke breedte */
    height: 500px; /* Specifieke hoogte */
    object-fit: cover; /* Snijdt bij indien nodig om de container te vullen */
    margin: 0;
    padding: 0;
    display: block;
}


.gradient-title {
    background: linear-gradient(90deg, #670d6d, #b20030);
    color: white;
    padding: 20px 20px;
    border-bottom-right-radius: 20px; /* Alleen rechterhoek afgerond */
}

.gradient-title h1 {
    font-size: 22px;
    margin: 0;
}

.content {
    padding: 20px;
}

.content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.buttons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

button {
    border: none;
    padding: 10px 20px;
    border-radius: 0px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.incorrect {
    background-color: #CC142F;
    color: white;
}

.correct {
    background-color: #4caf50;
    color: white;
    border-bottom-right-radius: 12px;
}

button:hover {
    opacity: 0.9;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparante achtergrond */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999; 
    visibility: hidden; /* Verberg standaard */
    opacity: 0; /* Onzichtbaar bij start */
    transition: visibility 0s, opacity 0.3s ease; /* Vloeiende overgang */
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Schaduw voor diepte */
    max-width: 400px;
    width: 80%;
}

.popup button {
    background: #4caf50; /* Groene knop */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
}

.popup button:hover {
    background: #45a049; /* Donkerder groen bij hover */
}

.popup.show {
    visibility: visible;
    opacity: 1;
}

.popup.hidden {
    visibility: hidden;
    opacity: 0;
}


/* Media query voor telefoons */
@media screen and (max-width: 600px) {
    .container {
      flex-direction: column; 
      align-items: flex-start; 
      padding-right: 15px;
      width: 100%;
    }
  
    .card {
      max-width: 100%; 
      text-align: left;
    }
  
    
    .image-container {
      position: relative;
      margin-top: 40px; 
      width: 100%; 
    }
  
    .hearts {
      top: -30px; 
      right: 5px; 
      gap: 3px; 
    }
  
    .heart {
      width: 20px; 
      height: 20px;
    }
  
    .image-container img {
      width: 100%; 
      height: auto; 
      object-fit: cover; 
      margin: 0;
      padding: 0;
      display: block;
    }
  
    .gradient-title {
      background: linear-gradient(90deg, #670d6d, #b20030);
      color: white;
      padding: 20px;
      border-bottom-right-radius: 20px; 
      width: 100%; 
      box-sizing: border-box; 
    }
  
    .gradient-title h1 {
      font-size: 22px;
      margin: 0;
    }
  
    .content {
      padding: 15px; 
      width: 100%;
    }
  
    .content p {
      font-size: 14px; 
      margin-bottom: 20px;
      color: #333;
    }
  
    .buttons {
      flex-wrap: wrap; 
      gap: 8px; 
    }
  
    button {
      padding: 8px 15px; 
      font-size: 12px;
    }
  
    .popup-content {
      max-width: 90%; 
      padding: 15px; 
    }
  
    .popup button {
      font-size: 14px; 
      padding: 8px 15px; 
    }
  
    .popup-content p {
      font-size: 14px; 
    }
  }