/* =========================================================
   TIMERCode TRACKS SANTA
   HYPER-DETAILED CSS VILLAGE
   ========================================================= */
   
   /* Reset básico */
html,
body {
  margin: 0;
  padding: 0;
    background: linear-gradient(
    90deg,
    #b71c1c,
    #2e7d32,
    #c62828,
    #388e3c,
    #b71c1c
  );

  background-size: 300% 100%;

  animation: nav-background 4s linear infinite;
}

#startup{
  color: white;
  text-align: center;

  font-family: "Lobster", "Comic Sans MS", cursive;
  font-size: 24px;
  font-weight: bold;
}


.image-container {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  isolation: isolate;

  background:
    radial-gradient(
      ellipse at 70% 25%,
      rgba(130,160,210,.20),
      transparent 30%
    ),
    linear-gradient(
      to bottom,
      #010207 0%,
      #020714 25%,
      #061427 52%,
      #0b2134 75%,
      #102b3b 100%
    );

  box-shadow:
    inset 0 -80px 100px rgba(0,0,0,.55);
}


/* =========================================================
   SKY
   ========================================================= */

.sky-glow {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      ellipse at 70% 20%,
      rgba(180,210,255,.14),
      transparent 30%
    ),
    radial-gradient(
      ellipse at 20% 50%,
      rgba(60,100,150,.10),
      transparent 40%
    );

  z-index: 1;
}


/* =========================================================
   STARS
   ========================================================= */

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    radial-gradient(circle at 10% 15%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 25% 30%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 12%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 58% 25%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 10%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 35%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 65% 42%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 35% 45%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 92% 20%, white 0 1px, transparent 1.5px);

  animation: stars-twinkle 4s ease-in-out infinite alternate;
}

.stars-1 {
  opacity: .45;
  transform: scale(.8);
}

.stars-2 {
  opacity: .7;
  transform: scale(1.1);
  animation-delay: 1s;
}

.stars-3 {
  opacity: .9;
  transform: scale(1.35);
  animation-delay: 2s;
}

@keyframes stars-twinkle {
  from {
    opacity: .35;
  }

  to {
    opacity: .95;
  }
}


/* =========================================================
   MOON
   ========================================================= */

.moon {
  position: absolute;

  width: 112px;
  height: 112px;

  right: 10%;
  top: 35px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 30%,
      #ffffff 0%,
      #e8edf3 45%,
      #bdc6d0 75%,
      #8995a1 100%
    );

  box-shadow:
    0 0 20px rgba(220,235,255,.5),
    0 0 70px rgba(150,190,240,.20);

  z-index: 4;
}

.moon-crater {
  position: absolute;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(100,110,120,.22),
      rgba(150,160,170,.08) 60%,
      transparent 70%
    );
}

.crater-1 {
  width: 25px;
  height: 18px;
  left: 20px;
  top: 27px;
}

.crater-2 {
  width: 17px;
  height: 17px;
  right: 18px;
  top: 20px;
}

.crater-3 {
  width: 30px;
  height: 22px;
  left: 42px;
  bottom: 18px;
}

.crater-4 {
  width: 14px;
  height: 12px;
  left: 16px;
  bottom: 28px;
}

.moon-glow {
  position: absolute;
  inset: -55px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(180,210,255,.16),
      transparent 65%
    );

  z-index: -1;
}


/* =========================================================
   CLOUDS
   ========================================================= */

.cloud {
  position: absolute;

  width: 180px;
  height: 40px;

  opacity: .12;

  filter: blur(4px);

  z-index: 5;

  animation: cloud-move 70s linear infinite;
}

.cloud span {
  position: absolute;

  bottom: 0;

  width: 80px;
  height: 45px;

  border-radius: 50%;

  background: #b7c7d8;
}

.cloud span:nth-child(1) {
  left: 0;
}

.cloud span:nth-child(2) {
  left: 55px;
  width: 100px;
  height: 60px;
}

.cloud span:nth-child(3) {
  right: 0;
}

.cloud-1 {
  top: 120px;
  left: -200px;
}

.cloud-2 {
  top: 190px;
  left: -400px;
  transform: scale(.7);
  animation-duration: 100s;
}

@keyframes cloud-move {
  from {
    transform: translateX(-200px);
  }

  to {
    transform: translateX(130vw);
  }
}


/* =========================================================
   FOREST
   ========================================================= */

.forest {
  position: absolute;
  left: 0;
  right: 0;
}

.forest-back {
  bottom: 105px;
  height: 230px;
  z-index: 7;
}

.tree {
  position: absolute;

  width: 0;
  height: 0;

  border-left: 38px solid transparent;
  border-right: 38px solid transparent;
  border-bottom: 125px solid #071a20;

  filter:
    drop-shadow(0 10px 10px rgba(0,0,0,.5));
}

.tree::before,
.tree::after {
  content: "";

  position: absolute;

  left: -48px;

  width: 0;
  height: 0;

  border-left: 48px solid transparent;
  border-right: 48px solid transparent;
}

.tree::before {
  top: 35px;
  border-bottom: 85px solid #0a242b;
}

.tree::after {
  top: 65px;
  border-bottom: 75px solid #0c2b32;
}

