/*Felles for alt*/
h1, h2, h3{
    margin-bottom: 0.2em;
    margin-top: 0;
    font-family: "Jersey 15", "Times New Roman";
}

main{
    width: 90%;
    margin: auto;
}

p{
	font-family: Rajdhani, Arial;
}

li{
    font-family: Rajdhani, Arial;
}

ul{
    padding: 0;
    margin: 0;
}

a{
    text-decoration: none;
    color: black;
    display: block;
    height: 100%;
    width: 100%;
    padding: 0.4em;
}

nav li, footer li{
    font-family: "Jersey 15", "Times New Roman";
}

.footer_nav li:hover, .nav-menu li:hover, .social-icons li:hover, .nav_logo:hover, .footer_logo:hover, .socials li:hover, .index-container div:hover,
.footer_nav li:active, .nav-menu li:active, .social-icons li:active, .nav_logo:active, .footer_logo:active, .socials li:active, .index-container div:active{
    transform: scale(1.1);
    background: grey;
    border-style: inset;
    border-color: #ccc;
}

.nav_logo, .footer_logo, nav li, footer li{
    border-style: outset;
    border-color: #ccc;
    border-width: 4px;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
    padding-bottom: 1.3em;
    padding-top: 1.3em;
}

nav li.active{
    border-style: inset;
    border-color: #ccc;
    background: grey;
}

nav li.active:hover{
    transform: scale(1.1);
}

.nav_logo, nav li{
    background: white;
}

nav-menu li, footer li{
    display: inline-block;
    margin-left: 1em;
}

.nav-right-side{
    display: flex;
    align-items: center;
    gap: 20px;
}

/*hamburger*/
.hamburger{
    cursor: pointer;
    background: none;
    border: none;
    z-index: 100;
    position: relative;
}
.hamburger svg{
    padding: 2px;
    border-style: outset;
    border-width: 4px;
    border-color: #ccc;
    background: lightgrey;
}
.hamburger-icon,
.close-icon {
    position: absolute;
    top: 0;
    left: 0;
}
.close-icon {
    opacity: 0;
}
.hamburger.active .hamburger-icon {
    opacity: 0;
}
.hamburger.active .close-icon {
    opacity: 1;
    border-style: inset;
}
/*hamburger*/

