/* 

	======= Table Of Contents =======

	1. Global Styles
		1.1 Typography
		1.2 Buttons
		1.3 Pages
		1.4 Fade animations

	2. Navbar
		2.1 Desktop Layout
		2.2 Mobile Layout

	3. Landing Page

	4. Text Page

*/

/* ====================
	1. Global Styles
==================== */

@media not all and (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: smooth;
	}
}

*:first-child {
	margin-top: 0;
}

*:last-child {
	margin-bottom: 0;
}

:root {
	--body-colour: #eee;

	--primary: rgb(255, 10, 43);
	--primary-light: rgb(255, 60, 88);
	--secondary: rgb(0, 92, 255);
	--secondary-dark: rgb(0, 49, 206) !important;
	--secondary-light: rgb(0, 118, 255) !important;

	--navbar-height: 4em;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--body-colour);

	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

::-webkit-scrollbar {
	width: 7px;
	height: 7px;
	background-color: var(--body-colour);
}

::-webkit-scrollbar-track {
	display: none;
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(
		135deg,
		var(--primary-light),
		var(--primary)
	);
	border-radius: 4px;
}

::selection {
	background-color: rgb(90, 198, 255);
}

::-moz-selection {
	background-color: rgb(90, 198, 255);
}

/*
	1.1 Typography
*/

* {
	font-family: 'Raleway', sans-serif;
}

h1 {
	position: relative;
	font-size: 3em;
	font-weight: 900;
	color: var(--primary-light);
}

strong, b {
	font-weight: 600;
}

p {
	color: #555;
}

.quote {
	font-family: 'Alegreya', serif;
	font-size: 1.3em;
}

#footer {
	background-color: var(--secondary-light);
	background: linear-gradient(
		135deg,
		var(--secondary) 0,
		var(--secondary-light)
	);
	color: white;

	margin-top: auto;
	padding: 2em;
	border-radius: 2em 0 0 0;
}

#footer a {
	color: white;
}

a:link {
	color: var(--secondary-dark);
}

a:visited {
	color: var(--secondary);
}

/*
	1.2 Buttons
*/

a.button {
	display: block;
	outline: none;

	text-decoration: none;
	text-transform: uppercase;
	color: white;
	font-weight: 700;

	background-color: var(--primary);
	background: linear-gradient(
		135deg,
		var(--primary-light) 25%,
		var(--primary) 100%
	);
	background-size: 150%;
	background-position: 0%;

	padding: 1em;
	border-radius: 3em;
	box-shadow: 2px 2px 10px rgba(255, 62, 116, 0.3);

	transition: background-position 500ms ease, box-shadow 300ms ease;
}

a.button:hover {
	box-shadow: 2px 2px 10px rgba(255, 62, 116, 0.5);
	background-position: 100%;
}

/*
	1.3 Pages
*/

.page {
	margin-top: var(--navbar-height);
	position: relative;

	display: flex;
	flex-grow: 1;
}

html[home="true"] .page {
	display: block;
}

.page::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	background-image: url('/img/olive-twig-left.png'), url('/img/olive-twig-right.png');

	background-repeat: repeat-y;
	background-position-x: left, right;
	background-size: max(50%, 400px);
	filter: opacity(0.05);
}

/*
	1.4 Fade animations
*/

@media not screen and (prefers-reduced-motion: reduce) {
	.fade-in {
		opacity: 0;
		visibility: hidden;
		transform: translateX(-2em);
		transition: opacity 700ms ease, visibility 700ms, transform 700ms ease;
	}
	
	.fade-in.triggered {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

/* ====================
	2. Navbar
==================== */

/*
	2.1 Desktop Layout
*/

#navbar {
	position: fixed;
	z-index: 999;
	top: 0;
	width: 100%;
	height: var(--navbar-height);

	background-color: var(--secondary-light);
	background: linear-gradient(
		135deg,
		var(--secondary) 0,
		var(--secondary-light)
	);

	border-radius: 0 0 2em 0;

	display: flex;
}

#navbar ul {
	height: var(--navbar-height);

	list-style-type: none;
	padding: 0;
	margin: 0;
}

#navbar ul#right {
	position: absolute;
	right: 0;
}

#navbar li {
	float: left;
	position: relative;
	height: 100%;

	display: flex;
	align-items: center;
}

#navbar a.navbar-link {
	display: block;
	height: 100%;
	padding: 0 .75em;

	text-decoration: none;

	display: flex;
	align-items: center;
}

#navbar a.navbar-link p {
	position: relative;
	color: #fff;
	font-weight: 600;
}

/* Line under a.navbar-link */

#navbar a.navbar-link p::after {
	content: "";
	position: absolute;
	left: 0;
	top: calc(100% + 3px);
	width: 100%;
	height: 2px;

	background-color: transparent;

	transition: background-color 300ms ease;
}

#navbar a.navbar-link:hover p::after {
	background-color: #fff;
}

#navbar a.button {
	margin: 0 .75em;
}

#logo-container {
	padding: 0 1em !important;
}

#logo {
	display: block;
	height: 4em;
	box-sizing: border-box;
}

#lang {
	margin: 0 .75em;
}

#lang a img {
	width: 3em;
	height: 3em;
}