.tree-1 { left: 2%; bottom: 0; transform: scale(.8); }
.tree-2 { left: 13%; bottom: 10px; transform: scale(.65); }
.tree-3 { left: 25%; bottom: 0; transform: scale(1.1); }
.tree-4 { left: 42%; bottom: 0; transform: scale(.75); }
.tree-5 { left: 58%; bottom: 0; transform: scale(1); }
.tree-6 { left: 73%; bottom: 0; transform: scale(.7); }
.tree-7 { left: 85%; bottom: 0; transform: scale(1.1); }
.tree-8 { left: 96%; bottom: 0; transform: scale(.8); }


/* =========================================================
   ROAD
   ========================================================= */

.village-road {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 180px;

  z-index: 12;

  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(110,125,135,.16),
      rgba(70,80,90,.22)
    );

  transform: perspective(500px) rotateX(40deg);
  transform-origin: bottom;
}

.road-shadow {
  position: absolute;
  inset: 20% 0 0;

  background:
    radial-gradient(
      ellipse,
      rgba(0,0,0,.24),
      transparent 70%
    );
}

.road-snow {
  position: absolute;

  width: 180px;
  height: 30px;

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse,
      rgba(255,255,255,.9),
      rgba(210,225,235,.3),
      transparent 70%
    );

  filter: blur(3px);
}

.snow-road-1 {
  left: 15%;
  top: 45%;
}

.snow-road-2 {
  right: 15%;
  top: 60%;
}


/* =========================================================
   HOUSES
   ========================================================= */

.houses {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 95px;

  height: 290px;

  z-index: 15;
}

.house {
  position: absolute;

  bottom: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.22),
      transparent 25%,
      rgba(255,255,255,.05) 60%,
      rgba(0,0,0,.2)
    );

  box-shadow:
    0 25px 35px rgba(0,0,0,.38);
}


/* HOUSE POSITIONS */

.house-1 {
  left: -25px;
  width: 190px;
  height: 180px;
}

.house-2 {
  left: 16%;
  width: 160px;
  height: 150px;
}

.house-3 {
  left: 34%;
  width: 225px;
  height: 215px;
}

.house-4 {
  left: 57%;
  width: 170px;
  height: 155px;
}

.house-5 {
  left: 73%;
  width: 190px;
  height: 180px;
}

.house-6 {
  right: -30px;
  width: 215px;
  height: 200px;
}


/* WALL */

.house-wall {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;
  top: 25px;

  background:
    linear-gradient(
      90deg,
      #5d3f35,
      #765246 45%,
      #4d352e
    );

  border-radius: 4px 4px 0 0;

  box-shadow:
    inset 8px 0 15px rgba(0,0,0,.2),
    inset -8px 0 15px rgba(0,0,0,.2);
}


/* BRICKS */

.brick {
  position: absolute;

  width: 30px;
  height: 10px;

  border-radius: 2px;

  background: rgba(35,20,17,.22);
}

.brick-1 {
  left: 10px;
  top: 25px;
}

.brick-2 {
  left: 50px;
  top: 48px;
}

.brick-3 {
  left: 105px;
  top: 30px;
}

.brick-4 {
  right: 20px;
  top: 70px;
}

.brick-5 {
  left: 35px;
  bottom: 30px;
}


/* ROOF */

.roof {
  position: absolute;

  left: -20px;
  right: -20px;

  top: -5px;

  height: 85px;

  transform: skewX(-5deg);

  z-index: 4;
}

.roof-surface {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      145deg,
      #1a1b20,
      #272a2e 45%,
      #0d1014
    );

  clip-path: polygon(
    0 100%,
    50% 0,
    100% 100%
  );

  box-shadow:
    0 10px 20px rgba(0,0,0,.45);
}


/* SNOW ON ROOF */

.roof-snow {
  position: absolute;

  left: 2px;
  right: 2px;
  top: 2px;

  height: 27px;

  background:
    linear-gradient(
      to bottom,
      #ffffff,
      #e6edf2 65%,
      #bdcbd4
    );

  clip-path: polygon(
    0 100%,
    50% 0,
    100% 100%,
    95% 95%,
    50% 20%,
    5% 95%
  );

  filter:
    drop-shadow(0 3px 4px rgba(0,0,0,.25));
}

.roof-snow-thick {
  position: absolute;

  width: 45%;
  height: 15px;

  top: 27px;
  left: 27%;

  border-radius: 50%;

  background:
    linear-gradient(
      to bottom,
      white,
      #d6e1e8
    );

  filter: blur(.5px);
}


/* =========================================================
   CHIMNEY
   ========================================================= */

.chimney {
  position: absolute;

  width: 30px;
  height: 70px;

  right: 25px;
  top: -38px;

  z-index: 8;
}

.chimney-body {
  position: absolute;

  inset: 0;

  background:
    repeating-linear-gradient(
      to bottom,
      #513b37 0 10px,
      #382724 10px 13px
    );

  box-shadow:
    inset 4px 0 5px rgba(255,255,255,.08),
    inset -4px 0 5px rgba(0,0,0,.3);
}

.chimney-cap {
  position: absolute;

  left: -4px;
  right: -4px;
  top: -4px;

  height: 8px;

  border-radius: 3px;

  background:
    linear-gradient(
      to bottom,
      #eef3f5,
      #bbc7cd
    );

  box-shadow:
    0 3px 5px rgba(0,0,0,.4);
}


/* CHIMNEY GLOW */

.chimney-glow {
  position: absolute;

  left: 3px;
  right: 3px;

  bottom: 2px;

  height: 15px;

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse,
      rgba(255,170,65,.7),
      transparent 70%
    );

  animation: chimney-fire 1.2s infinite alternate;
}

