html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	overscroll-behavior: none;
	overflow-x: hidden;
}

input,
textarea,
button,
select,
a {
	-webkit-tap-highlight-color: transparent;
}

ul {
	margin-block-start: 0;
}

/* || HEADER */

.header {
	position: fixed;
	display: flex;
	width: 100%;
	top: 0;
	left: 0;
	justify-content: space-between;
	align-items: center;
	box-sizing: border-box;
	z-index: 1002;
}

.header-left {
	display: flex;
	align-items: center;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

.tribunal-logo {
	width: 220px;
	height: auto;
	margin-right: 20px;
}

.hamburger-menu {
	display: none;
	flex-direction: column;
	cursor: pointer;
	background: none;
	border: none;
	padding: 5px;
	z-index: 1001;
}

.hamburger-line {
	width: 25px;
	height: 3px;
	background-color: #f4f4f4;
	margin: 3px 0;
	transition: 0.3s;
}

/* Hamburger to X transformation */
.hamburger-menu.active .hamburger-line:nth-child(1) {
	transform: rotate(-45deg) translate(-5px, 7.5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
	opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
	transform: rotate(45deg) translate(-5px, -7.5px);
}

.mobile-nav {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 400px;
	background: linear-gradient(to bottom, #002abd80, rgba(112, 135, 218, 0));
	flex-direction: column;
	padding: 80px 0 15px 0;
	z-index: 999;
}

.mobile-nav.active {
	display: flex;
}

.mobile-nav button {
	margin: 5px 20px;
	text-align: left;
	position: relative;
	z-index: 1001;
	font-family: 'Atkinson Hyperlegible Mono', sans-serif;
	background-color: transparent;
	border: none;
	color: #f4f4f4;
}

.mobile-nav {
	background-color: transparent;
	border: none;
	color: #f4f4f4;
}

#lang-button {
	font-family: 'Atkinson Hyperlegible Mono', sans-serif;
	z-index: 1001;
	border: none;
	border-radius: 7px;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: 10px;
	font-weight: bold;
	font-size: 14px;
	cursor: pointer;
}

#lang-button.english {
	background: linear-gradient(to right, #f4f4f444 50%, white 50%);
}

#lang-button.german {
	background: linear-gradient(to right, white 50%, #f4f4f444 50%);
}

.lang-button-text-selected {
	color: #002abd;
}

.lang-button-text-unselected {
	color: #f4f4f469;
}

.button-link {
	text-decoration: none;
}

.black-header-button {
	font-family: 'Atkinson Hyperlegible Mono', sans-serif;
	background-color: black;
	color: #f4f4f4;
	border: 2px solid #f4f4f4;
	border-radius: 5px;
	padding: 1px 8px;
	cursor: pointer;
	font-size: 14px;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 5px;
}

.white-button {
	font-family: 'Atkinson Hyperlegible Mono', sans-serif;
	background-color: transparent;
	color: #f4f4f4;
	border: 2px solid #f4f4f4;
	border-radius: 5px;
	padding: 1px 8px;
	cursor: pointer;
	font-size: 14px;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 5px;
}

/* || BACKGROUNDS */

.backgrounds {
	position: absolute;
	top: 0px;
	pointer-events: none;
	z-index: -1;
	width: 100%;
	display: flex;
	justify-content: center;
}

.solid-background {
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: #5b71cb;
}

.background-illustrations {
	position: absolute;
	top: 0px;
	display: flex;
	justify-content: center;
	width: 100%;
	overflow-x: clip;
}

#background-gradient-1 {
	position: absolute;
	height: 800px;
	width: 100vw;

	background-color: #bdb1ff;
}

.background-illustration-largevertical {
	position: absolute;
	height: 3000px;
}

#bg-largevertical-1 {
	top: -300px;
}

#bg-largevertical-2 {
	top: 1700px;
}

.background-ink {
	position: relative;
}

.background-ink::before {
	content: '';
	position: absolute;

	/* full width of viewport */
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;

	/* match the row height */
	top: -600px;
	bottom: -600px;

	background-image: url('./images/BackgroundInkBlobsSmallHorizontal.png');
	background-position: center;

	z-index: -1;
	pointer-events: none;
}

/* || PAGE */

