@font-face {
	font-family: spaceGrotesk;
	src: url('/static/SpaceGrotesk-Regular.otf') format('opentype');
	font-weight: 400;
}

@font-face {
	font-family: spaceAge;
	src: url('/static/spaceage.ttf');
	font-weight: 400;
}

* {
	box-sizing: border-box;
}

/* Activate dark UI in supported browsers */
:root {
	color-scheme: dark;
}

html {
	height: 100%;
	margin: 0;
	background-color: black;
}

body {
	min-height: 100%;
	display: grid;
	grid-template-rows: auto 1fr auto;
	margin: 0;
	padding: 0;
	color: white;
	font-family: spaceGrotesk;
	font-weight: 400;
}

header {
	position: relative;
	display: flex;
	width: 100%;
	padding: 2rem;
	padding-top: 2rem;
	padding-bottom: 1rem;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	z-index: 100;
}

footer {
	grid-row-start: 3;
	grid-row-end: 4;
	height: 100px;
	width: 100%;
	position: relative;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: space-around;
	align-items: center;
	align-content: center;
	padding-top: 100px;
	margin-bottom: 4rem;
}

main {
	position: relative;
	padding: 1rem;
}

h1 {
	font-family: spaceGrotesk;
	font-weight: 400;
	padding-top: 0;
	margin: 0;
	font-size: 3rem;
}

h2 {
	font-family: spaceAge;
	font-weight: 400;
}

h3 {
	font-family: spaceGrotesk;
	font-weight: 400;
	padding-bottom: 0;
	font-size: 2rem;
	line-height: 100%;
}

h4 {
	font-family: spaceGrotesk;
	font-weight: 400;
	padding-bottom: 0;
}

p {
	font-family: spaceGrotesk;
	font-weight: 400;
	margin-block-start: 0em;
	margin-block-end: 0em;
}

a {
	font-family: spaceGrotesk;
	font-weight: 400;
	text-decoration: none;
	color: white;
}

/* Begin rules specific for index page --> */
html.route-index main,
html.route-lockable_index main {
	display: flex;
	flex-direction: column;
	gap: 60px;
}

html.route-index .no-gap,
html.route-lockable_index .no-gap {
	margin-top: -60px;
}

html.route-index canvas,
html.route-lockable_index canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 1000;
	pointer-events: none;
}

html.route-index .loader,
html.route-lockable_index .loader {
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 1002;
	font-size: 2rem;
}

html.route-index .loader:after,
html.route-lockable_index .loader:after {
	content: '_';
	animation: cursor-blink 1s steps(2) infinite;
}

@keyframes cursor-blink {
	0% {
		opacity: 0;
	}
}
/* End rules specific for index page */

/* Begin rules specific for video player page --> */
html.route-video_player main {
	align-self: center;
}
/* End rules specific for video player page */

/* Begin rules specific for policy --> */
html.route-policy p {
	margin-block-start: 0em;
	margin-block-end: 1em;
}
/* End rules specific for policy */

form {
	display: flex;
	flex-direction: column;
	padding-top: 40px;
}

input {
	all: unset;
	cursor: pointer;
	margin-top: 0.5em;
	padding: 0.6em 1.2em;
	font-family: spaceGrotesk;
	font-weight: 400;
	font-size: 1em;
	text-decoration: none;
	text-align: center;
	border-radius: 100vw; /* Hack to get pill-shape when element height is unknown */
	color: black;
	background-color: white;
}

input:focus {
	outline: orange 5px auto;
}

.button {
	padding: 0.6em 1.2em;
	background-color: #FC5D2C;
	color: white;
	border-radius: 100vw; /* Hack to get pill-shape when element height is unknown */
	margin-top: 0.5em;
	font-size: 1em;
}

.buttonNew {
	padding: 0.6em 1.2em;
	background-color: #000000;
	color: white;
	border-radius: 100vw; /* Hack to get pill-shape when element height is unknown */
	margin-top: 2em;
	font-size: 1.4em;
}

.button[disabled] {
	pointer-events: none;
	opacity: 0.6;
}

.login {
	background-color: #48A296;
}

.button:hover {
	opacity: 0.9;
	text-decoration: none;
}

.buttonNew:hover {
	opacity: 0.74;
	text-decoration: none;
}

a:active {
	color: white;
}

a:hover {
	text-decoration: underline;
}

/* Prevent iOS Safari from styling auto-detected addresses/phone numbers as links */
a[x-apple-data-detectors] {
	color: inherit !important;
	text-decoration: none !important;
}

img {
	max-height: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: cover;
}