@keyframes chimney-fire {
  from {
    opacity: .45;
  }

  to {
    opacity: 1;
  }
}


/* =========================================================
   SMOKE
   ========================================================= */

.smoke span {
  position: absolute;

  width: 16px;
  height: 16px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(210,220,225,.35),
      transparent 70%
    );

  animation:
    smoke-rise 5s linear infinite;
}

.smoke span:nth-child(1) {
  left: 5px;
  top: -15px;
}

.smoke span:nth-child(2) {
  left: 13px;
  top: -5px;
  animation-delay: 1s;
}

.smoke span:nth-child(3) {
  left: 2px;
  top: -25px;
  animation-delay: 2s;
}

.smoke span:nth-child(4) {
  left: 15px;
  top: -35px;
  animation-delay: 3s;
}

@keyframes smoke-rise {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(.6);
  }

  30% {
    opacity: .55;
  }

  100% {
    opacity: 0;
    transform:
      translateY(-75px)
      translateX(15px)
      scale(2.5);
  }
}


/* =========================================================
   WINDOWS
   ========================================================= */

.window {
  position: absolute;

  width: 43px;
  height: 50px;

  background:
    linear-gradient(
      135deg,
      rgba(255,190,90,.65),
      rgba(255,220,145,.35)
    );

  border: 5px solid #2b211e;

  box-shadow:
    inset 0 0 15px rgba(255,190,80,.6),
    0 0 14px rgba(255,170,60,.18);
}

.window-1 {
  left: 25px;
  bottom: 55px;
}

.window-2 {
  right: 22px;
  bottom: 62px;
}

.window-frame {
  position: absolute;
  inset: 0;

  border: 2px solid rgba(255,255,255,.16);
}

.window-cross {
  position: absolute;

  background: rgba(50,38,32,.8);

  z-index: 3;
}

.window-cross.vertical {
  width: 4px;
  height: 100%;
  left: 50%;
}

.window-cross.horizontal {
  height: 4px;
  width: 100%;
  top: 50%;
}

.window-light {
  position: absolute;
  inset: -15px;

  background:
    radial-gradient(
      ellipse,
      rgba(255,180,70,.22),
      transparent 70%
    );

  z-index: -1;
}

.curtain {
  position: absolute;

  top: 0;
  bottom: 0;

  width: 12px;

  background:
    linear-gradient(
      90deg,
      #681d25,
      #9b343c,
      #50141b
    );

  z-index: 4;
}

.curtain-left {
  left: 0;
}

.curtain-right {
  right: 0;
}


/* =========================================================
   DOORS
   ========================================================= */

.door {
  position: absolute;

  width: 40px;
  height: 72px;

  bottom: 0;
  left: calc(50% - 20px);

  background:
    linear-gradient(
      90deg,
      #241713,
      #543127,
      #261712
    );

  border: 4px solid #251914;

  box-shadow:
    inset 0 0 8px rgba(0,0,0,.7);
}

.door-frame {
  position: absolute;

  inset: -6px;

  border: 3px solid #30211c;
}

.door-handle {
  position: absolute;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  right: 7px;
  top: 38px;

  background: #d5b15e;

  box-shadow:
    0 0 5px rgba(255,220,120,.4);
}

.door-window {
  position: absolute;

  width: 20px;
  height: 17px;

  left: 7px;
  top: 10px;

  background:
    linear-gradient(
      135deg,
      #9dc9dc,
      #4e788b
    );

  border: 2px solid #17110e;
}

.door-step {
  position: absolute;

  width: 58px;
  height: 9px;

  bottom: -8px;
  left: calc(50% - 29px);

  border-radius: 50%;

  background:
    linear-gradient(
      to bottom,
      #dce6eb,
      #aebcc4
    );
}


/* =========================================================
   WREATH
   ========================================================= */

.wreath {
  position: absolute;

  width: 20px;
  height: 20px;

  border: 5px solid #163c28;

  border-radius: 50%;

  left: calc(50% - 10px);
  top: 38px;

  box-shadow:
    0 0 3px rgba(0,0,0,.6);
}


/* =========================================================
   CHRISTMAS LIGHTS
   ========================================================= */

.christmas-lights {
  position: absolute;

  top: 30px;
  left: 10px;
  right: 10px;

  display: flex;
  justify-content: space-between;

  z-index: 10;
}

.christmas-lights span {
  width: 7px;
  height: 9px;

  border-radius: 50%;

  background: #ffd45c;

  box-shadow:
    0 0 8px rgba(255,200,70,.8);

  animation:
    light-blink 1.5s infinite alternate;
}

.christmas-lights span:nth-child(even) {
  animation-delay: .7s;
}

@keyframes light-blink {
  from {
    opacity: .35;
  }

  to {
    opacity: 1;
  }
}


/* =========================================================
   FRONT FOREST
   ========================================================= */

.forest-front {
  bottom: 55px;

  height: 170px;

  z-index: 42;

  pointer-events: none;
}

.tree-a {
  left: 5%;
  bottom: 0;
  transform: scale(1.2);
}

.tree-b {
  left: 28%;
  bottom: -20px;
  transform: scale(.9);
}

.tree-c {
  right: 24%;
  bottom: -15px;
  transform: scale(1.1);
}

.tree-d {
  right: 3%;
  bottom: -10px;
  transform: scale(1.35);
}


/* =========================================================
   LAMPS
   ========================================================= */

.lamp {
  position: absolute;

  bottom: 130px;

  width: 18px;
  height: 130px;

  z-index: 30;
}