.title-image-desktop {
	margin-top: -200px;
	user-select: none;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	pointer-events: none;
}

.title-image-mobile {
	position: relative;
	display: block;
	width: min(180vw, 740px);
	height: auto;
	left: 50%;
	transform: translateX(calc(-50% + 8vw));
	object-fit: cover;
	margin-top: 60px;
}

.store-badges-container {
	display: flex;
	justify-content: center;
	column-gap: 10px;
}

.storeBadge {
	height: 40px;
	cursor: pointer;
}

h1 {
	font-family: 'Tilt Warp', sans-serif;
	color: #f4f4f4;
	text-align: center;
	letter-spacing: 2px;
	font-weight: normal;
	font-size: 45px;
	padding: 0px 30px;
	line-height: 100%;
}

.grid-container {
	position: relative;
}

.page-grid {
	display: grid;
	justify-content: center;
	align-items: center;
	column-gap: 50px;
	row-gap: 50px;
	margin-top: 50px;
}

.grid-horizontally-centered {
	justify-content: center;
	display: grid;
}

h2 {
	position: relative;
	font-family: 'Tilt Warp', sans-serif;
	color: #f4f4f4;
	font-weight: 500;
	font-size: 30px;
	letter-spacing: 1px;
	background: black;
	padding: 5px 20px;
	width: fit-content;
	max-width: 90vw;
	z-index: 1;
	text-align: center;
	clip-path: polygon(
		0% 0%,
		/* top-left corner offset */ 100% 0%,
		/* top-right */ 99.5% 100%,
		/* bottom-right */ 1% 100% /* bottom-left */
	);
}

.h2-smaller {
	font-family: 'Atkinson Hyperlegible Mono', sans-serif;
	font-weight: bolder;
	font-size: 17px;
	letter-spacing: 0;
	max-width: 360px;
	width: fit-content;
	padding: 10px 30px;
	text-align: left;
}

h3 {
	font-family: 'Atkinson Hyperlegible Mono', sans-serif;
	color: #002abd;
	background: #f4f4f4;
	font-weight: bold;
	font-size: 17px;
	width: max-content;
	max-width: 70vw;
	padding: 8px 20px;
	transform: rotate(2deg);
	clip-path: polygon(
		0% 0%,
		/* top-left corner offset */ 100% 0%,
		/* top-right */ 99% 90%,
		/* bottom-right */ 2% 100% /* bottom-left */
	);
}

.title-and-text-container {
	z-index: 1;
}

.textbox-subtitle {
	position: relative;
	margin-bottom: -30px;
	margin-left: -40px;
	z-index: 0;
	left: 30%;
	transform: translateX(-50%);
}

.textbox {
	font-family: 'Atkinson Hyperlegible Mono', sans-serif;
	color: #f4f4f4;
	font-size: 16px;
	padding-left: 15px;
}

.black-text {
	color: black;
}

.video {
	width: 100%;
	height: auto;
	z-index: 1;
}

.content-image {
	width: 100%;
	max-width: 80vw;
}

.aline-image-desktop {
	width: 100%;
}

#palace-image-desktop {
	justify-self: end;
	margin-right: -80px;
	margin-top: -50px;
	height: 100%;
}

#trailer-video {
	z-index: 1;
	aspect-ratio: 16 / 9;
}

#play-now-row {
	z-index: 0;
}

.centered-image-wrapper {
	display: flex;
	justify-content: center;
	width: 100%;
}

.centered-image-wrapper img {
	flex: 0 0 auto;
	max-width: none;
}

#aline-sketch-portrait-mobile {
	display: block;
	margin: -270px auto -70px auto;
}

#aline-row {
	position: relative;
	margin: 350px 0px 250px 0px;
}

#aline-row::before {
	content: '';
	position: absolute;
	/* full width of viewport */
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;

	/* match the row height */
	top: -200px;
	bottom: -200px;

	background: linear-gradient(
		to bottom,
		transparent,
		#bdb1ff 10%,
		#bdb1ff 90%,
		transparent
	);

	z-index: -1;
	pointer-events: none;
}

#aline-text-1,
#aline-text-2 {
	padding: 0;
}

#aline-body-desktop {
	width: 100%;
	min-width: 500px;
	height: fit-content;
	align-self: end;
}

.aline-picture-container {
	position: relative;
	display: flex;
}

