

/*Design by Sanyaba - sanyabahtc@gmail.com*/

/* calendar css

Costoum gifts images
.present[data-day="1"]::before {
  background-image: url("/image/1091445/zomb.png");
}

*/

@media (max-width: 940px) {
  .jarralax-section {
    margin: 0;
    max-height: max-content;
  }
}
.calendar {
  max-width: 900px;
  margin: 0 auto;
}
.jarralax-section {
  height: 120vh;
  min-height: max-content;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.jarallax video {
  object-fit: cover;
}
.calendar h1 {
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.4);
  margin-bottom: 40px;
}
.present {
  display: block;
  background: linear-gradient(135deg, #ff4431 50%, #ff1000 50%);
  border-radius: 10px;
  margin: 10px;
  padding: 20px 0;
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
}
.present:hover {
  background: linear-gradient(135deg, #ff8f81 50%, #ff564a 50%);
  transform: scale(1.15);
}
.present.disabled {
  background: #00000018 !important;
  color: #c3c3c3 !important;
  pointer-events: auto;
  cursor: not-allowed;
  backdrop-filter: blur(10px);
  transform: none !important;
}
.space-100 {
  height: 100px;
}
.modal-header {
  background-color: #ff6f61;
  color: white;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.modal-content {
  border-radius: 8px;
  color: #333;
}
.sound-btn {
  position: relative;
  z-index: 1;
  left: 0;
  right: 0;
  margin-bottom: 40px;
}
.sound-button {
  background: #00000048 !important;
  backdrop-filter: blur(10px);
  color: #fff !important;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
}
.close {
  font-size: 3em;
  color: #fff;
  opacity: 1;
}
.present h2 { font-size: 2em; margin: 0; }
.present:hover {
  color:#fff;
  text-decoration: none;
}
a.present:hover, a.present:focus {
  color:#fff;
  text-decoration: none;
}
.present {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 90px;
  height: 80px;
  
  width: 80px;
  height: 70px;
  padding: 0;
  margin: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 1.5em;
  font-weight: bold;
  perspective: 1000px;
  position: relative;
  transition: transform 0.6s ease, background 0.4s ease;
  overflow: visible;
}
.present::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://biz24.online/image/1092240/xmas-gift.webp") center/contain no-repeat;
  transform: translateX(0) rotate(0deg) scale(1);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s ease;
  z-index: 1;
  pointer-events: none;
}
@keyframes giftPeek {
  0% { transform: translateX(0) rotate(0deg) scale(1); }
  100% { transform: translateX(40px) rotate(30deg) scale(1.25); }
}
.present h2 {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff4431 50%, #ff1000 50%);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.6s ease, box-shadow 0.4s ease, background 0.4s ease;
  transform-origin: left center;
  transform-style: preserve-3d;
  position: relative;
  z-index: 2;
}
.present:hover h2 {
  transform: rotateY(-45deg);
  box-shadow: 12px 6px 20px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #ff1000 50%, #ff1000 50%);
}
.present:hover::before {
  opacity: 1;
  animation: giftPeek 0.8s ease-in-out forwards;
}
.present.disabled,
.present.disabled h2 {
  background: #00000018 !important;
  color: #c3c3c3 !important;
  pointer-events: auto !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  backdrop-filter: blur(6px);
}
.present.disabled:hover::before {
  opacity: 0 !important;
  animation: none !important;
}
.present.disabled:hover h2 {
  transform: none !important;
  background: #00000033 !important;
  box-shadow: none !important;
}
@keyframes giftGlow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 0 rgba(255, 200, 150, 0)); }
  50% { filter: brightness(1.25) drop-shadow(0 0 8px rgba(255, 180, 100, 0.6)); }
}
@keyframes doorShine {
  0% { background-position: -150px 0; }
  100% { background-position: 150px 0; }
}
.present h2 {
  position: relative;
  overflow: hidden;
}
.present h2::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  width: 50px;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 80%);
  transform: skewX(-25deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.present:hover::before {
  opacity: 1;
  animation: giftPeek 0.8s ease-in-out forwards, giftGlow 1.6s ease-in-out infinite;
}
.present:hover h2::after {
  opacity: 1;
  animation: doorShine 1.2s ease-in-out;
}
@keyframes giftGlow {
  0%, 100% {
    filter: brightness(1.1)
            drop-shadow(0 0 8px rgba(255, 180, 80, 0.4))
            drop-shadow(0 0 15px rgba(255, 180, 80, 0.3));
  }
  50% {
    filter: brightness(1.6)
            drop-shadow(0 0 18px rgba(255, 210, 120, 0.8))
            drop-shadow(0 0 35px rgba(255, 190, 90, 0.6));
  }
}
@keyframes doorShine {
  0% { left: -120%; opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}
.present h2 {
  position: relative;
  overflow: hidden;
}
.present h2::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60px;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 80%);
  transform: skewX(-25deg);
  opacity: 0;
  pointer-events: none;
}
.present:hover::before {
  animation: giftPeek 0.8s ease-in-out forwards, giftGlow 2s ease-in-out infinite;
}
.present:hover h2::after {
  animation: doorShine 1.4s ease-in-out;
}
@keyframes shakeGift {
  0%, 100% { transform: translateX(40px) rotate(30deg) scale(1.25); }
  15% { transform: translateX(42px) rotate(31deg) scale(1.25); }
  30% { transform: translateX(38px) rotate(29deg) scale(1.25); }
  45% { transform: translateX(43px) rotate(31deg) scale(1.25); }
  60% { transform: translateX(37px) rotate(29deg) scale(1.25); }
  75% { transform: translateX(41px) rotate(30deg) scale(1.25); }
  90% { transform: translateX(39px) rotate(29deg) scale(1.25); }
}
.present:hover::before {
  opacity: 1;
  animation:
    giftPeek 0.8s ease-in-out forwards,
    giftGlow 2s ease-in-out infinite,
    shakeGift 1s ease-in-out 1s infinite;
}

