@import url('https://fonts.googleapis.com/css?family=Cookie');

/* ============================
   GENERAL PAGE STYLING
============================ */
body {
  background-color: #F24236;
  width: 100%;
  font-family: cursive;
  overflow: hidden; /* prevent scrollbars from snow */
}

.containerChristmas {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#days {
  font-size: 30px;
  color: #FFF;
  text-align: center;
  letter-spacing: 3px;
}

/* ============================
   SNOWFALL BASE STYLE
============================ */
.drop {
  position: fixed;      
  top: -10px;           /* start just above top of screen */
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}

.snow {
  height: 8px;
  width: 8px;
  border-radius: 100%;
  background-color: #FFF;
  box-shadow: 0 0 10px #FFF;
}

/* ============================
   FALLING ANIMATION
============================ */
.animate {
  animation-name: falling-windy;
  animation-duration: var(--fall-duration, 12s);
  animation-timing-function: linear;
  animation-iteration-count: 1;        /* fall once */
  animation-fill-mode: forwards;       /* stay where it lands */
}

/* HARSHEST WIND SHEAR ANIMATION */
@keyframes falling-windy {
  0% {
    transform: translate3d(0, -20px, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  25% {
    transform: translate3d(var(--drift1, 0px), 25vh, 0);
    opacity: 1;
  }
  50% {
    transform: translate3d(var(--drift2, 0px), 50vh, 0);
    opacity: 1;
  }
  75% {
    transform: translate3d(var(--drift3, 0px), 75vh, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--drift4, 0px), 100vh, 0);
    opacity: 1; /* stays visible — this is the "accumulation" */
  }
}

/* ============================
   ELEMENTS SNOW CAN SETTLE ON
============================ */
.snow-target {
  position: relative;   /* required so snow can sit on the element */
  overflow: visible !important; /* allow flakes to appear above */
}
