/* New Year */
:root {
	--width: 92px;
}

body {
	height: auto !important;
	min-height: 100vh;
	overflow: hidden;

}

#main {
	opacity: 1;
	transition: opacity .3s;
}

.newyear {
	position: relative;
	padding-top: 96px;
	background: url(/img/newyear/img_bg.jpg) repeat;
	height: 100vh;
    height: 100dvh;
}

.newyear__head {
	width: 70%;
    margin: 0 auto 30px;
}

.newyear__inner {
	min-height: 628px;
	margin: auto;
	padding: 30px 0 100px;
	text-align: center;
}

.newyear__wrap{
	width: 100%;
	background-color: #f8d653;
	background-image: linear-gradient(45deg, #f7cf46 25%, transparent 25%, transparent 75%, #f7cf46 75%), linear-gradient(45deg, #f7cf46 25%, transparent 25%, transparent 75%, #f7cf46 75%);
	background-position: 10px 10px, 42px 42px;
	background-size: 64px 64px;
	margin-bottom: 20px;
	padding-bottom: 15px;
}

.newyear__content {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-top: 48px;
	gap: 20px;
	max-width: 1000px;
	margin: auto;
}

.newyear_horse {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	max-width: 402px;
	opacity: 0;
}

.animation-horse {
	animation: fade-in 2.5s ease-out 1s 1 forwards;
}

.newyear__content>img {
	max-width: calc(42% / 2);
	z-index: 1;
	padding-bottom: 60px;
}

.newyear_horse__img {
	position: relative;
	width: 419px;
    height: 465px;
}

.horse_image{
	position: absolute;
	top: -50px;
    left: 0;
    width: 100%;
    height: 100%;
	transition: opacity 1.0s ease-in-out;
	opacity: 0;
	visibility: hidden;
}

.horse_image.active {
	opacity: 1;
	visibility: visible;
	transition: opacity 1.0s ease-in-out;
}

#horse-standing{
	transform-origin: center bottom;
    animation: horsemove 1.5s linear infinite;
}

@keyframes horsemove {
	0% , 100%{
		transform: rotate(3deg);
	}
	50%{
		transform: rotate(-3deg);
	}
}

#newyear_result {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	padding: 96px 20px 60px;
	background: url(/img/newyear/img_bg_red.jpg) repeat;
	text-align: center;
	opacity: 0;
	visibility: hidden;
}

#newyear_result.animation {
	opacity: 1;
	visibility: visible;
	transition: 2.2s;
}

.newyear_result__img {
	transform: translateY(calc(-100% - 350px));
}

.newyear_result__img img {
	max-width: 350px;
}

.newyear_result__img.show {
	transform: translateY(0);
	transition: transform 2s;
}

.newyear_result__txt {
	display: block;
	text-align: center;
}

.newyear__txt {
	display: inline-block;
	cursor: pointer;
	transition: opacity .3s;
}

.event-none {
	pointer-events: none;
}

.newyear_result__inner {
	display: flex;
	justify-content: center;
	flex-direction: column;
	padding-top: 130px;
}

#main.fade-out {
	opacity: 0;
	pointer-events: none;
}

.fade-in {
	animation: fade-in .3s ease-out forwards;
}

@media screen and (max-width: 1500px) {
	.newyear__inner {
		min-height: 558px;
	}

	.newyear__content {
		margin-top: 0;
	}
}

@media screen and (min-width: 1025px) {
	.newyear__txt:hover {
		opacity: .7;
	}
}

@media screen and (max-width: 1000px) {
	.newyear__content {
		justify-content: center;
	}
}

@media screen and (max-height: 850px) {
    .newyear {
        overflow-y: auto;
    }

	.newyear__head{
		width: 50%;
		margin: 0 auto 20px;
	}

	.newyear__inner {
        padding: 20px 0 20px;
    }

	.newyear__content>img{
		max-width: calc(24% / 2);
		padding-bottom: 20px;
	}

	.newyear_horse__img{
		width: 307px;
		height: 350px;
	}

	.horse_image{
		top: -33px;
	}

	.newyear_result__img img{
		max-width: 300px;
	}
}

@media screen and (max-height: 750px) {
	#newyear_result{
		height: auto;
	}
}

@media screen and (max-width: 768px) {
	:root {
		--width: 34px;
	}

	.animation-transition {
		transform: scale(0.5) translate(-38%, var(--translate-y_2));
	}

	.newyear {
		padding-top: 61px;
	}

	.newyear__wrap{
		background-color: #f8d653;
		background-image: linear-gradient(45deg, #f7cf46 25%, transparent 25%, transparent 75%, #f7cf46 75%), linear-gradient(45deg, #f7cf46 25%, transparent 25%, transparent 75%, #f7cf46 75%);
		background-position: 10px 10px, 33px 33px;
		background-size: 46px 46px;
	}

	.newyear__wrap {
		padding-bottom: 0;
	}

	.newyear__content {
		gap: 0;
		margin: 30px auto 20px;
	}

	.newyear__inner {
		display: flex;
		align-items: center;
		height: calc(100vh - 61px);
		min-height: 620px;
	}

	.newyear__head{
		width: 70%;
		margin: 0 auto 30px;
	}

	.newyear_horse__img {
		width: 250px;
		height: 283px;
	}

	.newyear__content>img {
		max-width: 85px;
		padding-bottom: 40px;
	}

	.newyear_horse {
		gap: 10px;
		align-items: center;
	}

	.newyear__txt {
		max-width: 180px;
		width: 80%;
		margin: auto;
	}

	#newyear_result {
		min-height: 475px;
		padding: 60px 20px 70px;
	}

	.newyear_result__inner {
		padding-top: 40px;
	}

	.newyear_result__img {
		min-width: 150px;
	}

	.newyear_result__img img {
		width: 45%;
	}

	.newyear_result__txt {
		position: absolute;
		bottom: 90px;
		z-index: 999;
		max-width: 90%;
	}
}

@media screen and (max-width: 425px) {
	.newyear__content {
		max-width: 330px;
		gap: 30px;
		margin: 10px auto;
	}

	.newyear_horse__img {
		width: 150px;
		height: 166px;
	}

	.newyear__content>img {
		max-width: 55px;
		padding-bottom: 20px;
	}

	.horse_image{
		top: -27px;
	}
}

@keyframes fade-in {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}