@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300..700&display=swap');
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
    font-size: 20px;
    font-family: "Raleway", sans-serif;
}
main {
  max-width: 420px;
  margin: 0 auto;
  /* margin-top: 6em;*/
  /* height: 75vh; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity .5s ease-in;
}
.video-js {
	width: unset;
}
.overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
    z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
    align-items: center;
    justify-content: center;
}
.fade {
    opacity: 0 !important;
    transition: opacity .5s ease-in;
}
.hide {
    display: none !important;
}
/*.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    -webkit-animation: rotation 1s linear infinite; 
    animation: spin 1s linear infinite;
    z-index: 5;
    position: absolute;

}*/

.loaderWrapper {
	position: absolute;
	top: 0%;
	left: 0%;
	width: 30px;
	height: 30px;
	pointer-events: none;
}
.loader {
    width: 30px;
    height: 30px;
	
    border: 5px solid #000;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
	position: absolute;

	pointer-events: none;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 

.show {
    display: flex;
}
.logo {
    display: flex;
    justify-content: center;
    transition: all .5s ease-in;
}
.logo img{
    width: 3.63em;
    margin-right: 1.2em;
}
.logo .logoVideo {
    width: 100%;
    height: 240px;
    transition: all .5s ease-in;
}
.logo .logoVideo.firstStep {
	height: 89dvh;
}
.mainDesc {
    text-align: center;
	margin-bottom: 1.2em;
}
form {
    display: flex;
    flex-direction: column;
    row-gap: 0.4em;
}
input.userName {
	appearance: none;
    text-align: center;
    font-size: 1rem;
    border-radius: 0.36em;
	border: 1px solid #808080;
    box-shadow: 1px 1px 5px 1px #808080;
    padding-top: .8em;
    padding-bottom: .8em;
	margin-bottom: .5em;
}
.submitButton {
	appearance: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.3em !important;
    padding-top: .8em !important;
    padding-bottom: .8em !important;
    border: 0;
    background-color: #000;
    color: white;
    transition: color 1s ease-in;
	cursor: pointer;
}
.submitButton:disabled {
    background-color: gray;
}
.progressBar__wrapper {
	display: none !important;
    max-width: 420px;
    margin: 0 auto;
    margin-top: 1em;

    transition: all .5s ease-in;
}
.progressBar {
    width: 100%;
    height: 5px;
    background-color: grey;
    border-radius: 5px;
}
.progressBar .progress{
    width: 0%;
    height: 5px;
    background-color: black;
    border-radius: 5px;
    transition: .2s width ease-in;
}
.bar {
    width: 1%;
    height: 5px;
    background-color: #000;
    border-radius: 5px;
}
.copyright {
    text-align: center;
    margin-top: 2em;
    font-weight: 700;
	font-size: 16px;
}
.mainVideo {
    display: flex;
    justify-content: center;
    align-content: center;
}
.mainVideo .mainVideoWrapper{
	position: relative;
}
.mainVideo .mainVideoWrapper .videoControl {
	position: absolute;
	/*background-color: rgba(255,0,0,.2);*/
	height: 100%;
	width: 100px;
	top: 0;
	z-index: 10;
}
.mainVideo .mainVideoWrapper .backControl {
	left: 0;
}
.mainVideo .mainVideoWrapper .nextControl {
	right: 0;
}
.mainVideo .mainVideoWrapper .closeVideo {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 0.36em;
	box-shadow: 0px 0px 3px 0px rgb(128, 128, 128);
	padding: 1em;
	z-index: 10;
	background-color: #fff;
	display: none;
}
.mainVideo .mainVideoWrapper video {
	height: 96dvh;
}
.logo.safari {
	margin-top: 200px;
}
.mainVideo.safari {
	margin-top: 200px;
}
.mainVideo .playBtn {
	content: '';
	position: absolute;
	top: 67%;
	left: 50%;
	transform: translate(-50%, -67%);
	width: 50%;
	aspect-ratio: 1.5989;
	background-image: url('/img/playBtn.webp');
	opacity: 0;
	transition: .2s opacity ease-in;
	background-size: contain;
	pointer-events: none;
}
.mainVideo .mainVideoWrapper.playNext .playBtn {
	background-image: url('/img/play.svg');
	aspect-ratio: 1;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 125px;
	
}
.mainVideo .mainVideoWrapper::after {
	content: '';
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: .2s opacity ease-in;
	background-color: rgba(128, 128, 128, .2);
	pointer-events: none;
}
.mainVideo .mainVideoWrapper.paused .playBtn {
	opacity: 1;
}
.mainVideo .mainVideoWrapper.paused::after {
	opacity: 1;
}
.rotated-video.mainVideoWrapper {
    position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-90deg);
}
.rotated-video video{
	transform-origin: center center;
	object-fit: fill;
	width: 98dvh; 
    height: 98vw !important; 
    object-fit: fill; 
}
.ending {
    text-align: center;
    display: flex;
    align-items: center;
    height: 95vh;
    justify-content: center;
    column-gap: 2em;
}
.ending  .contactItem {
    border: 2px solid #000;
    border-radius: 5px;
    padding: 1.4em 1em;
    font-size: 16px;
    font-weight: 500;
	width: 342px;
}
.ending  .contactItem a{
    color: #000;
}
.ending  .contactItem .name {
    font-size: 22px;
}
.ending  .contactItem .post {
    margin-top: 0.4em;
    margin-bottom: 0.3em;
}
.ending .ppItem {
    max-width: 342px;
    height: 143px;
}
.ending .ppItem img{
    width: 100%;
}
.blockForHideToolbarInSafariTop {
	height: 200px;
	width: 100%;
}
.blockForHideToolbarInSafari {
	width: 100%;
	height: 0px;
}

@media (max-width: 1400px) {
	.logo .logoVideo {
		height: 200px;
	}
	body {
		zoom: 0.8;
	}
}
@media (max-width: 768px) {
    .ending {
        flex-direction: column;
		row-gap: 2em;
    }
	.logo .logoVideo {
		height: 260px;
	}
	body {
		zoom: 1;
	}
}
@media (max-width: 470px) {
    html {
        font-size: 19px;
    }
	main {
		max-width: 360px;
	}
	input.userName {
		font-size: 0.9rem;
	}
}

@media (max-width: 400px) {
    html {
        font-size: 19px;
    }
	main {
		max-width: 350px;
	}
}
@media (max-width: 380px) {
    html {
        font-size: 18px;
    }
	main {
		max-width: 340px;
	}
}
@media (max-width: 360px) {
    html {
        font-size: 16px;
    }
	main {
		max-width: 320px;
	}
}
@media (max-height: 480px) {
 .mainVideo .mainVideoWrapper video {
	height: 96dvh;
    width: 96vw;
 }
}