@import url('./resources/fonts/stag/font.css');
@import url('./resources/fonts/stag-sans/font.css');

*, *:after, *:before {
	box-sizing: border-box;
}

:root {
	--gold: #FFC200;
	--gold-alt: #ffc96b;
	/* FFC91D */
	--blue: #003;
	--title-fs: 56px;
	--body-fs: 18px;
	--header-gap: 60px;
}

@media all and (max-width:599px){
	:root {
		--title-fs: 38px;
		--body-fs: 16px;
		--header-gap: 40px;
	}
	.desktop { display: none; }
}
@media all and (min-width:600px){
	.mobile { display: none; }
}

html, body {
	height: 100%;
}

body {
	background: var(--blue);
	color: white;
	font-family: Arial;
	font-size: var(--body-fs);
	font-style: normal;
	font-weight: 400;
	line-height: 150%; /* 27px */
}

main {
	width: 100%;
}

h1, h2 {
	font-family: "Stag", serif;
	padding: 0;
	margin: 0;
	font-family: Stag;
	font-size: var(--title-fs);
	font-style: normal;
	font-weight: 600;
	line-height: 100%; /* 56px */
	color: var(--gold);
	text-align: center;
	> span {
		display: block;
		.gold {
			color: var(--gold);
		}
	}
	> span:not(.gold){
		color: white;
	}
}

p {
	margin: 0 auto 20px auto;
	padding: 0;
	width: 100%;
	font-size: var(--body-fs);
	strong {
		color: var(--gold);
		font-weight: inherit;
	}
}

a {
	color: inherit;
	font-size: var(--body-fs);
	&[href="#"]{
		&:before,
		&:after {
			content: '⚠️';
		}
	}
}

header, section {
	display: flex;
	flex-direction: column;
	gap: 0;
	position: relative;
	z-index: 4;
	width: 100%;
	overflow: hidden;
}
img.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
	filter: blur(calc(var(--scroll-top,0) * 5px));
	transform: translateY(calc(-100% * var(--scroll-top,0)));
	z-index: 3;
	mask-image: linear-gradient(0deg, transparent, black);
}
header {
	font-family: Stag;
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%; /* 27px */
	padding: 60px 20px;
	padding-top: 25vmin;
	h1, img {
		width: 100%;
		margin: 0 auto;
	}
	h1, img, p {
		max-width: 600px;
	}
	img, h1 {
		margin-bottom: var(--header-gap);
	}
	img {
		max-width: 720px;
		&.mobile {
			max-width: 140px;
		}
	}
	button {
		margin-top: var(--header-gap);
	}
}
aside {
	position: sticky;
	height: 0;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 2;
	pointer-events: none;
	img {
		width: 100%;
		height: auto;
		position: absolute;
		top: 0;
		left: 0;
		mask-image: linear-gradient(0deg, transparent, black, transparent);
	}
}
section {
	max-width: none;
	--padd: max(30px, calc((100% - 960px) / 2));
	margin: 0 auto;
	padding: 30px var(--padd) 30px var(--padd);
	h2 {
		margin-bottom: var(--header-gap);
	}
	aside {
		opacity: .25;
		width: 100vw;
		transform: translateX(calc(-1 * var(--padd)));
	}
}
button {
	border: none;
	appearance: none;
	padding: 20px 60px;
	background: var(--gold);
	background: linear-gradient(180deg, transparent, var(--gold-alt) calc(var(--client-y, .3) * 100%)) var(--gold);
	color: var(--blue);
	width: auto;
	margin: 0 auto;
	font-family: "Stag Sans";
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 125%; /* 22.5px */
	text-transform: uppercase;
	border-radius: 8px;
	cursor: pointer;
	&:hover {
		background-color: color-mix(in srgb, var(--gold), 10% white);
	}
}
iframe {
	margin: 0 auto;
	border-radius: 8px;
}
#form div[id*="qua"] {
	display: flex;
}
.info,
dd > div:before {
	max-width: 600px;
	padding: 20px 31px;
	margin: 0 auto;
	border-radius: 6px;
	border: 1px solid rgba(255, 249, 188, 0.00);
	background: rgba(255, 255, 255, 0.30);
	backdrop-filter: blur(4px);
	font-size: var(--body-fs);
	strong {
		font: inherit;
		font-size: var(--body-fs);
		font-weight: 600;
	}
}
.info {
	margin-bottom: 30px;
	position: relative;
}
.info:after,
dd > div:after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	height: 100%;
	width: 100%;
	z-index: 1;
	border-radius: 6px;
	border: 1px solid rgba(255,255,255,.6);
	background: none;
	pointer-events: none;
	mask-image: linear-gradient(calc(var(--index,3) * var(--client-x, .3) * 3rad ), transparent, black);
}

