@font-face {
	font-family: 'Theinhard-Web';
	src: url('../assets/Theinhardt-Regular.woff2') format('woff2');
	font-display: swap;
	font-style: normal;
	font-weight: 500;
}

:root {
	--spot-col: rgb(59,255,8);
	--spot-col-light: rgba(59,255,8, 0.7);
	--bg-col: rgb(72,72,72);
	--ease: cubic-bezier(.09,.33,.11,1.01);
	--ty-big: 2.4rem;
	--ty-mid: 2rem;
}


html, body {
	font-family: 'Theinhard-Web','sans-serif';
	font-size: 5vw;
	margin: 0;
	padding: 0;
	background-color: var(--bg-col);
	color: var(--spot-col);
	overflow:hidden;
}

h1.page-title {
	font-size: var(--ty-big);
	margin: 0;
	letter-spacing: -0.03rem;
}


.svg-button {
	background-color: transparent;
	border:none;
	margin: 0;
	padding: 0;
	cursor:pointer;
}

.page-header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
}

.app-loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100dvh;
	z-index: 10;
	pointer-events:auto;
	/*display:flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;*/
}

.anim-page-title-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 120dvh;
	transition: transform 1.2s var(--ease);
	transform: translate(0,0);
	z-index: 2;
	display:flex;
	align-items: flex-end;
	padding: 0 3vw;
	/*opacity: 0.5;*/
}

.anim-page-title-container.show {
	transform: translate(0,-100dvh);
}


.app-loading-overlay .anim-logo-container {
	transform: scale(1) translate(0,35dvh);
	transition: transform 1.2s var(--ease);
	transform-origin: top right;
}

.app-loading-overlay.done-playing {
	pointer-events: none;
}


.app-loading-overlay.done-playing .anim-logo-container {
	transform: scale(0.4) translate(0,0);
}

.video-player {
	position: absolute;
	width: 94vw;
	left: 3vw;
	top: 20dvh;
	height: calc(80dvh - 3vw);
	overflow:hidden;
	clip-path: inset(100% 0 0 0 round 1vw);
	transition: clip-path 1.3s var(--ease);
	transition-delay: 0.2s;
}

.video-player.show {
	clip-path: inset(0 0 0 0 round 1vw);
}

.video-player.clip-bottom {
	clip-path: inset(0 0 14% 0 round 1vw);
}

.video-player video {
	position: absolute;
	width: 100%;
	height: auto;
	bottom: 0;
}


.bg-gradient {
	position: absolute;
	z-index: 0;
	width: 100vw;
	height: 100dvh;
	top: 0;
	left: 0;
	transform: translate(0,110vh);
	transition: transform 1s var(--ease);
	transition-delay: 3.5s;
	background: linear-gradient(to bottom, rgba(59,255,8,0) 0%,rgba(59,255,8,0) 1%,rgba(59,255,8,0.1) 26%,rgba(59,255,8,0.5) 55%,rgba(59,255,8,1) 81%,rgba(59,255,8,1) 99%);
}

.bg-gradient.show {
	transform: translate(0,0);
}


.video-legende {
	position: absolute;
	bottom: 0;
	width: 100vw;
	color: var(--bg-col);
	height: 12.5dvh;
	padding: 1rem 2.8vw;
	display:flex;
	flex-direction: column;
	justify-content: center;
	transform: translate(0,12dvh);
	transition: transform 1.5s var(--ease);
	transition-delay: 1s;
}

.video-legende.show {
	transform: translate(0,0);
}

.video-legende h2 {
	margin: 0;
	font-size: var(--ty-mid);
	line-height: 0.8;
	white-space: nowrap;
	letter-spacing: -0.03rem;
}

.video-legende p {
	margin: 0;
	white-space: nowrap;
}

.video-player .video-controls {
	position: absolute;
	top: 35%;
	left: 50%;
	transform: translate(-50%, -35%);
	width: 33vw;
	height: 33vw;
	z-index: 1;
	opacity: 0;
	transition: opacity 0.5s var(--ease);
	transition-delay: 1s;
}

.video-player .video-controls.show {
	opacity: 1;
}

.video-player .play-button {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 0 auto;
	width: 19vw;
	height: 19vw;
	opacity: 0.6;
	background-image: url('../assets/play-icon.svg');
	background-size: 100%;
	background-repeat: no-repeat;
}

.video-player .mute-button {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	margin: 0 auto;
	width: 10vw;
	height: 10vw;
	opacity: 0.6;
	background-image: url('../assets/unmute-icon.svg');
	background-size: 100%;
	background-repeat: no-repeat;
}

.video-player.muted .mute-button {
	background-image: url('../assets/mute-icon.svg');
}

.video-player.playing .video-controls {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s var(--ease);
}

.video-player.paused .play-button {
	background-image: url('../assets/pause-icon.svg');
}

.video-player.pulse-controls .video-controls {
	opacity: 1;
	pointer-events: auto;
}

.flip-note {
	position: fixed;
	flex-direction: column;
	width: 100vw;
	height: 100dvh;
	background-color: var(--bg-col);
	display:flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
}

.flip-note p {
	text-align: center;
	width: 20ch;
	margin: 0 auto;
	font-size: clamp(15px, 1.5rem, 40px);
	line-height: 1.1;
}


@media (orientation: landscape) {
	.flip-note {
		display:flex;
	}
}

@media (orientation: portrait) {
	.flip-note {
		display:none;
	}
}

@media (min-width:800px)  {
	body,html {
		font-size: 4vw;
	}

	.video-player video {
		bottom: -3rem;
	}
}
