html {
	scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
	line-height: 1.5;
    background-color: #d80707;
	background: url(img/badbg.svg), linear-gradient( to right, #d80707, #ffffff, #ffffff, #ffffff,#ffffff, #ffffff, #d80707);
	background-position: top;
	background-size: 100%;
	background-repeat: no-repeat;
	padding: 0;
	margin: 0;
	line-height: 1.5;
}
header img {
	display: block;
	margin: 0 auto;
	width: 99%;
}
header h1 {
    font-family: "Libre Bodoni", serif;
    font-optical-sizing: auto;
    font-weight: 300;
	font-style: oblique;
	font-size: 2.5rem;
	text-align: center;
	line-height: 1.2;
	color: white;
	margin: 0;
}
/*
.main-bg {
    background-color: rgba(255, 255, 255, .4);
    color: rgb(33, 33, 33);
}*/
.container {
    margin: 0;
	padding: 0 .5rem;
}

.bodoni {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
}
.bodoni h1 {
	font-family: "Libre Bodoni", serif;
    font-optical-sizing: auto;
    font-weight: 600;
	font-size: 2.5rem;
	text-align: center;
}
blockquote {
	font-weight: 500;
	font-style: italic;
	font-size: 1.5rem;
	border: 8px solid #555;
	border-width: 0 0 0 8px;
	padding-left: 1rem;
}
.col-31, .col-4 {
	display: grid;
	grid-template-columns: 1fr;
}
.col-4 img {
	rotate: 8deg;
	display: block;
	margin: auto;
}
a:link {
	color: rgb(255, 22, 22);
	text-decoration: none;
}
a:visited {
	color: #2482fc;
}
.topnav {
	display: flex;
	flex-direction: row;
	justify-content:space-around;
	margin-top: 1rem;
}
.topnav a {
	display: block;
	padding: .5rem 2rem;
	margin: 0 1rem;
}

footer ul {
	list-style-type: '▷ ';
}
.header-button {
	display: block;
	margin: 0 auto;
	padding: .5rem 1rem;
	background-image: linear-gradient(#ffffff, #2482fc, #ffffff);
	color: white;
	border-radius: 1rem;
	border-color: rgb(195, 209, 253);
	font-size: 1rem;
	border-style: outset;
}
.header-button:hover,
.header-button:active {
	background-image: linear-gradient(#2482fc, #ffffff, #2482fc);
	border-style: inset;
}
.center {
	text-align: center;
}

aside {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
}
aside a {
	display: block;
	line-height: 2;
	padding: 0 1rem;
}
footer {
	padding: 2rem;
}

/* Rétt hlutfall aspect-ratio: 16 / 9   /* 16:9 */

.video {
	width: 100%; 
	margin-top: -2rem;
}

.video iframe {
	width: 96%;             /* ath! hér er hægt að stjórna breiddinni*/
	height: 100%;
	aspect-ratio: 16 / 9;   /* keeps 16:9 */
	display: block;
	border: 0;
	margin: 0 auto;         /* iframe miðjusett í .video */
}
aside audio {
	padding-bottom: 1rem;
	width: 100%;
}
aside iframe {
	border:0;
	border-radius: 1rem;
	margin-bottom: 1rem;
}
/* viðmið ipad lóðrétt - portrait */
@media screen and (min-width:768px){
	.container {
		margin: 0 auto;
		max-width: 80%;
		padding: 0 5rem;
	}
	header h1 {
		font-size: 2.8rem;
	}
	.col-4 {
		grid-template-columns: repeat(2,1fr);
		align-items: start;
	}
	.video {
		margin-top: -4rem;
	}
	.video iframe {
	width: 80%;             /* ath! */
	}
}
/* viðmið ipad lárétt - landscape */
@media screen and (min-width:960px){
	.container {
		margin: 0 auto;
		padding: 0 7rem;
	}
	header h1 {
		font-size: 3.5rem;
	}
	.col-31 {
		grid-template-columns: 3fr 1.5fr;
		column-gap: 4rem;
	}
	.col-4 {
		grid-template-columns: repeat(4,1fr);
	}
	aside {
		position: sticky;
		top: 0px;
	}

	body {
		font-size: 1.2rem;
	}
	.video {
		margin-top: -6.5rem;
	}
	header img {
	width: 80%;
	}
}
@media screen and (min-width:1280px){

	header h1 {
		font-size: 5rem;
		line-height: 1;
	}
	header img {
	width: 70%;
	}
}
@media screen and (min-width:1600px){

	header h1 {
		font-size: 7rem;
		line-height: 1;
	}
	header img {
	width: 60%;
	}
	.col-31 {
		grid-template-columns: 3fr 1.5fr;
		column-gap: 8rem;
	}
}