#hamburger-container {
	display: none !important;
}

/*
	2.2 Mobile Layout
*/

@media (max-width: 900px) {
	#navbar ul#links {
		position: absolute;
		z-index: 99;
		left: 0;
		top: 0;
		width: 100vw;
		top: var(--navbar-height);
		height: calc(100vh - var(--navbar-height));
		padding-top: 2em;
		background-color: var(--body-colour);

		/* Opening transition */
		transform: translateX(-100vw);
		padding-right: 100vw;
		display: flex;
		align-items: center;
		flex-direction: column;
		visibility: hidden;
		opacity: 0;
		transition: visibility 300ms ease, opacity 300ms ease, transform 300ms ease-in-out;
	}

	#navbar ul#links::before {
		content: "";
		position: absolute;
		width: 50%;
		height: 100%;
		background-image: url('/img/olive-twig-left.png'), url('/img/olive-twig-right.png');

		background-repeat: repeat-y;
		background-position-x: left, right;
		background-size: max(50%, 400px);
		filter: opacity(0.05);
	}

	#navbar ul#links li {
		height: unset;
	}

	#navbar a.navbar-link p {
		padding: 1em 0;
		color: black;
	}

	/* Line under a.navbar-link */

	#navbar a.navbar-link p::after {
		top: calc(50% + 12px);
	}

	#navbar a.navbar-link:hover p::after {
		background-color: var(--secondary);
	}

	#hamburger-container {
		display: block !important;
		padding: 1em 0;
		margin-right: 1em;
	}

	img#hamburger {
		height: 2em;
		cursor: pointer;
		transition: opacity 300ms ease;
	}

	img#hamburger.hidden {
		opacity: 0;
	}

	img#close-menu {
		position: absolute;
		left: 0;
		height: 2em;

		pointer-events: none;

		visibility: hidden;
		opacity: 0;
		transition: visibility 300ms, opacity 300ms ease;
	}

	img#close-menu.visible {
		visibility: visible;
		opacity: 1;
	}

	#navbar ul#links.visible {
		transform: none;
		visibility: visible;
		opacity: 1;
	}

	/* Disable scroll when navbar is visible */

	html.navbar-visible body {
		overflow: hidden;
	}
}

/* ====================
	3. Landing Page
==================== */

.landing {
	position: relative;
	height: calc(100vh - var(--navbar-height));
	box-sizing: border-box;
}

/* Word Cloud */

.landing img.word-cloud {
	position: absolute;
	left: 50%;
	top: 40%;
	transform: translate(-50%, -50%);
	max-width: 100%;
	max-height: 60%;
	object-fit: contain;
	user-select: none;
	-webkit-user-select: none;
}

/* Map */

.landing img.map {
	position: absolute;
	left: 0;
	top: 40%;
	transform: translateY(-50%);
	max-height: 60%;
	object-fit: contain;
	user-select: none;
	-webkit-user-select: none;
}

@media (max-width: 1300px) {
	.landing img.map {
		max-width: 20%;
	}
}

@media (max-width: 900px) {
	.landing img.map {
		display: none;
	}
}

/* Stripes */

.landing::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	background-image: url('/content/stripe.png');

	background-repeat: repeat-x;
	background-position-y: calc(100% - 2em);
	background-size: 400px;
	/* filter: opacity(0.05); */
}

.landing p {
	position: absolute;
	left: 50%;
	top: 75%;
	transform: translateX(-50%);
}

@media (max-height: 750px) {
	.landing::before {
		/* Disable stripes */

		content: none;
	}
}

.landing-block {
	position: absolute;
	text-align: center;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 4em 10em;
	box-sizing: border-box;
	width: 100%;
}

.landing-block h1 {
	font-size: 4em;
	
	background: linear-gradient(
		90deg,
		var(--primary-light) 20%,
		var(--primary)
	);
	background-clip: border-box;
	background-size: 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;

	filter: drop-shadow(2px 4px 5px rgba(255, 140, 121, 0.7));
}

.landing-block p {
	color: #fff;
	text-shadow: 0 2px 5px rgba(128, 128, 128, 0.6);
}

@media (max-width: 950px) {
	.landing-block {
		padding: 4em 2em;
	}
}

@media (max-width: 700px) {
	.landing-block h1 {
		font-size: 3em;
	}
}

@media (max-width: 500px) {
	.landing-block h1 {
		font-size: 2em;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* ====================
	4. Text Page
==================== */

.text-page {
	position: relative;
	box-sizing: border-box;
	padding: 4em 10em;

	display: flex;
	flex-direction: column;
	align-items: center;

	width: 100%;
}

.text-page:nth-child(odd) {
	background-color: rgba(255, 255, 255, .3);
}

.text-page .text {
	position: relative;
	text-align: justify;
	max-width: 80ch;
}

@media (max-width: 900px) {
	.text-page {
		padding: 6em 6em;
	}
}

@media (max-width: 500px) {
	.text-page {
		padding: 6em 2em;
	}

	.text-page .text {
		text-align: left;
	}
}

.line {
	width: 4em;
	height: 2px;
	background-color: var(--secondary-light);
	margin-bottom: 2em;
}

#bestuur ul {
	margin: 0;
	padding-left: 20px;
}
