* {
  margin: 0;
  padding: 0;
  /* Highly recommended to avoid any width alterations in the Slidebars or Site, which may cause horizontal scrolling. */
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
 font-weight: 500;
 font-size: 1.1rem;
 font-family: Raleway,Arial,Helvetice Neue,sans-serif;
}
a { text-decoration: none; }

h1,h2,h3,h4,h5,h6 {
 color: #38A9E3;
 text-transform: uppercase;
 font-family: Raleway,sans-serif;
 font-weight: 300;
}
h2 {
 font-size: 2em;
}
p {
  line-height: 1.6rem;
}
.right {
  float: right;
}
.backward {
     display: inline-block;
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    transform: scale(-1, 1);
}
.divider {
	height: 30px;
}
img.fullwidth {
  width: 100%;
  max-width: 100%;
  height: auto;
}
.article-image-floatLeft {
  max-width: 100%;
  float: left;
  margin: 10px 30px 30px 0;
}
.article-image-floatRight {
  max-width: 100%;
  float: right;
  margin: 10px 0px 30px 30px;
}

/* setup styles */

  aside {
    display: none;
  }
  header {
    display: block;
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 100;
  }
  #header-inner {
    height: 49px;
    background: #ab7b29;
  }
  header .material-icons {
    color: #fff;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 33px;
  }

.hide-menu-left
{
    background-color:#39393A;
    position: absolute;
    top:0;
    left:0;
    z-index: -10;
    width: 280px;
    height: 100%;
    -webkit-transform: translate3d(-280px,0,0);
    -moz-transform: translate3d(-280px,0,0);
    -o-transform: translate3d(-280px,0,0);
    -ms-transform: translate3d(-280px,0,0);
    transform: translate3d(-280px,0,0);
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
}
.hide-menu-right
{
  background-color:#39393A;
  position: absolute;
  top:0;
  right:0;
  z-index: -10;
  height: 100%;
  padding: 0;
  width: 0;
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s linear;
  -ms-transition: all 0.3s linear;
  -o-transition: all 0.3s linear;
  transition: all 0.3s linear;
}

.hide-menu-right .submit {
  display: none;
}

.show-menu
{
  -webkit-transform: translate3d(0,0,0);
  -moz-transform: translate3d(0,0,0);
  -o-transform: translate3d(0,0,0);
  -ms-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  width: 280px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    z-index: 1001;
    position: fixed;
    top: 0;
 }

 .show-menu .submit {
   display: block;
   margin: 5px 10px -15px 10px;
   padding: 10px;
 }
.hide-menu-right img {
  margin: 10px 10px 0 10px;
}


 [type="radio"]:disabled[type="radio"] + label::before, [type="radio"] + label::after {
 display: none;
 }

 [type="radio"]:not(:checked) + label::before, [type="radio"]:not(:checked) + label::after {
   border: none;
 }

 [type="radio"]:not(:checked) + label, [type="radio"]:checked + label {
 padding-left: 0;
 height: 0;
 }
 [type="radio"]:not(:checked) + label i.material-icons {
 position: absolute;
 top: -7px;
 left: -1000px;
 }
 input[type="radio"]:checked + label span.radio::before {
     background-color: #59c9cd;
 }
 input[type="radio"]:checked + label span.radio::after {
 left: 17px;
 background-color: #26A69A;
 box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.75);
 }
 [type="radio"]:checked + label span.radio i.material-icons {
 position: absolute;
 top: -7px;
 left: 17px;
 z-index: 1;
 color: #b5fff6;
 transition: left .25s;
 font-size: 1rem;
 font-weight: 800;
 }

 .radio-block input[type="radio"]{
 display: none;
 }

 /* Base styles for spans */
 .radio-container span::before,
 .radio-container span::after {
 content: '';
 position: absolute;
 top: 0;
 bottom: 0;
 margin: auto;
 }

 /* Radio buttons */
 .radio-container { }
 .radio-container span.radio:hover {
 cursor: pointer;
 }
 .radio-container span.radio::before {
 width: 36px;
 height: 12px;
 top: 1px;
 background-color: #818181;
 border-radius: 50px;
 }
 .radio-container span.radio::after {
 left: 0px;
 width: 19px;
 height: 19px;
 border-radius: 14px;
 background-color: #ddd;
 box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.75);
 transition: left .25s, background-color .25s;
 }

