/* ========== MEDEDELING.CSS ========== */

.mededeling {
  margin: 1em auto;
  width: 600px;
  background-color: #fff89a;
  color: #333;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 1.1em;
  padding: 15px;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
  border: 1px solid #e0d000;
  border-radius: 8px;
  text-align: center;
  transform: rotate(-2deg);
  opacity: 1;
  transition: opacity 3s ease;
}

.mededeling.fade-out {
  opacity: 0;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}
#tijdcapsuleTitel {
  margin-bottom: 0.8em;
  font-size: 1.4em;
  font-weight: bold;
}

#tijdcapsuleTekst {
  white-space: normal;
}

.prikker {
  font-size: 1.5em;
  margin-bottom: 5px;
  transform: rotate(5deg);
}

/* Verjaardag highlight */
.birthday-highlight {
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.55),
              0 0 50px rgba(255, 215, 0, 0.35);
  border: 2px solid rgba(255, 215, 0, 0.6);
  transition: box-shadow 0.6s ease, border 0.6s ease;
}

/* Confetti */
.confetti-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.confetti-container.hidden {
  display: none;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 14px;
  opacity: 0.9;
  animation: confettiFall 3s linear infinite;
  transform: rotate(15deg);
}

.confetti-piece:nth-child(odd) { background-color: #f2c94c; }
.confetti-piece:nth-child(3n) { background-color: #e67e22; }
.confetti-piece:nth-child(5n) { background-color: #a3be8c; }
