* {
	box-sizing: border-box
}
html {
	overflow-y: scroll;
}

body, input {
	margin: 0;
	padding: 0;
	font-family: Times, serif;
}
.uppslag {
	text-align: justify;
}
li b {
	-webkit-user-select: all;
	user-select: all;
}
li i {
	/* -webkit-user-select: all;
	user-select: all; */
}
header {
	height: 120px;
	width: 100%;
	background: #38312e;
	position: relative;
	padding-top: 20px;
	border-bottom: 1px solid #2a2522;
}
input[type=text] {
	height: 45px;
	width: 100%;
	border-radius: 7px;
	border: 1px solid #2a2522;
	float: left;
	padding-left: 10px;
	font-size: 30px;
	font-family: serif;
	margin-top: 30px;
	box-shadow: inset 0.5px 0.5px 3px #534a46;
	padding-bottom: 0px;
	//line-height: 0px;
	vertical-align: bottom;
}
input[type=text]:focus {
	box-shadow: inset 1px 1px 5px #534a46;
	letter-spacing: 2px;
	outline: none;
}
input[type=submit] {
	height: 45px;
	//width: 25%;
	width: 100%;
	border-radius: 7px;
	border: 1px solid #2a2522;
	//float: right;
	font-size: 100%;
	font-weight: bold;
	font-family: Century, Georgia, serif;
	margin-top: 30px;
	padding-left: 10px;
	padding-right: 10px;
	background: #d3c9c5;
	color: #38312e;
}
input[type=submit]:selected {
	box-shadow: inset 0 0 5px #000000;
	background: #c8bbb6;
}

hr {
	border: none;
	border-top: 1px solid #ddd;
	margin-top: 20px;
	margin-bottom: 20px;
}