.lamp-1 {
  left: 31%;
}

.lamp-2 {
  right: 30%;
}

.lamp-post {
  position: absolute;

  left: 7px;
  bottom: 0;

  width: 5px;
  height: 105px;

  background:
    linear-gradient(
      to right,
      #11151a,
      #4c5358,
      #101318
    );
}

.lamp-head {
  position: absolute;

  top: 10px;
  left: 1px;

  width: 17px;
  height: 20px;

  border-radius: 8px 8px 4px 4px;

  background:
    linear-gradient(
      to bottom,
      #23282d,
      #090b0e
    );
}

.lamp-light {
  position: absolute;

  width: 100px;
  height: 100px;

  top: -25px;
  left: -42px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255,205,120,.18),
      transparent 70%
    );

  animation: lamp-flicker 2s infinite alternate;
}

@keyframes lamp-flicker {
  from {
    opacity: .65;
  }

  to {
    opacity: 1;
  }
}


/* =========================================================
   SANTA
   ========================================================= */

.santa {
  position: absolute;

  width: 72px;
  height: 145px;

  left: -110px;
  bottom: 150px;

  z-index: 50;

  transform-origin: bottom center;

  animation:
    santa-route 48s linear infinite;

  filter:
    drop-shadow(0 10px 8px rgba(0,0,0,.45));
}


/* =========================================================
   SANTA ROUTE
   =========================================================

   0–10%  aparece y camina
   10–16% primera casa
   16–20% baja chimenea
   20–24% permanece escondido
   24–28% sale
   28–40% camina
   40–44% baja
   44–48% escondido
   48–52% sale
   etc.
   ========================================================= */

@keyframes santa-route {

  0% {
    left: -110px;
    bottom: 150px;
    transform: scale(.8);
  }

  8% {
    left: 8%;
    bottom: 150px;
    transform: scale(.85);
  }

  12% {
    left: 15%;
    bottom: 150px;
  }

  /* SUBE AL TECHO */

  15% {
    left: 18%;
    bottom: 225px;
    transform: scale(.75);
  }

  /* BAJA */

  16% {
    left: 19%;
    bottom: 210px;
    transform: scale(.65);
  }

  18% {
    left: 19%;
    bottom: 170px;
    transform: scale(.45);
  }

  /* ESCONDIDO 2 SEGUNDOS */

  18%,
  22% {
    left: 19%;
    bottom: 170px;
    transform: scale(.45);
  }

  /* SALE */

  24% {
    left: 19%;
    bottom: 215px;
    transform: scale(.7);
  }

  28% {
    left: 26%;
    bottom: 150px;
    transform: scale(.85);
  }


  /* CASA 2 */

  35% {
    left: 37%;
    bottom: 150px;
  }

  38% {
    left: 40%;
    bottom: 220px;
    transform: scale(.75);
  }

  40% {
    left: 41%;
    bottom: 170px;
    transform: scale(.45);
  }

  /* ESCONDIDO */

  40%,
  44% {
    left: 41%;
    bottom: 170px;
    transform: scale(.45);
  }

  /* SALE */

  46% {
    left: 41%;
    bottom: 220px;
    transform: scale(.7);
  }

  50% {
    left: 48%;
    bottom: 150px;
    transform: scale(.85);
  }


  /* CASA 3 */

  57% {
    left: 58%;
    bottom: 150px;
  }

  60% {
    left: 61%;
    bottom: 220px;
    transform: scale(.75);
  }

  62% {
    left: 62%;
    bottom: 175px;
    transform: scale(.45);
  }

  /* ESCONDIDO */

  62%,
  66% {
    left: 62%;
    bottom: 175px;
    transform: scale(.45);
  }

  /* SALE */

  68% {
    left: 62%;
    bottom: 220px;
    transform: scale(.7);
  }

  72% {
    left: 70%;
    bottom: 150px;
    transform: scale(.85);
  }


  /* CASA 4 */

  78% {
    left: 78%;
    bottom: 150px;
  }

  81% {
    left: 80%;
    bottom: 220px;
    transform: scale(.75);
  }

  83% {
    left: 81%;
    bottom: 170px;
    transform: scale(.45);
  }

  /* ESCONDIDO */

  83%,
  87% {
    left: 81%;
    bottom: 170px;
    transform: scale(.45);
  }

  /* SALE */

  89% {
    left: 81%;
    bottom: 220px;
    transform: scale(.7);
  }

  93% {
    left: 90%;
    bottom: 150px;
    transform: scale(.85);
  }

  100% {
    left: 110%;
    bottom: 150px;
    transform: scale(.8);
  }
}


/* =========================================================
   SANTA HEAD
   ========================================================= */

.santa-head {
  position: absolute;

  width: 58px;
  height: 62px;

  left: 7px;
  top: 0;
}

.santa-face {
  position: absolute;

  width: 52px;
  height: 52px;

  left: 3px;
  top: 8px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 25%,
      #ffd4ad,
      #eaa477 70%,
      #bd7656
    );

  box-shadow:
    inset -5px -7px 10px rgba(100,40,20,.2);
}


/* EARS */

.santa-ear {
  position: absolute;

  width: 12px;
  height: 18px;

  top: 20px;

  border-radius: 50%;

  background: #e89b72;
}

.santa-ear.left {
  left: -6px;
}

.santa-ear.right {
  right: -6px;
}


/* EYES */