#aline-portrait-mobile {
	width: 60vw;
	height: auto;
	margin: 20px auto;
	display: flex;
	justify-self: center;
}

#aline-portrait-desktop {
	position: absolute;
	bottom: 0;
	right: -40px;
	width: min(336px, 30vw);
	height: auto;
}

.column-break {
	break-before: column;
	display: block;
	height: 0;
}

#chapter-titles-container {
	position: relative;
	top: -30px;
	margin-bottom: -30px;
	display: flex;
	flex-direction: row;
	z-index: -2;
}

.chapter-title,
#addon-title {
	font-family: 'Atkinson Hyperlegible Mono', sans-serif;
	font-size: 16px;
	border: none;
	font-weight: bolder;
	display: inline-flex;
	align-items: start;
	color: black;
}

.chapter-title {
	background-color: #7d97cf;
	clip-path: polygon(
		3% 0%,
		/* top-left corner offset */ 97% 5%,
		/* top-right */ 100% 100%,
		/* bottom-right */ 0% 100% /* bottom-left */
	);
	transform: rotate(1deg);
	height: 50px;
	cursor: pointer;
}

.focused-chapter-title {
	background-color: #aac5ff;
	font-size: 18px;
	position: relative;
	height: 55px;
	top: -10px;
	cursor: default;
}

#chapter-content,
#addon-content {
	position: relative;
	font-family: 'Atkinson Hyperlegible Mono', sans-serif;
	font-size: 16px;
	z-index: 1;
}

#chapter-content {
	padding-bottom: 150px;
	margin-top: 40px;
}

#chapter-content::before,
#addon-content::before {
	content: '';
	position: absolute;

	/* full width of viewport */
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;

	/* match the row height */
	top: 0px;
	bottom: 0px;

	background-position: center;

	z-index: -1;
	pointer-events: none;
}

#chapter-content::before {
	background-color: #aac5ff;
}

.chapter-head {
	font-family: 'Tilt Warp', sans-serif;
	font-size: 23px;
	border-radius: 10px;
	border: 4px solid black;
	padding: 10px 20px;
	width: fit-content;
	grid-column: span 2;
	justify-self: center;
	margin: 20px 0px 40px 0px;
}

#addon-content {
	margin-top: -120px;
}

#addon-content::before {
	background-color: #fbffc0;
}

#addon-title {
	background-color: #fbffc0;
	clip-path: polygon(
		4% 0%,
		/* top-left corner offset */ 98% 2%,
		/* top-right */ 100% 100%,
		/* bottom-right */ 0% 100% /* bottom-left */
	);
	position: relative;
	transform: rotate(-1deg);
	height: 60px;
	padding: 8px 20px;
	top: -10px;
}

.addon-text {
	padding: 20px 0px 60px 0px;
}

#download-presskit-row {
	padding-top: 50px;
	z-index: 0;
	display: grid;
	justify-items: center;
}

#memorium-row {
	position: relative;
	padding-bottom: 70px;
}

#memorium-row::before {
	content: '';
	position: absolute;
	/* full width of viewport */
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;

	/* match the row height */
	top: -200px;
	bottom: -200px;

	background: linear-gradient(
		to bottom,
		transparent,
		#bdb1ff 10%,
		#bdb1ff 90%,
		transparent
	);

	z-index: -1;
	pointer-events: none;
}

.logo-leiste {
	background-color: #f4f4f4;
	display: grid;
	justify-items: center;
	padding: 70px 0;
	row-gap: 20px;
}

.logo {
	max-width: 100vw;
}

#footer {
	background-color: #002abd;
	width: 100vw;
	height: 90px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #f4f4f4;
	gap: 10px;
	font-family: 'Atkinson Hyperlegible Mono', sans-serif;
	font-size: 12px;
}

.footer-link {
	color: #f4f4f4;
	text-decoration: none;
}

/* || DESKTOP STYLES */

