html,
body{
	overflow-x: hidden;
}

body{
	font-family: 'Philosopher', sans-serif;
	background: url(../img/snow.png) 50% 0% repeat, url(../img/footer_bg.png) 50% 100% no-repeat, radial-gradient(ellipse at center, rgba(25,69,79,1) 0%,rgba(25,69,79,1) 25%,rgba(25,69,79,0) 100%), #1d2c30;
	padding-bottom: 400px;
	min-height: 100vh;
	position: relative;
}

.wrapper{
	max-width: 980px;
	padding: 0 10px;
	margin: 0 auto;
}

.logo{
	background: url(../img/new_year_text.png) 50% 50% no-repeat;
	margin-bottom: 40px;
}
.logo>img{
	display: block;
	margin: 0 auto;
	animation: logoRotate 5s ease-in-out alternate-reverse infinite;
	transform-origin: top;
}
@-webkit-keyframes logoRotate {
	0% {
		-webkit-transform: rotate(-15deg);
		transform: rotate(-15deg)
	}
	100% {
		-webkit-transform: rotate(15deg);
		transform: rotate(15deg);
	}
  }
  @keyframes logoRotate {
	0%{
		-webkit-transform: rotate(-15deg);
		transform: rotate(-15deg)
	}
	100%{
		-webkit-transform: rotate(15deg);
		transform: rotate(15deg);
	}
  }



.calendar_row{
	content: '';
	width: 1070px;
	height: 74px;
	background: url(../img/line_img.png) 50% 0% no-repeat;
	display: block;
	margin: 0 0 25px -55px;
	position: relative;
	z-index: 6;
}

.calendar_days{
	display: flex;
	justify-content: center;
	margin-bottom: 50px;
}
.calendar_days .card_item{
	width: 144px;
	height: 233px;
	margin: 0 88px;
	position: relative;
}
.calendar_days .card_item:nth-child(2){
	margin-top: 35px;
}

.envelope{
	transform: rotate(90deg);
	top: 45px;
    left: -44px;
	position: relative;
	width: 233px;
	height: 144px;
	cursor: not-allowed;
	background: #ca3551;
}
.envelope .envelope-main{
	width: 233px;
	height: 144px;
	position: relative;
	z-index: 3;
	background: url(../img/envelope-part/envelope-red.png);
}
.envelope-close{
	width: 233px;
	height: 93px;
	position: absolute;
	top: 1px;
	z-index: 1;
	transition: all ease-in-out .25s;
	transform-origin: top;
	background: url(../img/envelope-part/envelope-close-red.png);
}
.envelope-close.one{
	z-index: 2;
	transition-delay: 0.75s;
}
.envelope-close.two{
	z-index: 1;
	transform: rotateX(-90deg);
	transition-delay: 0.5s;
}
.envelope .letter{
	width: 80%;
	height: 80%;
	background: #fff url(../img/letter_pattern.webp) 50% 0% / 100% repeat-y;
	position: absolute;
	left: 10%;
	top: 10px;
	z-index: 1;
	transition: all ease-in-out .25s;
	
}    
.active .envelope .envelope-close.one{
	transform: rotateX(-90deg);
	transition-delay: 0s;
}
.active .envelope .envelope-close.two{
	transition-delay: 0.25s;
	transform: rotateX(-180deg);
}
.active .envelope .letter{
	transition-delay: 0.5s;
	top: -40px;
}
.envelope-date{
	width: 100%;
    z-index: 10;
    font-weight: 700;
    font-size: 30px;
    color: #fff;
    text-align: center;
    position: absolute;
    bottom: 5px;
    left: 0;
	font-family: Arial, sans-serif;
	pointer-events: none;
}
.envelope-img{
	position: absolute;
	top: 25%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 11;
}

.card_item:before{
	content: '';
    width: 16px;
    height: 105px;
    background: url(../img/pin-red.png);
    position: absolute;
    top: -70px;
    left: 50%;
	margin-left: -8px;
    z-index: 5;
}

