@font-face {
	font-family: 'Palatino';
	src: url('../fonts/Palatino Linotype.ttf');
}

@keyframes slidein {
	from {
		transform: translateY(110%);
		opacity: 0;
	}

	to {
		transform: translateY(0%);
		opacity: 1;
	}
}

@keyframes slideout {
	from {
		transform: translateY(0%);
		opacity: 1;
	}

	to {
		transform: translateY(110%);
		opacity: 0;
	}
}

@keyframes fadein {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fadeout {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}
* {
	padding: 0;
	margin: 0;
	outline: none;
	border: none;
	font-family: Palatino;
	text-align: center;
	color: #fff;
	cursor: none !important;
	user-select: none !important;
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	
}

.slidein {
	animation: slidein;
	animation-duration: 1s;
	animation-iteration-count: 1;
}

.slideout {
	opacity: 0;
	pointer-events: none;
	transform: translateY(110%);
	animation: slideout;
	animation-duration: 1s;
	animation-iteration-count: 1;
}


.fadein {
	animation: fadein;
	animation-duration: 1s;
	animation-iteration-count: 1;
}
.fadeout {
	opacity: 0;
	pointer-events: none;
	animation: fadeout;
	animation-duration: 1s;
	animation-iteration-count: 1;
}

html,
body {
	background-color: #000;
	overflow: hidden;
}

h1 {
	display: block;
	font-size: 64px;
	text-align: center;
	font-weight: bold;
	margin: 24px 0 64px 0;
}

h3 {
	display: block;
	font-size: 32px;
	text-align: center;
	font-weight: bold;
	margin: 24px 0 64px 0;
}

.main {
	position: absolute;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	box-sizing: border-box;
	overflow: hidden;
}

.header {
	flex: 0 0 auto;
	height: 90px;
	text-align: center;
}
.header img {
	pointer-events: none;
}

.video-wrapper {
	position: absolute;
	top: 90px;
	left: 0;
	width: 100%;
	/*height:607.5px;*/
	height: 31.64%;
	padding: 0;
	margin: 0;
	font-size: 0;
}

.video-wrapper video {
	width:100%;
	height: 100%;
	pointer-events: none !important;
}

.video-wrapper img {
	position: absolute;
	left: 0;
	top: 0;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none !important;
}
.video-wrapper iframe {
	position: absolute;
	left: 0;
	top: 0;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	pointer-events: none !important;
}

.page.page-select {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
}

.mode-btns-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	padding-bottom: 12px;
}
.type-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 1 1 100%;
	width: 90%;
	margin: 6px auto;
	background-color: #2a613a;
	color: #fff;
	border-radius: 8px;
	text-align: center;
	padding: 0;
	font-size: 40px;
	font-weight: bold;
	text-transform: uppercase;
	min-height: 70px;
	max-height: 150px;
}

.page_content {
	position: absolute;
	top: 697.5px;
	/*height:551px;*/
	height: 36.72%;
	text-align: center;
	display: block;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.page {
	position: absolute;
	top: 0px;
	height:551px;
	/*bottom: 671.5px;*/
	text-align: center;
	display: block;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
	overflow: hidden;
}


marquee {
	font-size: 42px;
	padding: 24px 0;
	font-weight: bold;
	text-transform: uppercase;
	color: #333;
	background-color: #eee;
}

p {
	font-size: 30px;
	margin: 0;
}

.footer img {
	display: inline-block;
	vertical-align: middle;
	height: 38px;
}

h2 {
	margin: 30px 0 0px 0;
	text-transform: uppercase;
	font-size: 48px;
	font-weight: bold;
}


.result-number {
	font-weight: bold;
	font-size: 150px;
}

.bold {
	font-weight: bold;
}

.result-type {
	font-weight: bold;
	font-size: 48px;
	margin: 12px 0;
}

.loader {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background-image: url("../imgs/loader.gif");
	background-position: center 30%;
	background-repeat: no-repeat;
	background-size: 120px 120px;
}

.init-error-div {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	padding: 64px;
	box-sizing: border-box;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.init-error-div {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	padding: 64px;
	box-sizing: border-box;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	background-color: #fff;
}

.init-error-div .label {
	color: #000;
	font-size: 64px;
	text-align: center;
	text-transform: uppercase;
	font-weight: bold;
}
.no_gallery {
	position: absolute;
	box-sizing: border-box;
	width: 100%;
	height:671.5px;
	left: 0;
	bottom: 0;
	/*background: #333;*/
	overflow: hidden;
	display:none;
}
.gallery_title {
	position:absolute;
	box-sizing: border-box;
	width: 100%;
	/*bottom:607.5px;*/
	bottom: 31.64%;
	height:64px;
	line-height:64px;
	font-size: 48px;
	font-weight: bold;
	background: black;
}
.gallery_content {
	position: absolute;
	box-sizing: border-box;
	width: 100%;
	/*height: 607.5px;*/
	height: 31.64%;
	left: 0;
	bottom: 0;
	background: #000;
	overflow: hidden;
}
.gallery_content .prev_next {
	position: absolute;
	left:0;
	top:0;
	width: 100%;
	height:100%;
}

.gallery_content video {
	width:100%;
	height: 100%;
	pointer-events: none !important;
}
.gallery_content iframe {
	position: absolute;
	left: 0;
	top: 0;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	pointer-events: none !important;
}

.gallery_content img {
	position: absolute;
	left: 0;
	top: 0;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none !important;
}
/*
.gallery_content img {
	width: 1080px;
	aspect-ratio: 16 / 9;
	position: absolute;
	top: 0;
	left: 0;
	object-fit: contain;
	opacity: 0;
	transition: opacity 1s;
	pointer-events: none;
}

.gallery_content img.show {
	opacity: 1;
}
*/

.gallery_btn {
	position: absolute;
	/*background: rgba(0, 0, 0, 0.05);*/
	background:transparent;
	border-radius: 10px;
	font-size: 0px;
	top: 50%;
	font-weight: bold;
	transform: translateY(-50%);
	width: 100px;
	line-height: 100px;
	text-align: center;
	color: #fff;
	text-shadow: 0px 0px 2px #000000;
}

.gallery_btn svg {
	width: 50px;
	vertical-align: middle;
	filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
	visibility: hidden;
}

.gallery_btn.prev {
	left: 10px;
}

.gallery_btn.next {
	right: 10px;
}

.gallery_btn.next svg {
	transform: rotate(180deg);
}


/* ========== mode_2 =======================*/
.main.only_top_ad .gallery_content{
	display:none;
}
.main.only_top_ad .gallery_title {
	display:none;
}
.main.only_top_ad .no_gallery {
	display:unset;
}

/* ========== mode_2 =======================*/
.main.portrait {
	display: flex;
	flex-direction: column;
	justify-content: stretch;
	align-items: stretch;
}
.main.portrait .gallery_content{
	display:none;
}
.main.portrait .gallery_title {
	display:none;
}
.main.portrait .page_content {
	position: relative;
	top: unset;
	height: 24%;
	flex: 0 0 auto;
	top: auto;
	bottom: auto;
}
.main.portrait .page_content.btns-3 {
	height: 30%;
}
.main.portrait .page_content.btns-5 {
	height: 40%;
}
.main.portrait .video-wrapper {
	position: relative;
	height: unset;
	flex: 1 1 auto;
	height: 63.28%;
	bottom: 36.72%;
	top: auto;
	bottom: auto;
}
.main.portrait .page {
	height: 100%;
}

.main.only_top_ad .page_content {
	bottom: 0 !important;
	height: 68.36% !important;
}