@media (min-width: 850px) {
	.mobile-only {
		display: none !important;
	}

	.header {
		padding: 40px min(60px, 1vw) 0 min(60px, 1vw);
	}

	.header-right {
		display: flex !important;
	}

	.top-subtitle {
		margin-top: -150px;
	}

	.page-grid {
		grid-template-columns: repeat(2, min(40vw, 520px));
	}

	.two-column {
		grid-column: span 2;
		justify-self: center;
		width: 100%;
	}

	.two-column.video {
		margin: 60px 0;
	}

	#trial-text-container {
		margin-top: 150px;
	}

	#aline-row {
		display: grid;
		grid-template-columns: repeat(2, min(40vw, 520px));
		column-gap: 50px;
	}

	#sources-row {
		display: grid;
		grid-template-columns: repeat(2, min(40vw, 520px));
		grid-column-gap: 50px;
	}

	#chapter-titles-container {
		gap: 20px;
	}

	.chapter-title {
		padding: 8px 10px;
	}

	.focused-chapter-title {
		padding: 15px 20px 10px 20px;
	}

	#chapter-content::before {
		clip-path: polygon(
			0% 0%,
			/* top-left corner offset */ 100% 2%,
			/* top-right */ 100% 100%,
			/* bottom-right */ 0% 100% /* bottom-left */
		);
	}

	.chapter-text,
	.addon-text {
		max-height: 600px;
		column-width: min(40vw, 520px);
		column-gap: 50px;
	}

	#addon-content::before {
		clip-path: polygon(
			0% 5%,
			/* top-left corner offset */ 100% 0%,
			/* top-right */ 100% 95%,
			/* bottom-right */ 0% 100% /* bottom-left */
		);
	}

	#download-title {
		padding: 0px;
	}

	#download-presskit-row {
		margin-bottom: 250px;
	}

	#memorium-row {
		display: grid;
		grid-template-columns: repeat(2, min(40vw, 520px));
		grid-column-gap: 50px;
		margin-top: 100px;
	}

	#memorium-image {
		margin-top: 30px;
	}

	.logo-leiste {
		grid-template-columns: repeat(2, min(40vw, 520px));
		justify-content: center;
		align-items: center;
	}

	#logo-ph {
		grid-column: 1;
		align-self: end;
	}

	#logo-memorium {
		grid-column: 1;
	}

	#logo-bildungsagenda {
		grid-row: 1 / span 2;
		grid-column: 2;
	}
}

/* || MOBILE STYLES */

@media (max-width: 849px) {
	body {
		overflow-x: hidden;
	}

	.header {
		padding: 10px 15px;
		width: 100vw;
	}

	.header-right .black-header-button {
		display: none;
	}

	.tribunal-logo {
		display: none;
	}

	.hamburger-menu {
		display: flex;
	}

	.presskit-mobile {
		display: flex;
		margin: 10px 0 10px 0px;
		position: absolute;
		z-index: 1003;
		left: 50%;
		transform: translateX(-50%);
	}

	#arrow-up {
		position: fixed;
		bottom: 60px;
		right: 20px;
		width: 60px;
		height: auto;
		z-index: 1000;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease;
	}

	#arrow-up.visible {
		opacity: 1;
		pointer-events: auto;
	}

	.top-subtitle {
		margin-top: -50px;
	}

	.textbox-subtitle {
		left: 50%;
	}

	.page-grid {
		grid-template-columns: 80vw;
		overflow: hidden;
	}

	.desktop-only {
		display: none;
	}

	h2 {
		justify-self: center;
	}

	.video {
		width: 90vw;
		justify-self: center;
	}

	#memorium-image {
		margin-bottom: 30px;
	}

	#sources-row {
		margin-top: -170px;
		margin-bottom: 60px;
		padding-top: 0px;
	}

	#chapter-titles-container {
		top: -35px;
		overflow-x: scroll;
		gap: 5px;
		margin-left: -39px;
		margin-right: -39px;
		padding-left: 20px;
		padding-right: 20px;
	}

	.chapter-title {
		width: max-content;
		text-wrap: nowrap;
		padding: 5px 10px;
		margin: 5px 0px;
	}

	.focused-chapter-title {
		padding: 10px 10px 10px 10px;
	}

	.chapter-head {
		text-align: center;
	}

	#addon-title {
		width: max-content;
		left: -20px;
		top: -40px;
	}

	.addon-text {
		padding-top: 0;
		padding-left: 20px;
	}

	#download-presskit-row {
		margin-bottom: 200px;
	}

	.background-ink::before {
		background-size: 450vw;
		background-repeat: no-repeat;
	}
}
