/*
 Theme Name:   HVE
 Theme URI:    http://www.hve.is/
 Description:  Vefur Heilbrigðisstofnunar Akraness
 Author:       Bjarni Þór Óafsson
 Author URI:   http://example.com
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:     	responsive-layout
 Text Domain:  hve
*/
@media screen and (min-width: 801px) and (max-width: 2800px) {
-body:after { position: fixed; top: 0; left: 0; height: 24px;  background: rgba(255,255,0,0.5); z-index: 44; content: "Full width"; padding-left: 8px; padding-right:8px}
}

@media screen and (min-width: 280px) and (max-width: 800px) {
-body:after { position: fixed; bottom: 0; left: 0; height: 24px; width :200px; background: rgba(255,0,0,0.5); z-index: 44; content: "200/800"}
}

html { overflow-y: scroll; }
a:hover { text-decoration: none; }
body { background-color: #ecece8; padding: 0px 13px 13px 13px; }

ul { list-style-type: none}
ul a { line-height: 34px; font-size: 16px; color: #7b7b7b; font-weight: bold }

::selection { background: #df1f26; /* WebKit/Blink Browsers */ color: white; }

::-moz-selection { background: #df1f26; /* Gecko Browsers */ color: white; }


.hve-nav-aspect-ratio {
	position: relative;
	padding-top: 88.625%;
	width: 100%;
}

.menu-starfsstodvar-container {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
#menu-starfsstodvar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0px;
	margin: 0px;
}

#menu-starfsstodvar a {
 color: white;
}

.button-a-common a {
	margin-bottom: 0;
	line-height: 1.5;
	color: #fff;
	background-color: #df1f26;
	height: 27px;
	font-weight: 700;
	padding: 9px 24px 0;
	border-radius: 0;
	border: 0;
	text-transform: uppercase;
	font-size: 12px;
	border-radius: 5px;
	display: inline-block;
	vertical-align: middle;
	-webkit-transition: all 0.3s ease-in;
	-o-transition: all 0.3s ease-in;
	transition: all 0.3s ease-in;
	text-decoration: none;
	font-family: "PT Sans", "Arial", !serif !important;
	font-weight: bold;
	letter-spacing: 1px;
}

.button-a-common:hover a {
background-color: #b2191e;
border-color: #931419;
}


.frettir-landlaeknir {
 list-style-type: none;
 padding-left: 0px;
 color: #656565;
 font-size: 13px;
}

.frettir-landlaeknir li {
	margin-bottom: 20px;
}

.frettir-landlaeknir a {
	text-decoration: none;
	font-size: 14px;
}

.frettir-landlaeknir a:hover {
	color: #e92930;
}

.hve-wrapper {
 max-width: 799px;
 margin: 0 auto;
}

.hve-header {
 max-width: 799px;
 margin: 0 auto;
}


.hve-nav-menu {
	background-image: url('https://ytri.svfa.is/wp-content/uploads/2018/06/hve_adalvalmynd-2.png');
	background-size: contain;
	background-repeat: no-repeat;
	position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
}

li[class^="hve-starfsstodvar-menu-"] {
	position: absolute;
	background: rgba(28, 88, 147, 0.9);
	border-radius: 4px;
	-webkit-transition: all 0.3s ease-in;
-o-transition: all 0.3s ease-in;
transition: all 0.3s ease-in;
}

li:hover[class^="hve-starfsstodvar-menu-"] {
	background: rgba(0, 60, 119, 0.9);
	-webkit-transition: all 0.3s ease-in;
-o-transition: all 0.3s ease-in;
transition: all 0.3s ease-in;
}

li.fela[class^="hve-starfsstodvar-menu-"] {
   	display: none;
}

li[class^="hve-starfsstodvar-menu-"] a {
	text-decoration: none;
	padding: 0 !important;
	line-height: 25px;
	padding-left: 6px !important;
	padding-right: 6px !important;
	font-weight: normal;
	letter-spacing: 1px;
	font-size: 12px;
}

.hve-starfsstodvar-menu-akranes{
top: 89%;
left: 33%;
}

.hve-starfsstodvar-menu-akranes:after{
top: 1000%;
left: 33%;
content: "";
}

.hve-starfsstodvar-menu-borgarnes{
top: 70%;
left: 60%;
}

.hve-starfsstodvar-menu-grundarfjordur{
top: 54%;
left: 28%;
}

.hve-starfsstodvar-menu-stykkisholmur{
top: 38%;
left: 26%;
}

.hve-starfsstodvar-menu-olafsvik{
top: 46%;
left: 2%;
}

.hve-starfsstodvar-menu-budardalur{
top: 38%;
left: 64%;
}

.hve-starfsstodvar-menu-hvammstangi{
top: 19%;
right: 2%;
}

.hve-starfsstodvar-menu-holmavik {
top: 3.5%;
left: 57%;
}

@supports (display: grid) {
 
 @media only screen and (min-width: 800px) {



.hve-frettir-einkennismynd {
	margin: 0px;
	position: absolute;
	right: 0px;
	top: 0px;
	width: 50%;
	overflow: hidden;
	bottom: 0px;
}

.hve-header {
 max-width: none;
 margin: 0 auto;
}

.hve-frettir-einkennismynd img {
	width: 100%;
	height: auto;

}

.hve-frettir-efni {
	margin-top: 0px;
	margin: 0px;
	position: absolute;
	left: 0px;
	top: 0px;
	width: 50%;
	overflow: hidden;
	bottom: 0px;
	background: white;
}

.hve-frettir-efni-wrapper {
	padding: 25px;
}

.hve-frettir-efni .button-a-common {
position: absolute;
bottom: 26px;
left: 29px;
}

.hve-wrapper {
 max-width: 1180px; 
 margin: 0 auto;
margin-top: 170px;
}

#page {
grid-gap: 30px;
  display: grid;
  width: 100%;
  height: 810px;
  grid-template-areas: "nav  main"
                       "nav  main";
  grid-template-rows: 50px 1fr 30px;
  grid-template-columns: 360px 1fr;
}

#page > header {
  grid-area: head;
  background-color: #8ca0ff;
}

#page > nav {
  grid-area: nav;
  background-color: #fff;overflow: hidden;
}

#page > main {
  grid-area: main;
  background-color: transparent;
}

#page > footer {
  grid-area: foot;
  background-color: #8cffa0;
}