header img {
	height: 40px;
	width: auto;
	position: relative;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

header a {
	height: 40px;
	width: auto;
	display: block;
}

footer img {
	height: 50px;
	width: auto;
}

.video-section {
	position: relative;
	min-height: calc(100vh - 20rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.video-section video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	object-fit: cover;
}

.vipps {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding-top: 6rem;
	padding-bottom: 6rem;
	font-size: 1rem;
}

.vipps > h3 {
	line-height: 0;
}

.info {
	height: auto;
	width: 100%;
	position: relative;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	align-content: center;
}

.fetching {
	text-align: right;
}

.mother {
	height: auto;
	width: 100%;
	position: relative;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.mother > img {
	min-width: 50px;
	max-width: 300px;
}

.mother > h2 {
	text-decoration: underline;
}

.info-section {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr 1fr;
	place-items: center;
}

.info-section figure {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.info-section img {
	width: 100%;
	height: auto;
}

.info-section figcaption {
	padding-bottom: 10px;
}

.info-section-text {
	min-width: 250px;
	padding: 80px;
}

.info-section-text h3 {
	max-width: 800px;
}

@media only screen and (min-width: 1000px) {
	.info-section {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr;
	}

	.info-section.desktop-reverse .info-section-text {
		grid-column: 1;
		grid-row: 1;
	}
}

.social {
	height: 100%;
	width: 10%;
	position: relative;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.social img {
	height: 30px;
	width: auto;
	padding: 6px;
}

footer > a {
	height: 20%;
	text-align: center;
	width: auto;
}

#aparent {
	height: 40%;
}

.policy-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.policy-block {
	width: 100%;
	max-width: 600px;
}

.credits-section h1 {
	text-align: center;
	margin-top: 6rem;
	margin-bottom: 3rem;
}

.credits-section ul {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.credits-section li {
	width: 100%;
	max-width: 600px;
}

.credits-list-name {
	width: 100%;
	display: flex;
	justify-content: space-between;
}

ul {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	font-size: 1.4rem;
	padding: 0px;
	width: 100%;
	justify-content: space-between;
}

li {
	display: flex;
	flex-direction: column;
	width: 550px;
	margin-bottom: 10px;
	padding: 0px;
	padding-right: 40px;
}

.gray {
	color: #848484;
	padding: 0px;
	margin: 0px;
	margin-bottom: 10px;
	margin-top: 20px
}

li > p {
	margin-bottom: 4px;
	margin-block-start: 0em;
	margin-block-end: 0em;
}

@media only screen and (max-width: 1000px) {
	p {
		padding-top: 30px;
		padding-bottom: 30px;
		font-size: 2rem;
	}

	header {
		padding-top: 4rem;
	}

	header img {
		height: 100px;
		width: auto;
	}

	footer {
		flex-direction: row;
		height: auto;
		justify-content: center;
		align-items: center;
		margin-bottom: 4rem;
	}

	footer > div {
		width: 100%;
	}

	footer {
		gap: 4rem;
		text-align: center;
	}

	footer > div > img {
		height: 100px;
		width: auto;
	}

	footer > div > a {
		padding: 0;
		font-size: 2rem;
	}

	footer > div > p {
		height: 30px;
	}

	.social {
		height: auto;
		width: 80%;
	}

	.social img {
		height: 80px;
		width: auto;
	}

	.mother {
		flex-direction: column;
	}

	.mother > img {
		min-width: 700px;
	}

	.mother > a {
		font-size: 2.5rem;
	}

	.video-section {
		min-height: 80vh;
	}

	h1 {
		font-size: 3rem;
		line-height: 110%;
		text-align: center;
	}

	header a {
		height: 80px;
	}

	.vipps {
		font-size: 3rem;
	}

	.hidden-small {
		display: none;
	}

	li {
		width: 100%;
	}

	/* Venstrestill credits-kolonnen på mobil, med margin på begge sider */
	.credits-section ul {
		align-items: flex-start;
		padding-left: 2rem;
		padding-right: 2rem;
	}

	/* Fjern 600px-grensen på mobil, så oppføringene (og cast-navnene)
	   bruker full bredde ut til marginen i stedet for å stoppe midtveis */
	.credits-section li {
		max-width: none;
	}

	/* Stram inn linjeavstanden på credits-navn så mobil matcher PC (den
	   globale 30px-luften på p gjør mobil mye mer spredt enn desktop) */
	.credits-section p {
		padding-top: 0;
		padding-bottom: 0;
	}

	/* Cast: karakter og navn på samme linje, i to justerte kolonner med
	   tydelig mellomrom (i stedet for space-between som spriker/jammer).
	   Lange navn wrapper i sin egen kolonne. */
	.credits-list-name {
		gap: 1em;
		align-items: baseline;
	}

	.credits-list-name p {
		padding-top: 6px;
		padding-bottom: 6px;
	}

	.credits-list-name p:first-child {
		flex: 0 0 9em;
	}

	.credits-list-name p:last-child {
		flex: 1;
	}

	/* Cookie-banner (TermsFeed): full skjermbredde nederst på mobil, i
	   stedet for en liten boks i hjørnet */
	.termsfeed-com---nb-simple {
		max-width: 100% !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		border-radius: 0 !important;
	}

	/* Større tekst og knapper i cookie-banneret på mobil (standard er alt
	   for smått mot resten av siden) — ingen fargeendring */
	.cc-nb-title {
		font-size: 2rem !important;
	}

	.cc-nb-text {
		font-size: 1.5rem !important;
	}

	.cc-nb-okagree,
	.cc-nb-reject,
	.cc-nb-changep {
		font-size: 1.5rem !important;
		padding: 0.7em 1.4em !important;
	}
}