.santa-eye {
  position: absolute;

  width: 6px;
  height: 8px;

  top: 22px;

  border-radius: 50%;

  background: #17120f;

  box-shadow:
    1px 1px 0 white;
}

.santa-eye.left {
  left: 14px;
}

.santa-eye.right {
  right: 14px;
}


/* EYEBROWS */

.santa-eyebrow {
  position: absolute;

  width: 14px;
  height: 4px;

  top: 17px;

  border-radius: 50%;

  background: #6b402a;
}

.santa-eyebrow.left {
  left: 10px;
  transform: rotate(-10deg);
}

.santa-eyebrow.right {
  right: 10px;
  transform: rotate(10deg);
}


/* NOSE */

.santa-nose {
  position: absolute;

  width: 15px;
  height: 13px;

  left: calc(50% - 7px);
  top: 29px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 30%,
      #ffcfaa,
      #d65d48
    );

  box-shadow:
    0 2px 3px rgba(100,40,20,.3);
}


/* CHEEKS */

.santa-cheek {
  position: absolute;

  width: 13px;
  height: 8px;

  top: 34px;

  border-radius: 50%;

  background: rgba(240,90,80,.25);
}

.santa-cheek.left {
  left: 6px;
}

.santa-cheek.right {
  right: 6px;
}


/* BEARD */

.santa-beard {
  position: absolute;

  left: 3px;
  right: 3px;

  bottom: -7px;

  height: 30px;

  z-index: 4;
}

.beard-piece {
  position: absolute;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 30%,
      white,
      #e8edf0 70%,
      #bfc8cd
    );

  box-shadow:
    0 2px 3px rgba(0,0,0,.12);
}

.p1 {
  width: 32px;
  height: 24px;
  left: 0;
  top: 0;
}

.p2 {
  width: 35px;
  height: 26px;
  left: 17px;
  top: 0;
}

.p3 {
  width: 25px;
  height: 22px;
  left: 10px;
  top: 9px;
}

.p4 {
  width: 24px;
  height: 21px;
  left: 27px;
  top: 10px;
}

.p5 {
  width: 18px;
  height: 18px;
  left: 19px;
  top: 17px;
}

.p6 {
  width: 15px;
  height: 15px;
  left: 31px;
  top: 16px;
}


/* MOUTH */

.santa-mouth {
  position: absolute;

  width: 12px;
  height: 4px;

  left: 20px;
  top: 42px;

  border-radius: 50%;

  background: #641f1d;

  z-index: 6;
}


/* =========================================================
   HAT
   ========================================================= */

.santa-hat {
  position: absolute;

  width: 58px;
  height: 52px;

  top: -20px;
  left: 2px;

  z-index: 8;
}

.hat-red {
  position: absolute;

  width: 47px;
  height: 42px;

  left: 4px;

  background:
    linear-gradient(
      145deg,
      #c9232d,
      #8b1119
    );

  clip-path: polygon(
    0 100%,
    85% 100%,
    45% 0
  );

  transform: rotate(-8deg);

  box-shadow:
    inset -5px -5px 8px rgba(70,0,0,.25);
}

.hat-highlight {
  position: absolute;

  width: 10px;
  height: 30px;

  left: 25px;
  top: 5px;

  background: rgba(255,255,255,.18);

  transform: rotate(25deg);

  filter: blur(2px);
}

.hat-white {
  position: absolute;

  width: 57px;
  height: 13px;

  bottom: 5px;

  border-radius: 8px;

  background:
    linear-gradient(
      to bottom,
      white,
      #d9e0e4
    );

  box-shadow:
    0 3px 5px rgba(0,0,0,.2);
}

.hat-pom {
  position: absolute;

  width: 18px;
  height: 18px;

  right: 2px;
  top: -3px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 30%,
      white,
      #cdd5d9
    );

  box-shadow:
    0 3px 5px rgba(0,0,0,.3);
}


/* =========================================================
   SANTA BODY
   ========================================================= */

.santa-body {
  position: absolute;

  left: 8px;
  top: 58px;

  width: 58px;
  height: 58px;
}

.santa-coat {
  position: absolute;

  left: 8px;
  top: 0;

  width: 42px;
  height: 52px;

  border-radius: 15px 15px 8px 8px;

  background:
    linear-gradient(
      90deg,
      #81161d,
      #c1262f 45%,
      #8b1118
    );

  box-shadow:
    inset -5px 0 8px rgba(50,0,0,.3);
}

.coat-highlight {
  position: absolute;

  width: 8px;
  height: 42px;

  left: 9px;
  top: 5px;

  background: rgba(255,255,255,.12);

  border-radius: 50%;

  filter: blur(2px);
}


/* BUTTONS */

.coat-button {
  position: absolute;

  width: 6px;
  height: 6px;

  left: 19px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 30% 25%,
      #f9e6a6,
      #76551d
    );

  box-shadow:
    0 1px 2px rgba(0,0,0,.4);
}

.b1 { top: 12px; }
.b2 { top: 25px; }
.b3 { top: 38px; }


/* BELT */

.santa-belt {
  position: absolute;

  left: 8px;
  top: 34px;

  width: 42px;
  height: 9px;

  background:
    linear-gradient(
      to bottom,
      #1a1816,
      #050505
    );

  z-index: 4;
}

.belt-buckle {
  position: absolute;

  width: 12px;
  height: 10px;

  left: 15px;
  top: -1px;

  border: 3px solid #e5bf58;

  box-shadow:
    0 0 3px rgba(255,220,100,.4);
}