#page2 {
grid-gap: 30px;
  margin-top: -35px;
  display: grid;
  width: 100%;
  min-height: 375px;
  grid-template-areas: "f1 f1 f2 f2 f3 f3";
grid-auto-columns: 1fr;}

#page2 > aside.f1 {
  grid-area: f1;
  background-color: red;
}

#page2 > aside.f2 {
  grid-area: f2;
  background-color: #ffa08c;
}

#page2 > aside.f3 {
  grid-area: f3;
  background-color: #ffff64;
}
.menu-boxes {
grid-gap: 30px;background: red;
  display: grid;
  width: 100%;
  height: 810px;
  grid-template-areas: "box-1 box-2"
		       "box-3 box-4"
		       "box-5 box-6";
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: 1fr 1fr;
}

#page3 > aside.f12 {
  grid-area: f12;
  background-color: red;
}

#page3 {
grid-gap: 30px;
  margin-top: 20px;
  display: grid;
  width: 100%;
  min-height: 375px;
  grid-template-areas: "f12 f12 f22 f22";
grid-auto-columns: 1fr;}

#page3 > aside.f12 {
  grid-area: f12;
  background-color: red;
}
#page3 > aside.f22 {
  grid-area: f22;
  background-color: #ffa08c;
}

.main-news {
 height: 320px;background: blue;
 position: relative;
}

.menu-boxes {
height: calc(100% - 345px);
background: transparent;
margin-top: 25px;
}

div[class*='box-'] {
 position: relative;
}
 

.menu-boxes > box-1  {
  grid-area: box-1;
  background-color: #ffa08c;
}

.menu-boxes > box-2  {
  grid-area: box-2;
  background-color: #ffa08c;
}

.menu-boxes > box-3  {
  grid-area: box-3;
  background-color: #ffa08c;
}

.menu-boxes > box-4  {
  grid-area: box-4;
  background-color: #ffa08c;
}

.menu-boxes > box-5  {
  grid-area: box-5;
  background-color: #ffa08c;
}

.menu-boxes > box-6  {
  grid-area: box-6;
  background-color: #ffa08c;
}

section#page2 > aside {
 padding: 40px;
 background: #fff !important;	
 line-height: 2;
}

section#page2 > aside  h1 {
margin: 15px 30px 19px;
font-size: 20px;
font-weight: 700;
}	

aside.f1 > i { color: #df1f26; font-size: 200%; }

section#page3 > aside {
 padding: 40px;
 background: #fff !important;	
}

.hve-header {
position: fixed;
left: 0px;
top: 0px;
width: 100%;
height: 150px;
background: #fff;
z-index: 200;

}

.hve-inner-header {
	position: relative;
 max-width: 1180px;
 height: 100%;
 background: #fff;
margin: 0 auto;
margin-top: -20px;
}

.hve-logo {
	top: 50%;
	position: absolute;
	top: 50%;
	transform: translateY(-88%);
}

.hve-top-nav {
 position: absolute;
 right: 0px; 
 bottom: 0px;
 max-width: 100%;
}

.hve-top-nav ul li{
  display: inline;
  margin-right: 40px;
}

.hve-top-nav ul li a{
  font-size: 18px;
  font-weight: normal;
  text-transform: uppercase;
}

.nav-title-veldu {
	margin-left: 30px;
	font-size: 18px;
	font-weight: bold;
}







.menu-adalvalmynd-container .sub-menu {
display: none;
}

.menu li.menu-item-has-children > a:after {
-webkit-font-smoothing: antialiased;
content: "\f431";
display: inline-block;
font: normal 8px/1 Genericons;
position: absolute;
right: -21px;
vertical-align: text-bottom;
font-size: 20px;
top: -2px;
}



.menu li.menu-item-has-children:hover > ul.sub-menu {
position: absolute;
top: 0px;
display: inherit;
left: 0px;
top: 56px;
padding: 0px;
width: 250px;
border: 1px solid red;
-webkit-transition: opacity 0.4s ease 0.2s;
-o-transition: opacity 0.4s ease 0.2s;
transition: opacity 0.4s ease 0.2s;
}

.sub-menu {
 
transition: opacity 0.9s ease 0.9s;

}

.zzz {
position: absolute	;
left: 95px;
top: 50%;
transform: translateY(-50%);
right: 20px;
}
	   .bto_glyphicon {
		position: relative;
		background : #363C3D;
		height: 100%;
		width: 100%
	    }



 
 

 

.bto_glyphicon i {
	position: absolute;
	top: 50%;
	transform: translateY(-39%);
	left: 34px;
	font-size: 40px;
	color: #DF1F26;
}


.bto_glyphicon a {
	position: relative;
display: block;height: 100%;
color: white;
font-size: 18px;
}

.landlaeknir h5 {
 font-size: 18px;
}



}
}

