/* Standardisering */
[hidden] {
	display: none;
}
svg:not(:root) {
	overflow: hidden;
}
/* Personlig CSS */
body {
	min-width: 100vw;
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, "Roboto", sans-serif;
	font-weight: 400;
	line-height: 1.5em;
	background-color: #f3f8fb;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased !important;
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-position: center;
	-moz-background-size: cover;
	background-size: cover;
	background-image: url(../images/bg-acc.jpg);
}
.clear {
	clear: both;
}
.no-animation {
	transform: none !important;
}
*::selection {
	background: rgba(44, 231, 188, 0.5);
	color: rgb(20, 80, 66);
}

/* Transisjon */
a,
a:hover {
	transition: color 400ms ease-in-out, background-color 400ms ease-in-out, box-shadow 400ms ease-in-out;
}

/* Tekst */
p {
	margin: 0 0 0.7em 0;
}
b,
strong {
	font-weight: 600;
}
a {
	color: black;
	text-decoration: none;
}
a:hover,
a:focus {
	color: #009b77;
}
h1 {
	margin: 0;
	font-size: 2.5em;
	line-height: 1.2em;
	font-weight: 600;
}
h2 {
	margin: 0 0 0.3em;
	font-size: 1.5em;
	line-height: 1.2em;
	font-weight: 400;
}

/* Hovedcontainer */
main {
	display: block;
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: scroll;
	width: 45vw;
	max-width: calc(1960px - 45vw);
	min-height: 33vh;
	margin: calc((100vh / 3) - (33vh / 2)) auto 0;
	border-radius: 3.2rem;
	box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
	transition: 0.2s box-shadow ease-in, 0.3s transform ease-in;
}
main:hover {
	box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}
main.full {
	height: -webkit-fill-available;
	margin-top: 0;
	margin-bottom: 0;
	border-radius: 0;
}

#topp {
	color: white;
	padding: 2rem 3rem;
	background-color: rgba(1, 133, 102, 0.9);
}
#hovedinnhold {
	min-height: 25vh;
	padding: 5vh 3rem;
	color: black;
	background-color: rgba(229, 238, 247, 0.87);
}

/* When backdrop-filter "blur" works */
@supports (-webkit-backdrop-filter: blur(15px)) or (backdrop-filter: blur(15px)) {
	#topp {
		-webkit-backdrop-filter: saturate(200%) blur(8px) !important;
		backdrop-filter: saturate(200%) blur(8px) !important;
		background-color: rgba(0, 155, 119, 0.75);
	}
	#hovedinnhold {
		-webkit-backdrop-filter: saturate(200%) blur(8px) !important;
		backdrop-filter: saturate(200%) blur(8px) !important;
		background-color: rgba(255, 255, 255, 0.75);
	}
}
/* Hovedinnhold */

#topp .logo {
	display: inline-block;
	width: 10rem;
	margin-top: 0.2em;
	margin-left: -0.2em;
}
#topp svg {
	vertical-align: middle;
}
.link a {
	display: inline-block;
	width: auto;
	margin: 0.9em 0.7em 0 0;
	padding: 0.4em 0.9em;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 0.8em;
	font-weight: 400;
	color: black;
	border-radius: 2em;
	background-color: white;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}
.link a span {
	display: inline-block;
	height: 100%;
}
.link a span.logo {
	width: 0.9rem;
	padding-right: 0.2em;
}
.link a span.logo svg {
	vertical-align: middle;
}
.link a span.label {
	vertical-align: middle;
	font-weight: 500;
}
.link a:hover,
.link a:focus {
	background-color: #009b77;
	color: white;
	box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px,
		rgba(0, 0, 0, 0.07) 0px 16px 16px;
}

#sosial {
	display: block;
	width: fit-content;
	margin: 1em 0 2.5em;
}
#sosial a {
	display: block;
	height: 2.2em;
	margin: 0.7em 0 0;
}
#sosial a span.label {
	display: inline-block;
	vertical-align: middle;
}
#sosial a span.logo {
	display: inline-block;
	width: 2.2em;
	height: 2.2em;
	margin-right: 0.5em;
	vertical-align: middle;
}

#foto-kredit {
	display: block;
	position: absolute;
	bottom: 0;
	right: 0;
	width: auto;
	margin: 0 3rem 5vh 0;
	text-align: right;
}
#foto-kredit a {
	margin-right: 0;
}
#foto-kredit a span.logo {
	display: inline-block;
}
#foto-kredit a span.label {
	display: inline;
}

#fot {
	position: absolute;
	bottom: 0;
	margin: 0 0 5vh;
}
#fot a {
	font-size: 0.7em;
}

/* Mørk modus */
@media (prefers-color-scheme: dark) {
	body {
		background-color: #777d7e;
		background-image: url(../images/bg-acc-dm.jpg);
	}
	*::selection {
		background: rgba(1, 73, 56, 0.5);
		color: rgb(44, 231, 188);
	}
	a {
		color: white;
	}
	a:hover,
	a:focus {
		color: #009b77;
	}
	#hovedinnhold {
		color: white;
		background-color: rgba(20, 22, 22, 0.87);
	}

	/* When backdrop-filter "blur" works */
	@supports (-webkit-backdrop-filter: blur(15px)) or (backdrop-filter: blur(15px)) {
		#hovedinnhold {
			-webkit-backdrop-filter: saturate(200%) blur(8px) !important;
			backdrop-filter: saturate(200%) blur(8px) !important;
			background-color: rgba(0, 0, 0, 0.75);
		}
	}
	.link a {
		color: white;
		background-color: rgb(48, 53, 52);
		box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	}
	.link a:hover,
	.link a:focus {
		background-color: #009b77;
		box-shadow: 0 3px 3px rgba(0, 0, 0, 0.4), 0 7px 20px rgba(255, 255, 255, 0.15);
	}
}
