/* Personlig CSS – Mindre skjermer */

/* Enheter som ikke kan håndtere "Hover" */
@media (hover: none) {
	main {
		box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
	}
	a {
		color: #009b77;
	}
	.link a {
		background-color: white;
		color: #009b77;
		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;
	}

	/* Mørk modus */
	@media (prefers-color-scheme: dark) {
		.link a {
			background-color: rgb(48, 53, 52);
			box-shadow: 0 3px 3px rgba(0, 0, 0, 0.4), 0 7px 20px rgba(255, 255, 255, 0.15);
		}
	}
}

/* Tabletter – Stående */
@media screen and (max-width: 1200px) and (orientation: portrait) {
	main {
		width: 70vw;
		margin: 15vh auto 0;
	}
}

/* Tabletter – Liggende */
@media screen and (max-width: 1200px) and (orientation: landscape) {
	main {
		width: 70vw;
		margin: 15vh auto 0;
	}
}

/* Tabletter – Spesielle */
@media screen and (max-width: 600px) and (min-height: 800px) and (orientation: portrait) {
	main {
		width: 100vw;
		margin: 13vh 0 0;
		border-radius: 0;
	}
}
@media screen and (max-width: 500px) and (min-height: 1200px) and (orientation: portrait) {
	main {
		width: 100vw;
		margin: 20vh 0 0;
		border-radius: 0;
	}
}

/* Mobiler – Stående */
@media screen and (max-height: 800px) and (orientation: portrait) {
	body {
		font-size: 1.2em;
	}
	h1 {
		font-size: 2em;
	}
	main {
		width: 100vw;
		min-height: 100vh;
		min-height: -webkit-fill-available;
		margin: 0;
		border-radius: 0;
	}
	#topp {
		padding: 2rem 1.5rem;
	}
	#hovedinnhold {
		padding: 2rem 1.5rem;
	}
	#foto-kredit {
		position: relative;
		margin: .5em 0;
		font-size: 0.9em;
		text-align: center;
	}
	#fot{
		position: relative;
		margin: .5em 0;
		font-size: 0.9em;
		text-align: center;
	}
}

/* Mobiler – Liggende */
@media screen and (max-height: 500px) and (orientation: landscape) {
	body {
		font-size: 1.05em;
	}
	main {
		width: 100vw;
		min-height: 100vh;
		margin: 0;
		border-radius: 0;
	}
	h1 {
		font-size: 2.5em;
	}
}
