/* Body */
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(#013220, #000);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #fff;
}

/* Header */
.calendar-header {
  width: 100%;
  background: linear-gradient(135deg, #0a3d1e, #1b6a3a);
  text-align: center;
  padding: 0.8rem 1rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

.calendar-header h1 {
  font-family: 'Mountains of Christmas', cursive;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #fffae6;
  text-shadow: 0 0 5px #fff, 0 0 10px #ff0000;
}

/* Video container */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  margin: 1rem auto;
  border-radius: 10px;
  overflow: hidden;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Background video */
.background-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(15px) brightness(0.5);
  z-index: 0;
}

/* Main video */
#myVideo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  background-color: black;
}

/* Buttons */
.left-buttons {
  position: absolute;
  top: 5%;
  left: 5%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 2;
}

.click-box {
  background: linear-gradient(135deg, #b30000, #ff0000);
  border: 3px solid #fff;
  border-radius: 10px;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  display: none;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 10px #fff, 0 0 20px #ff0000; }
  to { box-shadow: 0 0 20px #fff, 0 0 40px #ff0000; }
}

.persistent-box {
  background: linear-gradient(135deg, #006400, #00aa00);
}

/* Footer */
.calendar-footer {
  width: 100%;
  background: linear-gradient(135deg, #0a3d1e, #1b6a3a);
  padding: 0.8rem 1rem;
  text-align: center;
  font-family: 'Mountains of Christmas', cursive;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 -3px 6px rgba(0,0,0,0.5);
}

.calendar-footer a {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
}

.calendar-footer a:hover {
  text-decoration: underline;
}

.footer-decoration {
  margin-top: 5px;
  font-size: 1.2rem;
}

/* Snow */
.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: #fff;
  user-select: none;
  pointer-events: none;
  animation: fall linear infinite;
}

@keyframes fall {
  0% { transform: translateY(0) translateX(0); opacity: 1; }
  100% { transform: translateY(110vh) translateX(20px); opacity: 0.8; }
}

/* ---------------------- */
/* Responsive: Mobilversion */
@media (max-width: 768px) {
  .video-frame {
    max-width: 100%;
    width: 100%;
    aspect-ratio: auto;
    flex-direction: column; /* video + knapper i kolonne */
    margin: 0; /* fjern luft */
    border-radius: 0; /* fyld hele skærmbredden */
  }

  #myVideo {
    width: 100vw; /* fyld hele mobilbredden */
    height: auto;
  }

  /* Flyt knapper under video på mobil */
  .left-buttons {
    position: static; /* fjern absolute */
    flex-direction: row; /* side ved side */
    justify-content: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
  }

  .click-box {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}