.can_open .envelope{
	cursor: pointer;
}


.green .envelope{
	background: #157451;
}
.green .envelope .envelope-main{
	background: url(../img/envelope-part/envelope-green.png);
}
.green .envelope .envelope-close{
	background: url(../img/envelope-part/envelope-close-green.png);
}
.green.card_item:before{
	background: url(../img/pin-green.png)
}

.orange .envelope{
	background: #d3932b;
}
.orange .envelope .envelope-main{
	background: url(../img/envelope-part/envelope-orange.png);
}
.orange .envelope .envelope-close{
	background: url(../img/envelope-part/envelope-close-orange.png);
}
.orange.card_item:before{
	background: url(../img/pin-orange.png);
	width: 14px;
	height: 110px;
}

.blue .envelope{
	background: #0f68b3;
}
.blue .envelope .envelope-main{
	background: url(../img/envelope-part/envelope-blue.png);
}
.blue .envelope .envelope-close{
	background: url(../img/envelope-part/envelope-close-blue.png);
}
.blue.card_item:before{
	background: url(../img/pin-blue.png);
	width: 12px;
	height: 105px;
}







/*MODAL*/
.nifty-modal{
	max-width: 560px;
	height: 100%;
	display: flex;
	align-items: center;
	overflow: auto;
}
.nifty-modal.scroll{
	align-items: flex-start;
}
.md-content{
	background: #fff url(../img/letter_pattern.webp) 0% 0% / 100% repeat;
	padding: 60px;
	min-height: 100px;
}
.md-content::after{
	content: '';
	width: 391px;
	height: 240px;
	background: url(../img/letter_santa.png);
	position: absolute;
	bottom: 0;
	left: 50%;
	margin-left: -195px;
}
.calendar_content{
	font-size: 18px;
	line-height: 1.2em;
	font-weight: 400;
	background: #fff;
	border-radius: 40px;
	padding: 30px 30px 200px;
}
.calendar_content>b{
	font-size: 1.2em;
	font-weight: 700;
}
.md-close{
	color: #fff;
	background: #4ebbc2;
	text-transform: uppercase;
	font-weight: 700;
	font-size: 16px;
	padding: 14px 26px;
	border-radius: 20px;
	position: absolute;
	z-index: 5;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	cursor: pointer;
}
#modal-video .md-content{
	padding: 0;
}
#modal-video .calendar_content{
	padding: 0;
}
#modal-video .md-content::after{
	display: none;
}
#modal-video{
	width: 760px;
	max-width: 760px;
}
#modal-video .md-close{
	bottom: -70px;
}



.video_block{
	width: 760px;
	height: 400px;
	background: #000;
	overflow: hidden;
	position: relative;
}
.video_block .youtube,
.video_block iframe,
.video_block object,
.video_block video,
.video_block embed{
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	width: 100%;
	height: 100%;
}


/*snow*/
#snow{
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.snowflake {
	position: absolute;
	width: 10px;
	height: 10px;
	background: linear-gradient(white, white);
	border-radius: 50%;
	filter: drop-shadow(0 0 10px white);
}

/*confetti*/
#confetti-canvas{
	position: fixed;
	top: 0;
}