/* Стили для кастомного всплывающего окна */
.custom-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0; /* Начальная непрозрачность для анимации */
}
.custom-popup-content {
  background: #fff;
  padding: 35px 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.custom-popup-close {
  position: absolute;
  top: 0px;
  right: 10px;
  font-size: 32px;
  cursor: pointer;
  color: #333;
}
.custom-popup-content p {
  margin: 0;
  font-size: 16px;
  color: #333;
}

@media only screen and (max-device-width: 768px) and (min-device-width: 320px) {
    header.no-header-widgets {
        padding-top: 0;
    }
}

/* SNOW CSS*/


.snow-layer {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.snow-layer canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* чтобы не мешал кликам */
}


/* css days content */

 .xmas-video {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 0px;
    height: 0;
    margin-top: 10px;
}

.xmas-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* mp4 play */

.video-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}

#customVideo {
  width: 100%;
  height: auto;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.25s ease;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dreieck (Play) */
.play-button.play::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 25px solid white;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  margin-left: 5px;
}

/* Zwei Balken (Pause) */
.play-button.pause::before,
.play-button.pause::after {
  content: '';
  width: 8px;
  height: 30px;
  background: white;
  display: inline-block;
  margin: 0 5px;
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.8);
}

.play-button.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-error {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: rgba(255, 60, 60, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font: 14px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  z-index: 3;
}


/* form buttons*/


.xmas-form, .xmas-img, .xmas-video, .xmas-mp4 {
  margin-bottom: 10px;
}

.form-section form.biznestream-form > ul > li button[type="submit"], .form-widget form.biznestream-form > ul > li button[type="submit"], .widget-form form.biznestream-form > ul > li button[type="submit"], .form-section form.biznestream-form > ul > li button[type="button"], .form-widget form.biznestream-form > ul > li button[type="button"], .widget-form form.biznestream-form > ul > li button[type="button"] {
    border-radius: var(--button-radius);
    font-weight: 800;
}
.form-section form.biznestream-form > ul > li button[type="submit"], .form-widget form.biznestream-form > ul > li button[type="submit"], .widget-form form.biznestream-form > ul > li button[type="submit"], .form-section form.biznestream-form > ul > li button[type="button"], .form-widget form.biznestream-form > ul > li button[type="button"], .widget-form form.biznestream-form > ul > li button[type="button"] {
    background: linear-gradient(135deg, #ff4431 50%, #ff1000 50%);
    border: none;
    color:#fff;
}

.form-section form.biznestream-form > ul > li button[type="submit"]:hover, .form-widget form.biznestream-form > ul > li button[type="submit"]:hover, .widget-form form.biznestream-form > ul > li button[type="submit"]:hover, .form-section form.biznestream-form > ul > li button[type="button"]:hover, .form-widget form.biznestream-form > ul > li button[type="button"]:hover, .widget-form form.biznestream-form > ul > li button[type="button"]:hover {
    color: #fff;
    background-color: #ffffff;
    background: linear-gradient(135deg, #ff8f81 50%, #ff564a 50%);
    transform: scale(1.05);
}

input[type='radio']:checked:after {
    width: 15px;
    height: 15px;
    border-radius: 15px;
    top: 0px;
    left: -1px;
    position: relative;
    background-color: #ff1000 !important;
    content: '';
    display: block;
    visibility: visible;
    border: 1px solid #000000 !important;
}



/* timer css*/

/* Стили для контейнера */
.timer-container {
    margin: 0;
   /* margin-top: 50px;*/
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Стили для группы */
.flip-group {
    margin: 0 5px;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Стили для контейнера цифр */
.flip-digits {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

/* Стили для подписей */
.label {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    margin-top: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    font-family: var(--font-family-base);
    text-transform: uppercase;
    font-size:22px;
}

/* Стили для флип-карт */
ul.flip {
    margin: 0 2px;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    width: 60px;
    height: 90px;

    font-size: 80px;
    font-weight: bold;
    line-height: 87px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    list-style: none;
    font-family: var(--headings-font-family);
    height: 82px;
}
ul.flip li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    z-index: 1;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
ul.flip li:first-child {
    z-index: 2;
}
.flip-link {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: block;
    height: 100%;
    perspective: 200px;
    text-decoration: none;
    color: #ccc;
}
.flip-link:hover {
    color: #fff;
}
.flip-link .up,
.flip-link .down {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    z-index: 1;
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
}
.flip-link .shadow {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.flip-link .up {
    transform-origin: 50% 100%;
    top: 0;
}
.flip-link .up:after {
    content: "";
    position: absolute;
    top: 44px;
    left: 0;
    z-index: 5;
    width: 100%;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.4);
}
.flip-link .down {
    transform-origin: 50% 0%;
    bottom: 0;
}
.flip-link .inn {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 200%;
    color: #ccc;
    text-shadow: 0 1px 2px #000;
    text-align: center;
    background-color: #333;
    border-radius: 6px;
}
.flip-link .up .inn {
    top: 0;
}
.flip-link .down .inn {
    bottom: 0;
}

/* Анимация флипа */
body.play ul.flip li.before {
    z-index: 3;
}
body.play ul.flip li.active {
    animation: asd 0.5s 0.5s linear both;
    z-index: 2;
}
@keyframes asd {
    0% { z-index: 2; }
    5% { z-index: 4; }
    100% { z-index: 4; }
}
body.play ul.flip li.active .down {
    z-index: 2;
    animation: turn 0.5s 0.5s linear both;
}
@keyframes turn {
    0% { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}
body.play ul.flip li.before .up {
    z-index: 2;
    animation: turn2 0.5s linear both;
}
@keyframes turn2 {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(-90deg); }
}

/* Тени для анимации */
body.play ul.flip li.before .up .shadow {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 1) 100%);
    animation: show 0.5s linear both;
}
body.play ul.flip li.active .up .shadow {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 1) 100%);
    animation: hide 0.5s 0.3s linear both;
}
body.play ul.flip li.before .down .shadow {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.1) 100%);
    animation: show 0.5s linear both;
}
body.play ul.flip li.active .down .shadow {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.1) 100%);
    animation: hide 0.5s 0.3s linear both;
}
@keyframes show {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes hide {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    ul.flip {
        width: 40px;
        height: 60px;
        font-size: 50px;
        line-height: 57px;
    }
    ul.flip li .flip-link .up:after {
        top: 29px;
    }
    .label {
        font-size: 12px;
    }
}


