/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
html,
body {
  min-height: 100vh;
  background: linear-gradient(180deg, #0f2027, #203a43, #2c5364);
  font-family: Arial, sans-serif;
  overflow: hidden;
}

/* COUNTDOWN */
.countdown {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 60px;
  font-weight: bold;
  color: #fff;
  animation: pulse 1s infinite;
  z-index: 10;
}

/* NEW YEAR BLOCK */
.newyear {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s;
}
.newyear.active {
  opacity: 1;
}
.newyear.active .old {
  animation: yearOut 3s forwards;
}
.newyear.active .new {
  animation: yearIn 3s forwards;
  animation-delay: 3s;
}
.newyear .year {
  position: absolute;
  font-size: 90px;
  font-weight: 700;
  color: #fff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.newyear .new {
  opacity: 0;
}

/* CONGRATULATION BLOCK */
.congratulation {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  z-index: 3;
  padding: 0 16px;
}
.congratulation.active {
  opacity: 1;
  pointer-events: auto;
}
.congratulation .about_block {
  max-width: 700px;
  text-align: center;
}
.congratulation .about_block h3 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 24px;
}
.congratulation .about_block .texts p {
  color: #fff;
  font-size: 16px;
  line-height: 150%;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(-40px);
}
.congratulation .about_block .texts p span {
  font-size: 24px;
  font-weight: 600;
  color: red;
}

h5 {
  color: #fff;
  font-size: 12px;
  margin-bottom: 24px;
  text-align: center;
  padding: 0 16px;
  margin-top: 40px;
}

/* ANIMATIONS */
@keyframes yearOut {
  to {
    opacity: 0;
    transform: translate(-50%, -70%);
  }
}
@keyframes yearIn {
  from {
    opacity: 0;
    transform: translate(-50%, -30%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
@keyframes slideText {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.6;
  }
}