/* =========================================================
   ARMS
   ========================================================= */

.santa-arm {
  position: absolute;

  top: 4px;

  width: 18px;
  height: 52px;

  border-radius: 12px;

  background:
    linear-gradient(
      90deg,
      #74131a,
      #c0202b,
      #74131a
    );

  transform-origin: top center;

  animation:
    santa-arms .55s ease-in-out infinite alternate;
}

.santa-arm.left {
  left: -3px;
  transform: rotate(15deg);
}

.santa-arm.right {
  right: -3px;
  transform: rotate(-15deg);
  animation-delay: .25s;
}

.arm-sleeve {
  position: absolute;
  bottom: -2px;
  width: 100%;
  height: 12px;

  background: white;

  border-radius: 50%;
}

.santa-glove {
  position: absolute;

  width: 17px;
  height: 15px;

  bottom: -13px;
  left: 1px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 25%,
      white,
      #cbd3d7
    );
}

.glove-thumb {
  position: absolute;

  width: 7px;
  height: 10px;

  right: -3px;
  top: 5px;

  border-radius: 50%;

  background: #d5dde0;
}

@keyframes santa-arms {
  from {
    transform: rotate(-18deg);
  }

  to {
    transform: rotate(22deg);
  }
}


/* =========================================================
   LEGS
   ========================================================= */

.santa-legs {
  position: absolute;

  left: 14px;
  top: 108px;

  width: 45px;
  height: 38px;
}

.santa-leg {
  position: absolute;

  width: 17px;
  height: 35px;

  background:
    linear-gradient(
      90deg,
      #641018,
      #a51e27,
      #641018
    );

  transform-origin: top center;

  animation:
    santa-walk .55s infinite alternate;
}

.santa-leg.left {
  left: 2px;
}

.santa-leg.right {
  right: 2px;
  animation-delay: .27s;
}

@keyframes santa-walk {
  from {
    transform: rotate(13deg);
  }

  to {
    transform: rotate(-13deg);
  }
}


/* BOOTS */

.santa-boot {
  position: absolute;

  width: 27px;
  height: 15px;

  bottom: -6px;

  border-radius: 8px 11px 7px 5px;

  background:
    linear-gradient(
      135deg,
      #111,
      #292929,
      #050505
    );

  box-shadow:
    inset 3px 2px 3px rgba(255,255,255,.12),
    0 4px 5px rgba(0,0,0,.45);
}

.boot-shine {
  position: absolute;

  width: 8px;
  height: 3px;

  top: 3px;
  left: 6px;

  border-radius: 50%;

  background: rgba(255,255,255,.2);

  filter: blur(1px);
}


/* =========================================================
   SACK
   ========================================================= */

.santa-sack {
  position: absolute;

  width: 47px;
  height: 62px;

  right: -32px;
  top: 53px;

  border-radius: 45% 50% 45% 40%;

  background:
    radial-gradient(
      ellipse at 30% 20%,
      #9b6741,
      #5c3524 70%,
      #392117
    );

  transform: rotate(-15deg);

  box-shadow:
    -5px 7px 10px rgba(0,0,0,.35);
}

.sack-fold {
  position: absolute;

  width: 30px;
  height: 8px;

  border-radius: 50%;

  border-top: 2px solid rgba(255,255,255,.12);
}

.fold-1 {
  top: 20px;
  left: 7px;
}

.fold-2 {
  top: 34px;
  left: 10px;
}

.fold-3 {
  top: 47px;
  left: 8px;
}

.sack-rope {
  position: absolute;

  top: 4px;
  left: 4px;

  width: 39px;
  height: 10px;

  border-radius: 50%;

  border-top: 4px solid #c3a06c;
}


/* =========================================================
   SANTA SHADOW
   ========================================================= */

.santa-shadow {
  position: absolute;

  width: 70px;
  height: 18px;

  bottom: -7px;
  left: 0;

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse,
      rgba(0,0,0,.35),
      transparent 70%
    );

  filter: blur(3px);
}


/* =========================================================
   FOOTPRINTS
   ========================================================= */

.footprints {
  position: absolute;

  left: 5%;
  bottom: 80px;

  width: 70%;

  height: 40px;

  z-index: 25;

  transform: rotate(-2deg);
}

.footprints span {
  position: absolute;

  width: 9px;
  height: 17px;

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse,
      rgba(110,125,135,.32),
      transparent 75%
    );

  transform: rotate(25deg);
}

.footprints span:nth-child(1) { left: 2%; top: 10px; }
.footprints span:nth-child(2) { left: 7%; top: 18px; transform: rotate(-25deg); }
.footprints span:nth-child(3) { left: 12%; top: 9px; }
.footprints span:nth-child(4) { left: 17%; top: 17px; transform: rotate(-25deg); }
.footprints span:nth-child(5) { left: 22%; top: 7px; }
.footprints span:nth-child(6) { left: 27%; top: 17px; transform: rotate(-25deg); }
.footprints span:nth-child(7) { left: 32%; top: 6px; }
.footprints span:nth-child(8) { left: 37%; top: 16px; transform: rotate(-25deg); }
.footprints span:nth-child(9) { left: 42%; top: 7px; }
.footprints span:nth-child(10) { left: 47%; top: 17px; transform: rotate(-25deg); }


/* =========================================================
   SLEIGH
   ========================================================= */