/*gift*/
.pres_cont{
	margin-top: 20px;
}
.present{
	display: block;
}
.pres_cont>p{
	text-align: center;
	font-size: 18px;
}
.gift {
	position: relative;
	background: #50afd5;
	width: 70px;
	height: 45px;
	display: block;
	border-radius: 0px 0px 5px 5px;
	margin: 45px auto 0;
	-webkit-animation-duration: 2.5s;
	animation-duration: 2.5s;
	-webkit-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
  }
  .gift:before {
	width: 78px;
	height: 18px;
	content: '';
	background: #2a89ae;
	display: inline-block;
	position: relative;
	left: -4px;
	top: -13px;
	z-index: 20;
  }
  .gift:after {
	width: 12px;
	height: 61px;
	content: '';
	background: #ff3131;
	opacity: 95%;
	display: inline-block;
	position: relative;
	left: 29px;
	top: -38px;
	z-index: 20;
  }
  #bow {
	display: inline;
	opacity: 98%;
  }
  #bow:after {
	width: 10px;
	height: 18px;
	border-radius: 50px;
	border: 7px solid #ff3131;
	position: absolute;
	top: -32px;
	left: 35px;
	z-index: 999;
	-webkit-transform: rotate(40deg);
	transform: rotate(40deg);
	content: '';
  }
  #bow:before {
	width: 10px;
	height: 18px;
	border-radius: 50px;
	border: 7px solid #ff3131;
	position: absolute;
	top: -32px;
	left: 11px;
	z-index: 999;
	-webkit-transform: rotate(-40deg);
	transform: rotate(-40deg);
	content: '';
  }
  .boing {
	-webkit-animation-name: boing;
	animation-name: boing;
	-webkit-animation-timing-function: ease;
	animation-timing-function: ease;
  }
  @-webkit-keyframes boing {
	0% {
	  -webkit-transform: scale(1, 1) translateY(0);
	  transform: scale(1, 1) translateY(0);
	}
	10% {
	  -webkit-transform: scale(1.1, 0.9);
	  transform: scale(1.1, 0.9);
	}
	30% {
	  -webkit-transform: scale(0.9, 1) translateY(-65px);
	  transform: scale(0.9, 1) translateY(-65px);
	}
	50% {
	  -webkit-transform: scale(1.05, 0.9) translateY(0);
	  transform: scale(1.05, 0.9) translateY(0);
	}
	57% {
	  -webkit-transform: scale(1, 1) translateY(-7px);
	  transform: scale(1, 1) translateY(-7px);
	}
	64% {
	  -webkit-transform: scale(1, 1) translateY(0);
	  transform: scale(1, 1) translateY(0);
	}
	100% {
	  -webkit-transform: translateY(0);
	  transform: translateY(0);
	}
  }
  @keyframes boing {
	0% {
	  -webkit-transform: scale(1, 1) translateY(0);
	  transform: scale(1, 1) translateY(0);
	}
	10% {
	  -webkit-transform: scale(1.1, 0.9);
	  transform: scale(1.1, 0.9);
	}
	30% {
	  -webkit-transform: scale(0.9, 1) translateY(-65%);
	  transform: scale(0.9, 1) translateY(-65px);
	}
	50% {
	  -webkit-transform: scale(1.05, 0.9) translateY(0);
	  transform: scale(1.05, 0.9) translateY(0);
	}
	57% {
	  -webkit-transform: scale(1, 1) translateY(-7px);
	  transform: scale(1, 1) translateY(-7px);
	}
	64% {
	  -webkit-transform: scale(1, 1) translateY(0);
	  transform: scale(1, 1) translateY(0);
	}
	100% {
	  -webkit-transform: translateY(0);
	  transform: translateY(0);
	}
  }



html{
	scrollbar-color: #ddb55f transparent;
	scrollbar-width: thin;
}
body::-webkit-scrollbar {
	width: 10px; /* Ширина всего элемента навигации */
}
body::-webkit-scrollbar-track {
	background: transparent; /* Цвет дорожки */
}
body::-webkit-scrollbar-thumb {
	background-color: #050c26; /* Цвет бегунка */
	border-radius: 20px; /* Округление бегунка */
	/* border: 3px solid #ddb55f; /* Оформление границ бегунка */
}
body::-webkit-scrollbar-thumb {
	background: #ddb55f;
	border-radius: 20px;
	/*border: 3px solid #ddb55f; */
}






/* tests */
.reset_btn{
	position: fixed;
	top: 20px;
	left: 20px;
	padding: 20px;
	z-index: 999999;
}

.mus_btn{
	position: fixed;
	top: 100px;
	left: 20px;
	padding: 20px;
	z-index: 999999;
}

.text_info{
	position: fixed;
	background: #000;
	color: #fff;
	padding: 5px;
	width: 100px;
	top: 180px;
	left: 20px;
}