:target {
	border-right: 2px solid #f96;
	background: linear-gradient(to left, #fff5f0 0, #fffbf9 40px, #ffffff 100%);
}

.yverskrift ::selection {
	background: #763b23;
}

::selection {
	background: #e2b19d;
}

td {
    vertical-align: top;
}

h2 {
	font-weight: normal;
	font-family: Century, Georgia, serif;
}
code {
	font-family: Consolas, monospace;
	border: 1px solid #e6e6e6;
	background: #f9f9f9;
	padding-right: 2px;
	padding-left: 2px;
	-webkit-user-select: all;
	user-select: all;
}

.stødlekkøskja {
	/*float: right;
	font-size: smaller;
	padding-left: 1em;
	margin: 2px;
	line-height: 100%;*/
  margin-left: 15px;
  float: right;
  position: relative;
	padding-left: 10px;
  font-size: smaller;
}

.millomrom {
	letter-spacing: 1.5px;
}

.header-innehald {
	width: 500px;
	margin: auto;
	height: 100%;
}
.innehald {
	width: 900px;
	margin: auto;
	height: 100%;
	font-size: 20px;
	line-height: 160%;
}
.yverskrift {
	position: absolute;
	top: 10px;
	left: 10px;
	margin-top: 25px;
}
.yverskrift .namn {
	display: block;
	font-size: 2em;
	margin-top: 0.67em;
	margin-bottom: 0.67em;
	margin-left: 0;
	margin-right: 0;
	font-family: Century, Georgia, serif;
	font-weight: normal;
	line-height: 30px;
	color: #ddd7d5;
}
.yverskrift .namn:hover {
	text-decoration: underline;
	cursor: pointer;
}
.tal {
	font-family: Georgia, serif;
	font-variant-numeric: oldstyle-nums;
}
.aasen {
	position: absolute;
	top: 10px;
	right: 50px;
	height: 100px;
}
.aasen img {
	height: 100%;
}
.aasen img {
	height: 100%;
}
.fyrebokstav {
	font-size: 120%;
}
ol {
	list-style: none;
	counter-reset: rekkjetal;
	margin-left: -10px;
}
ol li {
	counter-increment: rekkjetal;
	position: relative;
}
ol li::before {
	content: counter(rekkjetal) ".";
	font-size: 150%;
	font-family: Times, serif;
	font-variant-numeric: oldstyle-nums;
	color: #a6a6a6;
	position: absolute;
	--size: 32px;
	left: calc(-1 * var(--size) - 10px);
	width: var(--size);
	text-align: right;
	top: -3px;
}
.lekk {
	color: #38312e;
	border-bottom: 1px solid #38312e;
	text-decoration: none;
}
.lekk:hover {
	cursor: pointer;
	border-bottom: 2px solid;
}
.stødlekk, .stødlekk:visited {
	color: #38312e;
	border-bottom: 1px solid #38312e;
	text-decoration: none;
}
.stødlekk:hover {
	cursor: pointer;
	border-bottom: 2px solid;
}
.tekstbolk {
	padding-left: 15px;
	padding-right: 15px;
}

.sideskap {
	color: gray;
}

@media (prefers-color-scheme: dark) {
	body, input {
		background-color: #1e1f23;
		color: #c4c5c9;
	}
	header {
		background: #2a2522;
		border-bottom: 1px solid #63564f;
	}
	input[type=text] {
		border: 1px solid #63564f;
		box-shadow: inset 0.5px 0.5px 3px #0d0d0d;
	}
	input[type=text]:focus {
		box-shadow: inset 1px 1px 5px #0d0d0d;
	}
	input[type=submit] {
		background: #a7938b;
		border: 1px solid #63564f;
	}
	input[type=submit]:active {
		background: #836c63;
	}
	hr {
		border-top: 1px solid #64574f;
	}
	.aasen {
		filter: brightness(80%);
	}
	code {
		border: 1px solid #2f3237;
		background: #232529;
	}
	.lekk {
		color: #744a47;
		border-bottom: 1px solid #744a47;
	}
	.lekk:hover {
		color: #5f3d3a;
		border-bottom: 2px solid #5f3d3a;
	}
	.stødlekk, .stødlekk:visited {
		color: #744a47;
		border-bottom: 1px solid #744a47;
	}
	.stødlekk:hover {
		color: #5f3d3a;
		border-bottom: 2px solid #5f3d3a;
	}
	::selection {
		background: #272d58;
	}
	:target {
		border-right: 2px solid #f96;
		background: linear-gradient(to left, #13201c 0, #15181e 70px, #1e1f23 100%);
	}
}
@media only screen and (max-width:1600px) {
	.yverskrift {
		width: 350px;
		margin-top: 0;
	}
}
@media only screen and (max-width:1200px) {
	header {
		padding-top: 5px;
		height: 130px;
	}
	.yverskrift {
		width: 100%;
		position: relative;
		margin-top: 0;
	}
	.yverskrift .namn {
		line-height: 10px;
		font-size: 20px;
	}
	.aasen {
		top: 15px;
	}
}
@media only screen and (max-width:915px) {
	ol li::before {
		font-size: 170%;
		left: -47px;
		//text-align: right;
	}
}
@media only screen and (max-width:900px) {
	.innehald {
		width: 100%;
	}
}
@media only screen and (max-width:780px) {
	.aasen {
		right: 7px;
	}
}
@media only screen and (max-width:760px) {
	.yverskrift {
		position: relative;
		display: inline-block;
		float: left;
		width: 100%;
	}
	.aasen {
		display: inline-block;
		float: right;
		height: 60px;
		right: 7px;
		top: 7px;
	}
	.header-innehald {
		width: 100%;
		padding-left: 5px;
		padding-right: 5px;
	}
	.innehald {
		width: 100%;
		padding-left: 5px;
		padding-right: 5px;
	}
	input[type=submit] {
		//width: 100%;
	}
}
@media only screen and (max-width:415px) {
	.yverskrift {
		width: 250px;
	}
	.yverskrift .namn {
		line-height: 20px;
		margin-top: 0;
		margin-bottom: 0;
	}
}
@media only screen and (max-width:415px) {
	.yverskrift {
		width: 200px;
	}
}
