body {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.loaded {
  opacity: 1;
}

body {
  font-family: system-ui, sans-serif;
  max-width: 800px;
  margin: auto;
  padding: 20px;
  background: #fff5f7;
  color: #333;
}

/* HEADER */

header {
  text-align: center;
  margin-bottom: 30px;
}

/* NAVIGATIEBALK */

.navbar {
  background: #ffd6e0;
  padding: 15px 20px;
  border-radius: 14px;
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 30px;
}

.navbar a {
  text-decoration: none;
  color: #5a0f2e;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: 0.2s;
}
.navbar a {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #5a0f2e;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: 0.2s;
}

/* tekst boven het hart */
.navbar a span {
  position: relative;
  z-index: 1;
}

/* hartje achtergrond */
.navbar a::before {
  content: "❤";
  position: absolute;
  font-size: 22px;
  opacity: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  transition: 0.2s ease;
  z-index: 0;
}

/* hover effect */
.navbar a:hover::before {
  opacity: 0.25;
  transform: translate(-50%, -50%) scale(1.2);
}

.navbar a:hover {
  background: white;
  transform: scale(1.05);
}


.navbar a:hover {
  background: white;
  transform: scale(1.05);
}

.navbar .active {
  background: white;
  color: #d6336c;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: #ffd6e0; /* nodig zodat hij niet transparant wordt */
}


/* AFBEELDINGEN */

img {
  width: 100%;
  border-radius: 12px;
  margin-top: 10px;
}

/* TERUG LINK */

.terug {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #d6336c;
}

/* FOOTER */

footer {
  text-align: center;
  margin-top: 40px;
  opacity: 0.7;
}

h3 {
  color: #d6336c; /* zacht romantisch roze */
}

/* hartjes container onderaan */
.heart-container {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none; /* klikbare elementen erachter kunnen gewoon gebruikt worden */
  z-index: 1000;
}

/* elk hartje */
.heart {
  position: absolute;
  bottom: 0;
  font-size: 20px;
  color: #ff6b9a;
  opacity: 0.8;
  animation: floatUp 5s linear forwards;
}

/* animatie: van onder naar boven en een beetje bewegen */
@keyframes floatUp {
  0% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateX(-20px) translateY(-150px) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translateX(20px) translateY(-300px) scale(1);
    opacity: 0;
  }
}

.love-photo {
  width: 100%;
  max-width: 10cm;    /* maximaal 20 cm breed */
  max-height: 10cm;   /* maximaal 20 cm hoog */
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  margin-bottom: 10px;
  object-fit: cover;  /* houdt verhoudingen goed */
}

/* Center alle tekst op de startpagina */
body {
  text-align: center;
}

header h1, header h2, header h3, p {
  margin-top: 5px;
  margin-bottom: 10px;
  line-height: 1; /* optioneel: maakt het nog compacter */
}

.avontuur-item {
  background-color:  #ffd6e0; /* lichtroze achtergrond voor vakje */
  border-radius: 16px;
  padding: 15px 20px;
  margin-bottom: 25px;       /* ruimte tussen items */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;         /* alles gecentreerd */
}

.avontuur-item p {
  font-size: 1.1rem;
  line-height: 1.4;
  
  padding: 10px 15px;
  border-radius: 12px;
}


.avontuur h2 {
  color: #000; /* zwart voor titels binnen avontuur */
  margin-bottom: 10px;
}

.avontuur p {
  font-size: 1.1rem;   /* groter dan standaard 1rem */
  margin: 1px 0;
  line-height: 1.;
  border-radius: 12px; 
}

.avontuur-media {
  display: block;
  margin: 0 auto 1px auto; /* gecentreerd + ruimte onder media */
  width: 100%;
  max-width: 15cm;
  max-height: 10cm;
  border-radius: 12px;
  object-fit: cover;
}

.avontuur-dual {
  display: flex;
  justify-content: center; /* centreert de media */
  gap: 10px;               /* ruimte tussen media */
  flex-wrap: wrap;          /* op kleinere schermen onder elkaar */
  margin-bottom: 10px;      /* kleine ruimte onder de media */
}

.avontuur-dual .avontuur-media {
  width: calc(50% - 5px);   /* twee media naast elkaar */
  max-width: 15cm;           /* max 15cm breed */
  max-height: 10cm;          /* max 15cm hoog */
  border-radius: 12px;
  object-fit: cover;         /* behoud verhouding */
}