#jury {

	max-width: none;

	ul {
		display: flex;
		padding: 0;
		margin: 0;
		gap: 10px;
		flex-wrap: wrap;
		justify-content: center;
	}

	dl {
		display: flex;
		flex-direction: column;
		isolation: isolate;
		width: 183px;
		height: auto;
		text-align: center;
		dt {
			order: 2;
			font-family: Stag;
			font-size: 20px;
			font-style: normal;
			font-weight: 500;
			line-height: 135%; /* 27px */
		}
		dd {
			display: contents;
			> div {
				order: 1;
				position: relative;
				margin-bottom: 10px;
				&:after,
				&:before {
					content: '';
					position: absolute;
					left: 0;
					bottom: 0;
					height: 75%;
					width: 100%;
					z-index: 1;
					border-radius: 6px;
				}
				img {
					position: relative;
					z-index: 2;
					display: block;
					border-radius: 6px;
					transform: translateY(-px);
					width: 100%;
					height: auto;
				}
			}
			strong {
				order: 3;
				font-family: Arial;
				font-size: 16px;
				font-style: normal;
				font-weight: 400;
				line-height: 125%; /* 20px */
			}
		}

	}

}

footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	padding-top: 60px;
	padding-bottom: 30px;
	gap: 30px;
	img {
		max-height: 80px;
		&[alt*="Voetbal"]{
			max-height: 60px;
		}
	}
}

hls-video {
	font-family: "Stag Sans", sans-serif;
	--video-accent: var(--gold);
	&::part(playpause){
		background: var(--gold);
		width: 100px;
		height: 100px;
	}
	&::part(playpauseicon){
		width: 80px;
		height: 80px;
	}
	&::part(loader){
		border: none;
		animation: none;
		background: url(./resources/loader.svg) no-repeat 50% 50% / contain;
		filter: invert(100%);
	}
}

.copyright {
	text-align: center;
	font-size: 12px;
	padding-bottom: 50px;
	display: flex;
	flex-direction: column;
	opacity: .8;
	a {
		font-size: 12px;
	}
}

@supports (background-clip: text){
	h2, h1 > .gold {
		background: linear-gradient(0deg, var(--gold-alt), var(--gold) calc(var(--client-y, .3) * 100%));
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}
}

small {
	width: 100%;
	background: rgb(146, 0, 0);
	color: white;
	padding: 10px 20px;
}

#qualifio_insert_place_1722778:not(:has(> *)):after {
	width: 50px;
	height: 50px;
	margin: 40px auto;
	display: block;
	content: 'Bezig met laden van formulier...';
	background: url(./resources/loader.svg) no-repeat 50% 50% / contain;
	color: transparent;
	filter: invert(100%);
}

@media all and (orientation:landscape) and (pointer:coarse){

	header > img {
		max-width: 65%;
	}
	header, section {
		padding-left: max(30px, env(safe-area-inset-left));
		aside {
			transform: translateX(calc(-1 * max(30px, env(safe-area-inset-left))));
		}
	}

}