/* Новогодние эффекты */

/* Снег */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000; /* Ensure it's below other interactive elements but visible */
}

.snowflake {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}

@keyframes fall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(50px) rotate(360deg);
    opacity: 0;
  }
}

/* Снеговики в углах */
.snowman {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  opacity: 0.9;
  transition: opacity 0.3s;
  transform: scale(0.9);
}

.snowman:hover {
  opacity: 1;
  transform: scale(1);
}

.snowman-body {
  position: relative;
  margin: 0 auto;
}

.snowman-ball {
  background: linear-gradient(145deg, #f0f8ff, #e6f3ff);
  border: 2px solid #d0e6f9;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.snowman-head {
  width: 45px;
  height: 45px;
  background: linear-gradient(145deg, #f5fbff, #ebf7ff);
}

.snowman-middle {
  width: 65px;
  height: 65px;
  margin-top: -15px;
}

.snowman-bottom {
  width: 85px;
  height: 85px;
  margin-top: -15px;
}

.snowman-hat {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 22px;
  background: #2c3e50;
  border-radius: 7px 7px 0 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.snowman-hat-top {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 18px;
  background: #2c3e50;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.snowman-eye {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #333;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.snowman-eye.left {
  top: 18px;
  left: 12px;
}

.snowman-eye.right {
  top: 18px;
  right: 12px;
}

.snowman-mouth {
  position: absolute;
  width: 22px;
  height: 10px;
  border-bottom: 3px solid #d35400;
  border-radius: 0 0 50% 50%;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.snowman-button {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #7f8c8d;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.snowman-button.top {
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.snowman-button.middle {
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
}

.snowman-button.bottom {
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
}

.snowman-carrot {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 20px solid #e67e22;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
}

/* Гирлянда */
.christmas-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 1002;
  pointer-events: none;
  overflow: hidden;
}

.light {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: blink 1.5s infinite;
  box-shadow: 0 0 10px currentColor;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}


/* Новогодняя иконка */
.newyear-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1003;
  font-size: 30px;
  animation: float 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}