/* Algemene stijl */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "TAN Kindred", bold;
  background-color: #ffe4ec;
  color: #1a1a1a;
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigatiebalk bovenaan */
nav {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: flex-start; /* <-- dit is gewijzigd */
  align-items: center;
  padding: 1rem 2rem;
  box-sizing: border-box;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  padding-left: 3.5rem;
}

nav li {
  white-space: nowrap;
}

nav a {
  text-decoration: none;
  color: #b12367;
  font-weight: bold;
  font-size: 1rem;
}

a {
  color: #2d2d5a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero {
  margin-top: 80px;
  position: relative;
  max-height: 100vh;
  overflow: hidden;
  height: auto;
}

.hero img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 80px);
  object-fit: contain;
}

/* Animatieballonnen */
.floating-img {
  position: fixed;
  width: 60px;
  bottom: -100px;
  animation: floatUp 8s linear infinite;
  z-index: 5;
  pointer-events: none;
  max-width: 100vw; /* ← voeg deze regel toe */
}

.floating-img.left {
  left: 18px;
}

.floating-img.right {
  right: 18px;
}

@keyframes floatUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh);
    opacity: 0;
  }
}

.container {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow: unset;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #b12367;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  color: #ffcde7;
  margin-bottom: 0.75rem;
  text-align: center;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.grid {
  display: flex;
  justify-content: center;  /* zet de kaarten samen in het midden */
  gap: 2rem;                /* ruimte tussen de kaarten */
  flex-wrap: wrap;          /* zodat ze eventueel kunnen doorlopen naar een volgende rij */
}

.card {
  background-color: #b12367;
  color: #ffcde7;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  font-size: large;
  flex: 0 1 320px;          /* breedte van een kaart */
  max-width: 320px;
}

ul {
  padding-left: 1.25rem;
}

ul li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

main.container {
  flex: 1;
}

footer {
  text-align: center;
  font-size: 0.95rem;
  color: black;
  padding: 1rem;
  border-top: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
  background-color: #b12367;
  backdrop-filter: blur(6px);
}

@media (max-width: 900px) {
  .card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
  }
  h1 {
    font-size: 2rem;
  }
  .grid {
    flex-direction: column;
    align-items: center;
  }
  .floating-img {
    display: none;
  }

  /* Pas de hero-afbeelding aan */
  .hero img {
    max-height: 40vh; /* Maak de afbeelding kleiner */
    object-fit: cover;
  }
}
