:root {
	--outer-color: #F7F5C4;
}

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	overflow: hidden;
	/* Prevent scrolling */
}

/* Background image and overall font */
body {
	background: black;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#background-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	overflow: hidden;
}

.bg-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transition: opacity 1s ease-in-out;
	opacity: 0;
}

.bg-slide.instant {
	transition: none !important;
}

.bg-slide.active {
	opacity: 1;
}

@media ( orientation : portrait) {
	.bg-image-0 {
		background-position: 50% center;
	}
	.bg-image-1 {
		background-position: 50% center;
	}
	.bg-image-2 {
		background-position: 40% center;
	}
	.bg-image-3 {
		background-position: 65% center;
	}
	.bg-image-4 {
		background-position: 20% center;
	}
	.bg-image-5 {
		background-position: 50% center;
	}
	.bg-image-6 {
		background-position: 55% center;
	}
	.bg-image-7 {
		background-position: 45% center;
	}
	.bg-image-8 {
		background-position: 30% center;
	}
	.bg-image-9 {
		background-position: 40% center;
	}
	.bg-image-10 {
		background-position: 80% center;
	}
}

/* Container for centered content */
.content {
	text-align: center;
	padding: 20px;
}

h1, h2, a {
	color: var(--outer-color);
	text-shadow: 0 0 3px #000, 0 0 6px #000, 0 0 9px #000, 0 0 12px #000, 0 0 15px #000, 0 0 18px #000, 0 0 21px #000;
	margin: 10px 0;
}

h1 {
	font-size: 3em;
	margin-bottom: 20px;
}

.logo {
	width: 100px;
	height: auto;
	margin: 0 auto 1em auto; /* center and give spacing */
	display: block;
	margin: 0 auto 1em auto;
}

.logo-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	flex-wrap: nowrap;
	margin-bottom: 1em;
}

.logo-row .logo-image {
	width: clamp(70px, 24vw, 100px);
	height: auto;
	display: block;
}

.logo-row .logo {
	margin: 0;
}

.logo-row .logo-link {
	margin: 0;
	display: block;
}

h2 {
	font-size: 2em;
	margin-top: 30px;
	margin-bottom: 10px;
}

a {
	text-decoration: none;
	font-size: 1.2em;
	display: inline-block;
	margin: 5px 20px;
	transition: color 0.3s;
}

a:hover {
	color: #EE82EE;
	/* Light violet */
}

.section h2:hover ~a {
	color: lightgreen;
}

.icon {
	width: 1em; /* Adjusts the width relative to the text size */
	height: 1em; /* Adjusts the height to match the width */
	vertical-align: middle; /* Aligns the icon with the text */
	fill: currentColor; /* Makes the SVG icon inherit the current text color */
	margin-right: 4px;
	filter: drop-shadow(0 0 3px #000) drop-shadow(0 0 6px #000);
}

.impressum {
	position: fixed; /* Fix the element relative to the viewport */
	bottom: 10px;
	right: 10px;
	font-size: 1em;
	z-index: 1000; /* Ensure it appears above other elements */
	transition: color 0.3s;
}

/* Modal overlay */
.modal {
	display: none; /* Hidden by default */
	position: fixed;
	z-index: 1001; /* Above other elements */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto; /* Enable scrolling if needed */
	background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* Modal content box */
.modal-content {
	background-color: #fff;
	margin: 4% auto; /* Centered on the page */
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	border-radius: 4px;
	position: relative;
}

.modal-content h1, .modal-content h2, .modal-content a {
	text-shadow: none;
	color: black;
}

.modal-content a {
	font-size: 1em;
	margin: 0px;
}

.modal-content h2 {
	margin: 0px
}

/* Close button (X) in modal */
.close {
	position: absolute;
	right: 10px;
	top: 10px;
	font-size: 28px;
	font-weight: bold;
	color: #333;
	cursor: pointer;
}

.close:hover {
	color: #000;
}

/* Increase text sizes on big screens */
@media ( min-width : 1200px) {
	h1 {
		font-size: 5em;
	}
	h2 {
		font-size: 3em;
	}
	a {
		font-size: 2em;
	}
	.logo {
		width: 150px;
	}
	.logo-row .logo-image {
		width: clamp(90px, 12vw, 150px);
	}
}

/* On portrait screens, display one link per line */
@media ( orientation : portrait) {
	a {
		display: block;
		margin: 10px 0;
	}
}

@media ( orientation : portrait) and (max-height: 640px) {
	h2 {
		margin-top: 20px;
		margin-bottom: 5px;
	}
	a {
		margin: 5px 0;
	}
}

/* Adjust for very small screens */
@media ( max-width : 600px) {
	h1 {
		font-size: 2em;
	}
	h2 {
		font-size: 1.5em;
	}
	a {
		font-size: 1em;
	}
}

/* Enable scrolling for small landscape screens */
@media ( orientation : landscape) and (max-height: 440px) {
	html, body {
		overflow: auto; /* Enable scrolling */
	}
	/* Remove Flexbox centering to display content from the top */
	body {
		display: block;
	}
	/* Optionally, remove any extra top margin from the main content */
	.content {
		margin-top: 0;
	}

	/* Override the Impressum link's fixed positioning */
	.impressum {
		position: static; /* Now it will follow normal document flow */
		margin-top: 20px; /* Add some spacing from the rest of the content if needed */
		display: block; /* Or block/center as you prefer */
		text-align: right;
	}
}