.sleigh {
  position: absolute;

  right: 8%;
  bottom: 95px;

  width: 150px;
  height: 80px;

  z-index: 31;

  filter:
    drop-shadow(0 10px 8px rgba(0,0,0,.45));
}

.sleigh-body {
  position: absolute;

  width: 110px;
  height: 50px;

  left: 20px;
  top: 10px;

  border-radius: 40% 15% 30% 20%;

  background:
    linear-gradient(
      145deg,
      #671a20,
      #a32c32,
      #511015
    );

  box-shadow:
    inset 0 5px 8px rgba(255,255,255,.12);
}

.sleigh-seat {
  position: absolute;

  width: 70px;
  height: 15px;

  left: 40px;
  top: 3px;

  border-radius: 50%;

  background:
    linear-gradient(
      to bottom,
      #5b321d,
      #24150e
    );
}

.sleigh-runner {
  position: absolute;

  width: 125px;
  height: 8px;

  bottom: 4px;

  border-radius: 50%;

  border-bottom: 5px solid #d3b15d;
}

.runner-left {
  left: 3px;
}

.runner-right {
  right: 3px;
}

.sleigh-back {
  position: absolute;

  width: 18px;
  height: 70px;

  right: 8px;
  top: 0;

  border-radius: 50%;

  border: 7px solid #b58b3d;
}


/* =========================================================
   GIFTS
   ========================================================= */

.gift-pile {
  position: absolute;

  right: 14%;
  bottom: 85px;

  width: 100px;
  height: 80px;

  z-index: 32;
}

.gift {
  position: absolute;

  border-radius: 3px;

  box-shadow:
    0 5px 7px rgba(0,0,0,.3);
}

.gift::before {
  content: "";

  position: absolute;

  left: 45%;

  top: 0;
  bottom: 0;

  width: 9px;

  background:
    linear-gradient(
      to right,
      #c69b38,
      #f2d477,
      #a87c24
    );
}

.gift::after {
  content: "";

  position: absolute;

  top: 43%;

  left: 0;
  right: 0;

  height: 8px;

  background:
    linear-gradient(
      to bottom,
      #c69b38,
      #f2d477
    );
}

.gift-1 {
  width: 43px;
  height: 32px;

  left: 5px;
  bottom: 0;

  background: #7e1820;
}

.gift-2 {
  width: 37px;
  height: 29px;

  right: 3px;
  bottom: 2px;

  background: #183e67;
}

.gift-3 {
  width: 30px;
  height: 27px;

  left: 35px;
  bottom: 28px;

  background: #24613c;
}

.gift-4 {
  width: 27px;
  height: 25px;

  left: 0;
  bottom: 32px;

  background: #69346e;
}

.gift-5 {
  width: 26px;
  height: 23px;

  right: 12px;
  bottom: 34px;

  background: #a34d22;
}


/* =========================================================
   SNOW GROUND
   ========================================================= */

.snow-ground {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 115px;

  z-index: 35;

  background:
    linear-gradient(
      to bottom,
      #edf4f7 0%,
      #dce7ec 35%,
      #bdcbd2 100%
    );

  box-shadow:
    inset 0 15px 25px rgba(255,255,255,.6),
    inset 0 -25px 35px rgba(90,110,120,.15);
}

.snow-layer {
  position: absolute;

  left: 0;
  right: 0;

  border-radius: 50%;
}

.layer-1 {
  top: -28px;
  height: 55px;

  background:
    radial-gradient(
      ellipse at center,
      #ffffff,
      #e5edf1 70%
    );
}

.layer-2 {
  top: -10px;
  height: 50px;

  opacity: .7;

  background:
    radial-gradient(
      ellipse,
      rgba(255,255,255,.8),
      transparent 70%
    );
}

.layer-3 {
  top: 30px;
  height: 60px;

  opacity: .4;

  background:
    radial-gradient(
      ellipse,
      #ffffff,
      transparent 70%
    );
}


/* SNOWDRIFTS */

.snowdrift {
  position: absolute;

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse,
      white,
      #dce8ed 70%,
      transparent
    );

  filter: blur(1px);
}

.drift-1 {
  width: 240px;
  height: 70px;

  left: 5%;
  top: 5px;
}

.drift-2 {
  width: 310px;
  height: 80px;

  left: 40%;
  top: 10px;
}

.drift-3 {
  width: 220px;
  height: 65px;

  right: 3%;
  top: 0;
}


/* =========================================================
   FALLING SNOW
   ========================================================= */

.snowfall {
  position: absolute;

  inset: -20px 0 0;

  z-index: 70;

  pointer-events: none;

  background-image:
    radial-gradient(circle, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,.7) 0 3px, transparent 4px);

  background-size:
    90px 90px,
    55px 55px,
    150px 150px;

  animation:
    snow-fall 12s linear infinite;
}

.snow-depth-1 {
  opacity: .45;
  filter: blur(.5px);
}

.snow-depth-2 {
  opacity: .7;
  transform: scale(1.2);
  animation-duration: 9s;
}

.snow-depth-3 {
  opacity: .9;
  transform: scale(1.5);
  animation-duration: 7s;
}

@keyframes snow-fall {

  from {
    background-position:
      0 -100px,
      30px -50px,
      70px -150px;
  }

  to {
    background-position:
      80px 600px,
      -50px 500px,
      120px 700px;
  }

}


/* =========================================================
   FOG
   ========================================================= */

.ground-fog {
  position: absolute;

  bottom: 50px;

  width: 400px;
  height: 100px;

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse,
      rgba(220,235,240,.22),
      transparent 70%
    );

  filter: blur(10px);

  z-index: 65;

  animation:
    fog-move 14s ease-in-out infinite alternate;
}