/* Main Menu */
.sb-menu { /* Apply to <ul> or <ol>. */
  padding: 0;
  margin: 0;
  list-style-type: none;
  background: url(../grafikk/left-menu-bkgr4.jpg) no-repeat; /* Background colour. */
}

.sb-menu li {
  width: 100%;
  padding: 0;
  margin: 0;
  opacity: 0.85;
  background-color: #222;
  text-align: right;
  border-bottom: 1px solid #39393A; /* Will lighten any background colour you set. */
  /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Will darken any background colour you set. */
}

.sb-menu li:last-child {
  border-bottom: none; /* Removes bottom border from last list item.. */
}
.sb-menu li a  {
  border-left: 5px solid transparent;
  display: block;
	display: block;
	padding: 0.8em 30px 0.8em 30px; /* Creates an even padding the same size as your font. */
  color: #fff;
}
.sb-menu li:hover a,.sb-menu .current {
  background-color: rgba(0, 0, 0, 0.2); /* Will lighten any background colour you set. */
  color: #51B1F2;
}
.sb-menu li a,.sb-menu li a:hover,.sb-menu li a:focus {
  transition: all 150ms ease-in 0s;
}
.sb-menu li a:hover,.sb-menu .current {
  border-left: 5px solid #51B1F2; /* Removes transparent colour, so border colour will be the same as link hover colour. */
}

article:first-child h2 { display: none; }

article {
  padding-top: 48px;
}
article:not(:first-child),.first-article {
  max-width: 1350px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 40px;
	overflow: hidden;
}
article:not(:first-child) .article-top {
	border-top: 8px solid #333;
	border-bottom: 5px solid #d00000;
  margin: -48px -30px 30px -30px;
}
article:not(:first-child) .article-top  h2 {
	margin:0;
	padding: 9px 30px 10px 30px;
	background: #090;
	border-bottom: 5px solid #fff;
	color:#fff;
	font-size: x-large;
}
article:last-child {
  padding-bottom: 0;
}

#underskrift {
	clear: both;
	width: 100%;
	margin: 0 auto 100px auto;
	padding: 15px;
	text-align: center;
}
#underskrift img {
	max-width: 100%;
	height: auto;
}
/* Kontaktskjemaet */

.form-left-side,.form-right-side {
  float:none;
  width: 100%;
}
.form-left-side {
	font-size: larger;
	padding-top: 30px;
}
.form-left-side input,.form-left-side textarea {
	width: 100%;
	margin: 3px 0 10px 0;
	padding: 7px 10px;
	border: 1px solid #D5DBE0;
}
.form-left-side label {
	color: #666;
}
.form-left-side label.required:after {
    content: "*";
    color: #F00;
    margin-left: 5px;
}
.form-left-side input[type=submit], a.submit {
	display: block;
  margin-bottom: 30px;
	padding: 12px 20px 10px 20px;-moz-box-shadow: 0px 1px 1px 0px #b06707;
	-webkit-box-shadow: 0px 1px 1px 0px #b06707;
	box-shadow: 0px 1px 1px 0px #b06707;
	background-color:#d08a09;
	-moz-border-radius:4px;
	-webkit-border-radius:4px;
	border-radius:4px;
	border:1px solid #c07a08;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:17px;
	padding:16px 31px;
	text-decoration:none;
	text-shadow:0px 1px 0px #000000;
	text-transform: uppercase;
	text-decoration: none;
}
.form-left-side input[type=submit]:hover, a.submit:hover {
	background: #c07908;
}
.form-left-side input[type=submit]:active, a.submit:active {
  position:relative;
  top:1px;
}
.form-left-side input.input-left {
  width: auto;
  margin-right: 10px;
}
#kart,#kart .kart-blokk {
 width: 100%;
 margin: 0px auto;
}
#kart .kart-img {
 width: 100%;
 margin-bottom:30px;
 padding:0;
 float: none;
}
#kart img {
 width:100%;
}
.caption {
 display: none;
}
#typer tr {
	border-bottom: 1px solid #E09D1A;
}
#typer td,#typer th {
	display: block;
	border: 1px solid #f0f0f0;
	border-top: none;
	padding: 20px;
}
#typer th:first-child {
	border: 1px solid #f0f0f0;
}
footer {
	margin-top: 40px;
	overflow: hidden;
	background: #282829;
}
footer #footer-inner {
	background: #39393A;
}
footer #footer-inner > div {
	padding: 30px 0 30px 0;
	color: #fff;
	overflow: hidden;
}
footer address, footer section {
	float:left;
	margin-left: 0px;
	padding-left: 15px;
}
footer section {
	text-align: center;
	clear:right;
}
footer section:last-child {
	float:right;
	padding-right: 15px;
}
footer a.fb, footer a.gp,footer a.email {
	float:right;
	width: 32px;
	height: 32px;
	margin: 0 0 10px 10px;
}
footer a.fb {
	background: url(../grafikk/social-network-icons.png) 0px -32px no-repeat;
}
footer a.email {
	background: url(../grafikk/social-network-icons.png) 0 0 no-repeat;
}
footer #footer-bottom {
	padding: 30px 15px 30px 15px;
	color: #777;
}
footer #footer-bottom a {
	color: #999;
	text-decoration: none;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    -webkit-animation-name: fadeIn; /* Fade in the background */
    -webkit-animation-duration: 0.4s;
    animation-name: fadeIn;
    animation-duration: 0.4s
}

