:root {
  --bg: #081226;
  --card: #0f2740;
  --ice: #bfe6ff;
  --accent: #d3817b;
  --glass: rgba(255, 255, 255, 0.06);
  --muted: rgba(255, 255, 255, 0.801);
  --gold: #ffd166;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, Arial;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(59, 105, 160, 0.16), transparent 5%),
    radial-gradient(900px 400px at 90% 90%, rgba(123, 211, 137, 0.06), transparent 10%),
    var(--bg);
  color: #eaf6ff;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100vh;
  /* voorkomt scrollbar */
}

/* Beide lagen vullen het scherm */
body {
  margin: 0;

}

.bg1,
.bg2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 2s ease;
}

/* Eerste afbeelding zichtbaar */
.bg1 {
  background-image: url('https://iili.io/fukJEYu.png');
  opacity: 1;
}

/* Tweede afbeelding onzichtbaar */
.bg2 {
  background-image: url('https://iili.io/fukJMpj.png');
  opacity: 0;
}




/* santa sleigh */

/* Positie buiten beeld */
.sleigh {
  width: 870px;
  height: 250px;
  position: absolute;
  top: 40%;
  right: -400px;
  /* start buiten beeld */
  transform: translateY(-50%);
  pointer-events: none;
}

/* Animatie */
@keyframes flyIn {
  0% {
    right: -400px;
    transform: translateY(-50%) scale(0.7) rotate(5deg);
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  70% {
    transform: translateY(-60%) scale(1.05);
  }

  100% {
    right: 60%;
    transform: translateY(-50%) scale(1) rotate(-2deg);
    opacity: 1;
  }
}

.sleigh.animate {
  animation: flyIn 5s ease-out forwards;
}

/* countdown cards */
.wrap {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  padding: 48px;
  flex-wrap: wrap;
}



.title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.12), rgba(124, 58, 237, 0.08));
  font-size: 22px;
  color: var(--accent);
  box-shadow: inset 0 -6px 18px rgba(0, 0, 0, 0.25);
}

h2 {
  font-size: 18px;
  margin: 0
}

p.small {
  color: var(--muted);
  margin: 6px 0 14px;
  font-size: 13px
}

.count {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.unit {
  background: var(--glass);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  flex: 1;
  min-width: 56px;
}

.num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em
}

.meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  margin-top: 10px;
}

.bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  transition: width 600ms linear;
}

/* end countdown cards */

/* scene */
.main-title {
  text-align: center;
  margin-bottom: 30px;
  z-index: 10;
  position: relative;
}

.main-title h1 {
  margin: 0;
  font-family: 'Montserrat', system-ui, Arial;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 3rem;
  /* Larger */
  color: var(--ice);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  /* Pop */
  transition: opacity 0.5s ease;
}

.main-title span {
  font-size: 16px;
  color: var(--muted);
  display: block;
  margin-top: 8px;
}

.scene {
  width: 100%;
  max-width: 980px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: visible;
  /* Changed from hidden to avoid clipping shadows/popups */
  margin-top: 0;
  margin-bottom: 40px;
  /* spacing at bottom */
}

header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.title {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.title h1 {
  margin: 0;
  font-family: 'Montserrat', system-ui, Arial;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 28px;
  color: var(--ice);
}

.title span {
  font-size: 13px;
  color: var(--muted)
}

.controls-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.controls {
  display: flex;
  gap: 8px;
  align-items: center
}

.btn {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ice);
  backdrop-filter: blur(6px);
}

.btn:active {
  transform: translateY(1px)
}

.btn:hover {
  transform: translateY(-6px);
  box-shadow: 4px 8px 40px rgba(228, 1, 1, 0.904);
}

/* calendar */
.calendar {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: start;
}

.weekday {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.day {
  min-height: 96px;
  /* default background, can be overridden by inline style for image */
  background: linear-gradient(180deg, rgba(139, 193, 255, 0.637), rgba(63, 54, 54, 0.637));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.day.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  /* dim image slightly to make text readable */
  z-index: 0;
}

.day .num,
.day .note,
.day .tag {
  position: relative;
  z-index: 1;
}

.day:hover {
  transform: translateY(-6px);
  box-shadow: 4px 8px 40px rgba(228, 1, 1, 0.904);
}

.day .num {
  font-weight: 700;
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  color: var(--ice);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.day .note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  opacity: 0.95
}

/* empty day placeholder */
/*.empty{background:transparent;border:0;box-shadow:none;}*/

/* special: Christmas */
.christmas {
  background-image: url('https://iili.io/fukJ12e.png');
  background-position: center;
  background-size: cover;
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.04);
  position: relative;
  overflow: visible;
}

.christmas .tag {
  display: inline-block;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
  color: var(--ice);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8)
}

/* new years eve */
.newyears {
  background-image: url('https://iili.io/fukJGkb.png');
  background-position: center;
  background-size: cover;
  color: gold;
  border: 1px solid rgb(241, 241, 238);
}

.newyears .tag {
  font-weight: bold;
  margin-top: 6px;
  color: var(--ice);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.january.newyear {
  background-image: url('https://iili.io/fukJaBS.png');
  background-position: center;
  background-size: cover;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: visible;
}

/* new years day */
.newyear .tag {
  font-weight: bold;
  margin-top: 6px;
  color: var(--ice);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}


/* small decorations */
.snowflake {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen
}

/* footer */
.legend {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px
}

.legend .dot {
  width: 12px;
  height: 12px;
  border-radius: 3px
}

.legend .item {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted)
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 40;
  background: linear-gradient(180deg, rgba(2, 10, 26, 0.6), rgba(2, 10, 26, 0.75));
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(6px);
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 14px;
  padding: 22px;
  min-width: 260px;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  text-align: center
}

.close {
  transform: translateY(-6px);
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--glass);
  cursor: pointer;
  color: var(--ice);
}

.close:hover {
  transform: translateY(-6px);
  box-shadow: 4px 8px 40px rgba(228, 1, 1, 0.904);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
}

.lightbox.show .lightbox-content {
  transform: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
  transform: none;
  object-fit: contain;
}

.close-lightbox {
  position: absolute;
  top: -40px;
  right: -10px;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.7;
}

.close-lightbox:hover {
  opacity: 1;
}

.lightbox-caption {
  text-align: center;
  color: var(--ice);
  margin-top: 10px;
  font-size: 18px;
  font-weight: 500;
}

.christmas-card {
  /*countdown*/
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 14px;
  padding: 22px;
  min-width: 260px;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  text-align: center
}


/* responsive */
@media (max-width:720px) {
  body {
    padding: 16px;
  }

  .main-title h1 {
    font-size: 2rem;
  }

  .scene {
    padding: 18px
  }

  .day {
    min-height: 78px
  }

  .calendar {
    grid-template-columns: repeat(4, 1fr);
    /* 4 on tablet/mobile */
  }

  .weekday {
    display: none;
  }

  .controls-container {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .calendar {
    grid-template-columns: repeat(3, 1fr);
    /* 3 on small mobile */
  }

  .main-title h1 {
    font-size: 1.6rem;
  }
}