.fog-1 {
  left: -100px;
}

.fog-2 {
  right: -100px;
  animation-delay: 4s;
}

@keyframes fog-move {

  from {
    transform: translateX(-30px);
    opacity: .3;
  }

  to {
    transform: translateX(80px);
    opacity: .65;
  }

}


/* =========================================================
   MOON LIGHT
   ========================================================= */

.moon-light {
  position: absolute;

  inset: 0;

  z-index: 75;

  pointer-events: none;

  background:
    radial-gradient(
      ellipse at 75% 20%,
      rgba(180,210,255,.07),
      transparent 35%
    );

  mix-blend-mode: screen;
}


/* =========================================================
   VIGNETTE
   ========================================================= */

.vignette {
  position: absolute;

  inset: 0;

  z-index: 90;

  pointer-events: none;

  background:
    radial-gradient(
      ellipse,
      transparent 45%,
      rgba(0,0,0,.18) 100%
    );
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

  .image-container {
    height: 440px;
  }

  .houses {
    transform: scale(.78);
    transform-origin: bottom center;
  }

  .santa {
    transform-origin: bottom center;
  }

  .moon {
    width: 80px;
    height: 80px;
    right: 7%;
    top: 25px;
  }

  .sleigh {
    transform: scale(.7);
    transform-origin: bottom right;
  }

  .gift-pile {
    transform: scale(.7);
    transform-origin: bottom right;
  }

  .lamp {
    transform: scale(.75);
    transform-origin: bottom;
  }

}

/* =========================
   Navigation
   ========================= */

#nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;

  width: 100%;
  box-sizing: border-box;

  margin: 20px 0;
  padding: 12px 25px;

  border-radius: 0;
  overflow: hidden;

  background: linear-gradient(
    90deg,
    #b71c1c,
    #2e7d32,
    #c62828,
    #388e3c,
    #b71c1c
  );

  background-size: 300% 100%;

  animation: nav-background 4s linear infinite;
}

/* =========================
   Navigation links
   ========================= */

#nav a {
  font-family: "Lobster", "Comic Sans MS", cursive;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;

  animation: christmas-text 1s ease-in-out infinite;
}

/* =========================
   Navigation background animation
   ========================= */

@keyframes nav-background {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

/* =========================
   Navigation text animation
   ========================= */

@keyframes christmas-text {
  0% {
    color: red;
    transform: translateX(0);
    opacity: 1;
  }

  25% {
    color: green;
    transform: translateX(8px);
    opacity: 0.4;
  }

  50% {
    color: lime;
    transform: translateX(0);
    opacity: 1;
  }

  75% {
    color: darkred;
    transform: translateX(8px);
    opacity: 0.4;
  }

  100% {
    color: red;
    transform: translateX(0);
    opacity: 1;
  }
}

/* =========================
   Register lock
   ========================= */

.lock-register {
  color: #c62828;

  background: #e8f5e9;

  border: 3px solid #2e7d32;
  border-radius: 12px;

  padding: 15px 20px;

  width: fit-content;
  margin: 20px auto;

  text-align: center;

  font-family: "Lobster", "Comic Sans MS", cursive;
  font-size: 24px;
  font-weight: bold;

  box-shadow:
    0 0 8px rgba(198, 40, 40, 0.5),
    0 0 18px rgba(46, 125, 50, 0.4);

  animation: christmas-shake 0.8s ease-in-out infinite;
}

/* =========================
   Register lock shake
   ========================= */

@keyframes christmas-shake {
  0%,
  100% {
    transform: translateX(0) rotate(0);
  }

  20% {
    transform: translateX(-4px) rotate(-1deg);
  }

  40% {
    transform: translateX(4px) rotate(1deg);
  }

  60% {
    transform: translateX(-3px) rotate(-1deg);
  }

  80% {
    transform: translateX(3px) rotate(1deg);
  }
}

/* =========================
   All buttons
   ========================= */

button {
  background: #00a83b;

  color: #ff0000;

  border: 3px solid #39ff14;
  border-radius: 12px;

  padding: 12px 24px;

  font-family: "Lobster", "Comic Sans MS", cursive;
  font-size: 20px;
  font-weight: bold;

  cursor: pointer;

  /* Green glow + red text glow */
  box-shadow:
    0 0 8px #00ff44,
    0 0 18px #00ff44,
    0 0 30px rgba(0, 255, 68, 0.7);

  text-shadow:
    0 0 5px #ff0000,
    0 0 10px #ff0000,
    0 0 18px #ff0000;

  /* Smooth hover / de-hover */
  transform: scale(1);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

/* =========================
   Button hover
   ========================= */

button:hover {
  transform: scale(1.5);

  background: #00c853;

  box-shadow:
    0 0 12px #00ff44,
    0 0 25px #00ff44,
    0 0 45px #00ff44,
    0 0 65px rgba(0, 255, 68, 0.8);

  text-shadow:
    0 0 6px #ff0000,
    0 0 12px #ff0000,
    0 0 22px #ff0000;
}

/* =========================
   Button click
   ========================= */

button:active {
  transform: scale(1.35);
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .santa,
  .santa-arm,
  .santa-leg,
  .snowfall,
  .smoke span,
  .stars,
  .cloud,
  .ground-fog,
  .christmas-lights span {
    animation-play-state: paused !important;
  }

}