html {
	--outer-padding: max(2.5vh, 1vw);
}

body {
	background-color: #c1d8e8;
}

/* Splash Screen */

#splash {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform: translateY(-100%);
	transition-duration: var(--trans-duration);

	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-weight: 600;
	text-transform: uppercase;
}

#splash video {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	object-fit: cover;
}

body.in-splash #splash {
	transform: translateY(0%);
}

/* INTRO MENU */

#intro-menu {
	text-transform: uppercase;
	position: fixed;
	height: calc(100% + var(--menu-height));
	width: 100%;
	left: 0;
	bottom: calc(0% - var(--menu-height));
	transition-duration: var(--trans-duration);
	overflow: hidden;
	box-shadow: 0 0 1vh 0 rgba(0, 0, 0, 0.2);
	padding-top: calc(2 * var(--outer-padding));
}

#intro-menu-wrapper {
	transition-property: right, transform !important;
	height: calc(100vh - (4 * var(--outer-padding)));
}

#intro-menu-wrapper:active,
body.in-content #intro-menu-wrapper {
	transition-duration: var(--trans-duration) !important;
}

#intro-menu .cover {
	margin: 0;
	text-align: center;
	text-decoration: none !important;
	overflow: hidden;

	width: 60vw;
	font-weight: 600;

	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-content: stretch;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0.5vh 2vh 0 rgba(0, 0, 0, 0.2);
	transition-duration: var(--trans-duration) !important;
	transition-property: transform, width, margin, height !important;
}

#intro-menu .cover img {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	object-fit: cover;
}

body.in-content #intro-menu .cover.swiper-slide-active {
	width: 100vw;
	margin: 0 -20vw;
	height: calc(100% + 2 * var(--outer-padding) + var(--menu-height));
}

#intro-menu h2 {
	font-size: 2.5vw;
	z-index: 2;
	opacity: 1;
	margin-bottom: -1em;
}

#intro-menu h2::before,
#splash h1::before {
	z-index: -1;
	content: "";
	position: absolute;
	left: 50%;
	transform: translate3d(-50%, -50%, 0);
	transition-duration: var(--trans-duration);
}

#splash h1 {
	display: flex;
	z-index: 2;
	justify-content: center;
	align-items: center;
	height: min(80vh, 60vw);
	width: min(80vh, 60vw);
	font-size: min(3.5vh, 2.7vw);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	background-image: url(./res/diamond.svg);
}

#intro-menu h2::before {
	top: calc(50%);
	background-color: white;
	width: 47vw;
	height: 47vw;
	clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

body.in-content #intro-menu {
	bottom: calc(100% - var(--menu-height));
	transition-timing-function: ease-in !important;
	pointer-events: none;
}

body.in-content #intro-menu h2::before {
	top: calc(30% - var(--menu-height));
	transition-timing-function: ease-in !important;
}

.cover h3 {
	color: white;
	position: absolute;
	opacity: 0;
	transform: translateY(100%);
	bottom: 0;
	height: var(--menu-height);
	line-height: var(--menu-height);
	font-size: min(calc(0.5 * var(--menu-height)), calc(4vw - 1vh));
	transition-duration: var(--trans-duration);
	transition-timing-function: ease-in;
}

body.in-content .cover.swiper-slide-active h3 {
	transform: translateY(0%);
	opacity: 1;
}

/* Header */

body.in-content #content-nav {
	opacity: 1;
}

#content-nav {
	color: white;
	position: fixed;
	top: 0;
	left: 0;
	height: var(--menu-height);
	width: 100%;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	padding: 0 calc(1.5 * var(--outer-padding));
	opacity: 0;
	transition-duration: var(--trans-duration);
	transition-timing-function: ease-in;
}


#logo-IMA {
	/* pointer-events: none; */
	color: white;
	transition-duration: var(--trans-duration);
	position: fixed;
	bottom: var(--outer-padding);
	right: calc(1.5 * var(--outer-padding));
	height: calc(3 * var(--outer-padding));
	width: auto;
}

body.in-splash #logo-IMA {
	height: min(14vh, calc(10vw + 2 * var(--outer-padding)));
	bottom: calc(2 * var(--outer-padding));
	right: calc(2 * var(--outer-padding));
}

body.in-content #logo-IMA {
	color: black;
}

main#content {
	/* replace with loading afterwards */
	position: fixed;
	top: calc(var(--menu-height));
	bottom: 0;
	left: 0;
	right: 0;
	transition-duration: var(--trans-duration);
}

#mainframe {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
}

#pop {
	z-index: 1;
	position: fixed;
	top: calc(var(--menu-height));
	bottom: 0;
	left: 0;
	right: 0;
	pointer-events: none;
}

#pop>* {
	pointer-events: all;
}

#popup,
#popright {
	position: absolute;
	transition-duration: var(--trans-duration);
	overflow: hidden;
	box-shadow: 0 0 2vh 0 rgba(0, 0, 0, 0.2);
}

#popup {
	top: 0.5vh;
	left: 0.5vh;
	width: calc(100% - 1vh);
	height: calc(100% - 1vh);

	transition-duration: var(--trans-duration);
	transform: translateY(110vh);

	background-color: white;
	border-radius: var(--outer-padding);
}

#popright {
	top: 0;
	right: 0;
	height: 100%;
	width: 45%;
	transform: translateX(100%);
	background-color: #d4183f;
	border-radius: var(--outer-padding) 0 0 var(--outer-padding);
}

body.in-popup #popup {
	transform: translateY(0);
}

body.in-popright #popright {
	transform: translateX(0);
}

body.in-popright main#content {
	right: 43%;
}

#bgswiper {
	pointer-events: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}