/* Modal Content */
.modal-content {
    position: fixed;
    bottom: 0;
    background-color: #fefefe;
    width: 100%;
    -webkit-animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-name: slideIn;
    animation-duration: 0.4s
}

/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 2px 20px;
    background-color: #009900;
    color: white;
    height: 60px;
    border-top: 8px solid #333;
    border-bottom: 5px solid #d00000;
}

.modal-body {padding: 2px 20px;}

.modal-footer {
    height: 40px;
    padding: 2px 16px;
    background-color: #AB7B29;
    color: white;
}

/* Add Animation */
@-webkit-keyframes slideIn {
    from {bottom: -300px; opacity: 0}
    to {bottom: 0; opacity: 1}
}

@keyframes slideIn {
    from {bottom: -300px; opacity: 0}
    to {bottom: 0; opacity: 1}
}

@-webkit-keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}
.table {display: table; padding:30px 0; }
.tableRow {display: table-row;}
.tableCell {display: table-cell; padding: 0 10px 10px 0;}
.tableCell:first-child { font-weight: 300; }
.tableCell:last-child { font-weight: 400; }
.firstCell{ max-width: 150px; }

@media only screen and (min-width: 800px) {
  body {
   font-weight: 400;
   font-size: 1rem;
   font-family: Raleway,Arial,Helvetice Neue,sans-serif;
  }
  header {
    display: none;
  }
  aside {
    display: inline;
    position: fixed;
    top: 0;
    width: 335px;
    height: 100% !important;
    background: #39393A url(../grafikk/ulf-logo-copy.png) -55px -8px no-repeat;
    padding-top: 124px;
    z-index: 1000;
  }

  #content {
    margin-left: 335px;
  }
  article {
    padding-top: 0;
  }
  article:not(:first-child),.first-article {
    margin: 0 auto;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 100px;
  	overflow: hidden;
  }
  article:not(:first-child) .article-top {
    margin: 0 0 30px 0;
  }
  article:last-child {
  padding-bottom: 0;
  }

	#typer td,#typer th {
		display: table-cell;;
		border: 1px solid #f0f0f0;
		border-top: none;
		padding: 20px;
	}
  .form-left-side {
  	float:left;
  	width: 64%;
  }
  .form-right-side {
  	float:right;
  	width: 30%;
    margin-top: 20px;
  }
  #kart {
  	margin: 50px 0 0px -30px;
  	overflow: hidden;
  }
  #kart .kart-blokk {
  	box-sizing: border-box;
  	-moz-box-sizing: border-box;
  	margin-bottom: 25px;
  	overflow: hidden;
  }
  #kart .kart-img {
  	float: left;
  	width: 50%;
  	padding-left: 30px;
  	box-sizing: border-box;
  	-moz-box-sizing: border-box;
  }
  #kart img {
  	max-width: 100%;
  	height: auto;
  }
  .caption {
    display: inline;
  }

	footer {
		margin-top:0;
    margin-left: 335px;
	}
	footer #footer-inner, footer #footer-bottom {
		padding: 30px 50px 30px 50px;
	}
  .modal {
      margin-left: 335px;
  }

  .modal-header {
      padding: 2px 50px;
  }

  .modal-body {padding: 2px 50px;}
  .close {padding-right: 340px;}
}

@media(min-width:1200px){
	#kart .kart-blokk {
		float: left;
		width: 50%;
		margin-bottom: 0;
	}
}