/*toggle-knapp*/
.switch{
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  font-family: "Jersey 15", "Times New Roman";
}
.switch input{
  opacity: 0;
  width: 0;
  height: 0;
}
.slider{
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.slider:before{
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.slider:after{
  position: absolute;
  content: "NO";
  height: 26px;
  width: 26px;
  left: 30px;
  bottom: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #888;
  transition: color 0.4s;
}
.switch:after{
  position: absolute;
  content: "EN";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #888;
  transition: color 0.4s;
  z-index: 2;
}
input:checked + .slider:before{
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
input:checked + .slider:after{
  color: #000;
}
input:checked + .switch:after{
  color: #888;
}
.switch:has(input:not(:checked)):after{
  color: #000;
}
/*toggle-knapp*/

.footer-index{
    top: 100%;
    position: absolute;
}

footer{
    padding-top: 2em;
    display: flex;
    flex-wrap: wrap;
    background: lightgrey;
    justify-content: space-between;
}

.footer_p{
	display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
	flex-basis: 100%;
}

.footer_p2{
	margin-top: 0;
}

footer{
	width: 100%;
}



.index-p {
    border-style: inset;
    border-color: #ccc;
    border-width: 2px;
    background: white;
    margin: 0 auto; 
    padding-right: 1em;
	padding-left: 1em;
    width: fit-content; 
    height: auto;
}

/*warning*/
.warning-container {
    display: block; 
    width: 280px;
    height: auto;
    z-index: 100;
	transform: translateZ(0);
}

.warning-box {
	aspect-ratio: 1 / 0.6;
    border-style: dotted;
    border-color: #ccc;
    border-width: 2px;
    color: white;  
    width: 100%; 
    padding: 15px; 
    cursor: pointer;
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: flex-start;
}

.click-me-text {
    margin-bottom: auto;
    font-size: 1.3em;
}

.box-main-content {
    text-align: center;
    width: 100%; 
    margin: auto 0;
}

.index-warning {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    border-style: inset;
    border-color: #ccc;
    border-width: 2px;
    background: white;
    padding: 0.5em; 
    text-align: left;
    display: flex; 
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: fit-content; 
    height: auto;
    position: absolute; 
    bottom: 100%;
    margin-bottom: 10px; 
    left: 50%;
    transform: translateX(-50%); 
    z-index: 10; 
}

.index-warning p {
    margin: 0;
    padding: 0;
}

#warningToggle:checked ~ .index-warning {
    visibility: visible;
    opacity: 1;
}
/*warning*/

.body-index{
  background-image: url("img/fold.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;
}

.social-icons svg, .socials-om svg{
    display: block;
}

.portefolje-link{
	text-align: center;
}

.portefolje-link p{
	display: inline-block;
	margin-bottom: 0.7em;
}
	
.portefolje-link a:link{
	text-decoration-line: underline;
	color: black;
}
	
.portefolje-link a:hover, .portefolje-link a:active{
	text-decoration-line: none;
}

.portefolje-link a:visited{
	color: grey;
}

/*mobil*/
@media screen and (min-width: 320px){
    body {
        
    }

	h1{
        font-size: 2em;
    }

    h2{
        font-size: 1.7em;
    }

    h3{
        font-size: 1.4em;
    }

	p{
        font-size: 1.3em;
    }

	main{
        padding-bottom: 4em;
    }

	nav img{
	    width: 110px;
    }

	nav li{
		font-size: 1.6em;
	}
		
	footer li{
         font-size: 1.4em;
    }

	 nav{
        position: sticky;
        top: 0;
        z-index:100;
    }
	
    /*hamburger*/
	.hamburger {
         display: block;
         position: absolute;
         z-index: 1000;
         cursor: pointer;
         right: 147px;
         top: 30px;
         border: none;
         padding: 0;
         margin: 0;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: -1;
        opacity: 0;
        pointer-events: none;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        right: auto;
        padding: 0;
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(211, 211, 211, 0.5);
        z-index: -1;
        border: 2px inset #ccc;
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-menu li {
        display: block;
        width: auto;
        max-width: fit-content;
        margin: 0.5em 0;
    }

    .nav-menu li a {
        padding: 10px 15px;
        display: inline-block;
    }
    /*hamburger*/
   
    
    .footer_nav, .footer_logo{
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 1em;
    }

	.footer_nav{
        flex: 0 0 100%;
    }

	.footer_logo{
        margin-right: 6em;
    }

	 .footer_nav li{
        margin-top: 0.2em;
        margin-bottom: 0.2em;
    }

	.footer_logo img{
        max-width: 115px;
    }
    
    .social-icons, .footer_logo{
        align-self: center;
    }
    
    .social-icons{
        margin-left: 6em;
    }
    
    .social-icons li{
        margin: 0;
    }

	/*om*/
	.om-boks4 {
        flex: 0 0 100%; 
        max-width: none; 
     }

     .om-group-three {
        flex: 0 0 100%;
      }
	
	.om div {
       margin-top: 1em;
       margin-bottom: 1em;
     }

     .om-crop {
       display: flex;
       justify-content: center;
       overflow: hidden;
       margin-bottom: 0.5em;
     }

    .om-crop img {
      object-fit: cover;
      border-width: 2px;
      border-style: inset;
      border-color: #ccc;
      width: 650px;
      height: 400px;
      display: block;
      margin: 0 auto;
    }

    .om-boks1 ul, .om-boks2 ul, .om-boks3 ul {
      margin-left: 2em;
     }

    .om li::marker {
      content: "▸ ";
    }

    .om-boks1 li, .om-boks2 li, .om-boks3 li {
      margin-bottom: 0.5em;
     }

    .om-boks1, .om-boks2, .om-boks3, .om-boks4 {
      flex-basis: 100%;
      width: 100%;
      max-width: 430px;
      margin: 1em auto;
      box-sizing: border-box;
    }

    .om-boks1, .om-boks2, .om-boks3 {
      display: block;
      border-style: inset;
      border-width: 2px;
      border-color: #ccc;
      background: white;
      vertical-align: top;
      height: auto;
      padding: 1.5em;
    }

    .om-boks {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-content: center;
      align-items: flex-start;
      width: 100%;
      margin: 0 auto;
    }

    .om-boks4 {
      display: flex;
      flex-direction: column;
      padding: 0.2em;
      align-items: center;
    }

    .om-boks4 li {
      display: inline-block;
      border-style: outset;
      border-width: 4px;
      border-color: #ccc;
      margin-right: 0.5em;
      margin-left: 0.5em;
    }

    .carousel-area-wrapper, .carousel-wrapper {
      flex-basis: 100%;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
     }

    .carousel-nav {
      display: none;
    }
	/*om*/
	
	.portefolje iframe{
        width: 80%;
    }

	.kontakt p{
	    width: 610px;
	    margin: auto;
    }

	.kontakt-main {
        flex-direction: column; 
    }
    
    .kontakt-main p,
    .kontakt-main iframe {
        width: 100%;
        flex: auto;
        max-width: none;
        margin-bottom: 20px; 
    }

	.kontakt-main p{
		width: 80%;
	}

	.warning-container {
    display: none;
}

	.body-about{
      background-image: none;
	  }
	
}


/*nettbrett*/
@media screen and (min-width: 760px){
    body {
    }

	h1{
        font-size: 2.5em;
    }

    h2{
        font-size: 2.2em;
    }

    h3{
        font-size: 1.9em;
    }

	p{
        font-size: 1.3em;
    }

	main {
        padding-bottom: 5em;
    }

	nav img{
	    width: 140px;
    }

	nav li{
		font-size: 1.7em;
	}
	
	footer li{
         font-size: 1.55em;
    }
	
    nav{
        position: sticky;
        top: 0;
        z-index:100;
    }
    
	 /*hamburger*/
	.hamburger {
         display: block;
         position: absolute;
         z-index: 1000;
         cursor: pointer;
         right: 122px;
         top: 35px;
         border: none;
         padding: 0;
         margin: 0;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: -1;
        opacity: 0;
        pointer-events: none;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        right: auto;
        padding: 0;
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(211, 211, 211, 0.5);
        z-index: -1;
        border: 2px inset #ccc;
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-menu li {
        display: block;
        width: auto;
        max-width: fit-content;
        margin: 0.5em 0;
    }

    .nav-menu li a {
        padding: 10px 15px;
        display: inline-block;
    }
    /*hamburger*/
    
    footer{
        flex-direction: row;
    }
    
    .footer_nav{
        flex: 0 0 100%;
    }
    
    .footer_nav, .footer_logo{
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 1em;
    }

	 .footer_nav li{
        margin-top: 0.2em;
        margin-bottom: 0.2em;
    }

	.footer_logo{
        margin-right: 10em;
    }

	.footer_logo img{
        max-width: 135px;
    }
	
    .social-icons, .footer_logo{
        align-self: center;
    }
    
    .social-icons{
        margin-left: 10em;
    }
    
    .social-icons li{
        margin: 0;
        margin-right: 1em;
    }

	/*om*/
	.om-boks4 {
    flex: 0 0 100%; 
    max-width: none; 
}

.om-group-three {
    flex: 0 0 100%;
}
	.om div {
    margin-top: 1em;
    margin-bottom: 1em;
}

.om-crop {
    display: flex;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.5em;
}

.om-crop img {
    object-fit: cover;
    border-width: 2px;
    border-style: inset;
    border-color: #ccc;
    width: 650px;
    height: 400px;
    display: block;
    margin: 0 auto;
}

.om-boks1 ul, .om-boks2 ul, .om-boks3 ul {
    margin-left: 2em;
}

.om li::marker {
    content: "▸ ";
}

.om-boks1 li, .om-boks2 li, .om-boks3 li {
    margin-bottom: 0.5em;
}

.om-boks1, .om-boks2, .om-boks3, .om-boks4 {
    flex-basis: 100%;
    width: 100%;
    max-width: 430px;
    margin: 1em auto;
    box-sizing: border-box;
}

.om-boks1, .om-boks2, .om-boks3 {
    display: block;
    border-style: inset;
    border-width: 2px;
    border-color: #ccc;
    background: white;
    vertical-align: top;
    height: auto;
    padding: 1.5em;
}

.om-boks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto;
}

.om-boks4 {
    display: flex;
    flex-direction: column;
    padding: 0.2em;
    align-items: center;
}

.om-boks4 li {
    display: inline-block;
    border-style: outset;
    border-width: 4px;
    border-color: #ccc;
    margin-right: 0.5em;
    margin-left: 0.5em;
}

.carousel-area-wrapper, .carousel-wrapper {
    flex-basis: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-nav {
    display: none;
}
	/*om*/
	
	.kontakt-main {
    display: flex;
    flex-direction: row;
    align-items: flex-start; 
    gap: 30px; 
}

.kontakt-main p,
.kontakt-main iframe {
    min-width: 0;
    margin: 0;
    padding: 0;
    width: auto;
}

.kontakt-main p {
    width: 30%; 
    max-width: 450px;
}

.kontakt-main iframe {
    width: 70%;
    flex: none; 
}

	.warning-container {
    display: none;
}

	.body-about{
  background-image: url("img/body-about.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;
}
	
}

/*desktop*/
@media screen and (min-width: 1200px){
    body {

    }

	h1{
        font-size: 3em;
    }

    h2{
        font-size: 2.7em;
    }

    h3{
        font-size: 2.4em;
    }

	p{
        font-size: 1.4em;
    }

	main {
        padding-bottom: 6em;
    }

	nav img {
	    width: 145px;
    }

	nav li{
		font-size: 1.85em;
	}
	
	footer li{
         font-size: 1.5em;
    }

	.om li{
		font-size: 1em;
	}

	.nav-menu{
        margin: 0;
        padding: 0;
    }
	
    /*hamburger*/
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        opacity: 1;
        pointer-events: all;
        padding: 0 20px;
        border: none;
		z-index: 999;
      }
      .nav-menu li {
        display: inline-block;
        margin: 0 0 0 20px;
      }
      .hamburger {
        display: none;
      }
	.nav-menu::before{
       display: none;
    }
	/*hamburger*/

	 .footer_nav{
        margin-right: 4em;
        display: flex;
        align-items: center;
        justify-content: right;
     }
    
    .footer_nav ul{
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
		width: 70%;
    }
    
    .footer_nav li{
        margin-top: 0.2em;
        margin-bottom: 0.2em;
    }
    
    .footer_logo{
        margin: 0;
    }

	.footer_logo img{
        max-width: 150px;
    }
	
    .social-icons, .footer_nav{
        flex: 1;
    }
    
    .social-icons ul, .footer_nav, .footer_logo{
        display: flex;
        align-items: center;
    }
    
    .social-icons{
        margin-left: 4em;
        display: flex;
        align-items: center;
        justify-content: left;
    }

	/*om*/
.om-boks4 {
    flex: 0 0 100%; 
    max-width: none; 
}

.om-group-three {
    flex: 0 0 100%;
}
	
	.om-crop img{
    height: 400px;
    width: 650px;
    }

	.om-boks4{
		display: flex;
		flex: 0 0 100%;
	}
	
.carousel-area-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-wrapper {
    display: flex;
    flex-direction: row; 
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.om-boks1, .om-boks2, .om-boks3 {
    width: 350px;
    padding: 2em;
    margin: 0;
    opacity: 0.5;
    transform: scale(0.8);
    border-style: inset;
    border-width: 2px;
    border-color: #ccc;
}

.carousel-wrapper .prev { 
    order: 0; 
}
.carousel-wrapper .next { 
    order: 2; 
}
.carousel-wrapper .active {
    transform: scale(1.26);
    opacity: 1;
    border-style: outset;
    border-width: 2px;
    order: 1; 
	z-index: 10;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 1em;
    gap: 15px;
}

.carousel-nav button {
    cursor: pointer;
    border-style: outset;
    border-color: #ccc;
    border-width: 2px;
	margin-top: 0.8em;
}

.carousel-nav button:hover, .carousel-nav button:active{
    border-style: inset;
    background: grey;
}
	/*om*/

	.kontakt-main {
    display: flex;
    flex-direction: row;
    align-items: flex-start; 
    gap: 30px; 
}

.kontakt-main p,
.kontakt-main iframe {
    min-width: 0;
    margin: 0;
    padding: 0;
    width: auto;
}

.kontakt-main p {
    width: 30%; 
    max-width: 450px;
}

.kontakt-main iframe {
    width: 70%;
    flex: none; 
}

	.warning-container {
    display: block;
}

	.body-about{
  background-image: url("img/body-about.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;
}
	
}






















































































































































































































































































































































































































































































































































































































































































































































































































































































































































