@font-face {
    font-family:Lato bold ;
    src: url(Lato-Bold.tlf);
}
@font-face {
    font-family:lato reg ;
    src: url(font/Lato-Regular.ttf);
}
    @font-face {
    font-family:Nunito Sans;
    src: url(font/NunitoSans-Light.tlf);
}
@font-face {
    font-family:nunito sans reg ;
    src: url(font/NunitoSans-Regular.ttf);
}

:root{
    /* Natual Living er Nunito Sans Light
Overskrifter er Nunito Sans Regular
Brødtekst, menu og tekst på knap er Lato Regular
Tekst i footer er Lato Bold */
--nav-backG: black;
--nav-color:white;



--Nunito-Sans-Light:Nunito Sans;
}
/* *{
    margin: 0px;
    padding: 0px;
} */
body{
    width: 100vw;
    
    display: grid;  
    grid-template-areas:
    "header"
    "nav"
    "main"
    "footer";

}
h2,h3{
    font-family: nunito sans reg;
}
main p, nav li{
    font-family: lato reg;
}
footer li{
    font-family:Lato bold ;
}
img {
    object-fit: cover;
    
  width: 100%;
  display: block;
}
header img{
    height: 100px;
    
}
header .slider {
    display: none;
}

nav{
    background-color:var(--nav-backG);
    width: 100vw;
    /* height: 50px; */
    color:white;
    display: flex;
    flex-direction: column;
    align-content:flex-start;
    /* justify-content: center; */
   
    
   
}
nav h1{
    /* position: absolute; */
    @font-face {
        font-family:Nunito Sans;
        src: url(font/NunitoSans-Light.tlf);
    }
   
}

/* menulogo */
nav .menu-btn:checked ~ .menu .top{
    display: block;
    transform: rotate(-45deg);
    display: flex;
    transform-origin: right;
    transition: 1s;
    
    
}/* menulogo */

nav .menu-btn:checked ~ .menu .med{
    display: none;
    
}/* menulogo */
nav .menu-btn:checked ~ .menu .bot{
    display: block;
    transform: rotate(46deg);
    transform-origin: right;
    transition: 1s;
}

/* menulogo aktiver ckick */
nav .menu-btn
{display: flex;
    right: 10px;
    height: 40px;
    display: block;
    width: 40px;
    z-index: 9;
    opacity: 0;
    cursor: pointer;
    position: absolute;
    

}/* menulogo plasening*/
   nav .menu{
    display: flex;  
    position: absolute;
    right: 3%;
    width: 40px;
    height: 40px;
    z-index: 8;
    opacity: 1;
    cursor: pointer;
    flex-direction: column;
    justify-content:space-between;
    
   }
 
  /* menulogo top anime ef */
   nav .menu .top{
    background-color:var(--nav-color);
    height: 10px;
    top: 0;
    transition: 1s;
   }
   /* menulogo top anime ef */
   nav .menu .med{ 
    
    background-color:var(--nav-color);
    height: 10px;  
    transition: 1s; 
    }
    /* menulogo top anime ef */
    nav .menu .bot{ 
    bottom: 0;
    background-color:var(--nav-color);
    height: 10px;
    transition: 1s;
   } 

   nav ul {
    display: none;
}

nav .menu-btn:checked ~ ul{
    display: block;
    background-color:var(--nav-backG) ;
    transform: translatey(5px);
    transition: 1s;       
    
}


.mainmidle{
    background-color: rgb(27, 26, 26);
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;

}
.mainmidle article{
    background-color: white;
   width: 80%;
   
   margin: 10px; 
}
.mainmidle article h3{
    display: flex;
    justify-content: center;
    
}
.mainmidle article p{
    display: flex;
    justify-content: center;
    
}
.mainlast {
    height: 300px;
    display: block;
    overflow: hidden;
    position: relative;
    text-align: center;
    color: white;
     display: flex;
    justify-content: center;
    align-items: center; 
}
.mainlast img{
    height: 100%;
    width: 100vw;
    object-fit: cover;
    object-position:100% 100%  ;

}

.mainlast h2{
    font-size: x-small;
    z-index: 53;
   
    position: absolute;
    border: 1px solid white;
    padding: 10px;
 border-radius: 25px ;
 transform:translatex(0) rotatey(0deg)scale(1);
 animation: testroll 10s infinite ;
 
}
@keyframes testroll{
    
 
      
         0%{
            transform:translatex(0%) rotatey(0deg)scale(1);
        }
         20%{
            transform: rotate(90deg)scale(1);
        } 
        25%{
             transform:translatex(-300%) rotatey(180deg)scale(1); 
        }
        30%{
            transform: rotate(270deg)scale(1);
        } 
        35%{
            
            transform: rotatey(360deg);
        } 
        /* 0%{
            transform:translatex(0%) rotatey(0deg)scale(1);
        } */
         62%{
            transform: rotate(90deg)scale(1);
        } 
        74%{
             transform:translatex(300%) rotatey(180deg)scale(1); 
        }
        86%{
            transform: rotate(270deg)scale(1);
        } 
        100%{
            
            transform: rotatey(360deg);
        } 
    }





footer{
    background-color:var(--nav-backG) ;
    font-family: Lato bold;
    color: var(--nav-color);
    /* display: flex;
    flex-direction: column; */
    /* flex-wrap: wrap;
    align-items: center; */
}

footer .suppot {
  
    border: 1px solid var(--nav-color);
    display:flex;
      flex-direction: column;
      flex-wrap: wrap;
      align-content: center;
      justify-content: center;
      align-items: center;
}
.suppot-btn{
    width: 100vw;
    height: 15px;
    opacity: 1;
    top: 20px;
    position: relative;
    opacity: 0;
}
.suppot h3{
    top: 10px;
}


.suppot ul {
    display: none;
    text-decoration: underline;
}

.suppot .suppot-btn:checked ~ ul{
    display: block;
    background-color:var(--nav-backG) ;
    transform: translatey(15px);
    transition: 1s;       
    margin-bottom: 50px;
}
footer .copany {
  
    border: 1px solid var(--nav-color);
    display:flex;
      flex-direction: column;
      flex-wrap: wrap;
      align-content: center;
      justify-content: center;
      align-items: center;
}
.copany-btn{
    width: 100vw;
    height: 15px;
    opacity: 1;
    top: 20px;
    position: relative;
    opacity: 0;
}
.copany h3{
    top: 10px;
}


.copany ul {
    display: none;
    text-decoration: underline;
}

.copany .copany-btn:checked ~ ul{
    display: block;
    background-color:var(--nav-backG) ;
    transform: translatey(15px);
    transition: 1s;       
    margin-bottom: 50px;
}
footer .deal {
  
    border: 1px solid var(--nav-color);
    display:flex;
      flex-direction: column;
      flex-wrap: wrap;
      align-content: center;
      justify-content: center;
      align-items: center;
}
.deal-btn{
    width: 100vw;
    height: 15px;
    opacity: 1;
    top: 20px;
    position: relative;
    opacity: 0;
}
.deal h3{
    top: 10px;
}


.deal ul {
    display: none;
    
}

.deal .deal-btn:checked ~ ul{
    display: block;

    background-color:var(--nav-backG) ;
    transform: translatey(15px);
    transition: 1s;       
    margin-bottom: 50px;
    
}



footer .backtop {
  
    border: 1px solid var(--nav-color);
    display:flex;
      flex-direction: column;
      flex-wrap: wrap;
      align-content: center;
      justify-content: center;
      align-items: center;
}
.backtop-btn{
    width: 100vw;
    height: 15px;
    opacity: 1;
    top: 20px;
    position: relative;
}
.backtop h3{
    top: 10px;
}
footer ul li {
    list-style: none;
}
footer ul li img {
    width: 50px;
}
.logo ul{
    display: flex;
    justify-content: space-around;
}


@media only screen and (min-width: 768px){

    body{
        width: 100vw;
        margin: 0;
         display: grid;  
        grid-template-areas:
        "header"   "header" "header" 
        "nav" "nav""nav"
        "main"    "main"    "main" 
        "footer" "footer" "footer";
    
    } 
    img{ 
        width: 100%;
    }
    header {
        height: 200px;
       
    }
    header img{
        display: none;
    }
    header .slider img {
        display: block;
    }
    
    header .slider{
       
        display: block;
        overflow: hidden;
    }
    header .slider figure{
        position: relative;
        width: 400%;
       
        
        margin: 0;
        left: 0;
        animation: 20s slid infinite;
    }
    header .slider figure img{
        width: 25%;
        height: 200px;
        float: left;
        object-position:100% 30% ;
    }
    @keyframes slid{
        0%{
            left: 0;
        }
        33%{
            left: -100%;
        }

        66% {
            left: -200%;
        }
        100% {
            left: -300%;
        }
    }
    nav{
        position: relative;
        display: flex;
        flex-direction: row; 
        justify-content: space-between;
        align-items: flex-end;
        height: 50px;
        width: 100%;
        padding: 4px;
    }
    nav h1{
        margin: 0px;
    }
    nav ul{
        margin: 0px;
        display: block;
        display: flex;
        justify-content: space-around;
        list-style: none;

    }
    nav ul li {
        margin-right: 20px;
    }
    nav .menu{
        display:none;
    }
    nav .menu-btn{
        display: none;
    }

.maintop{
    display: grid;
    grid-template-columns: repeat(2fr);
    grid-template-rows: auto;
}
.maintop h2{
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 1;
    text-align: center;
}

.maintop p:nth-child(1){ 
    grid-column-start: 1;
    grid-column-end: 1;
    grid-row-start: 2;
    grid-row-end: 2;}
.maintop p:nth-child(3){ 
    grid-column-start: 2;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 2;}
.maintop p:nth-child(2){grid-column-start: 1;
    grid-column-end: 1;
    grid-row-start: 3;
    grid-row-end: 3;}
 .maintop p:nth-child(4){ grid-column-start: 2;
    grid-column-end: 2;
    grid-row-start: 3;
    grid-row-end: 3;} 

    .maintop p{
        padding: 10px;
    }



  .mainmidle{
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;

  }
  .mainmidle article {
    width: 350px;
    height: 500px;
  }
  .mainmidle article img {
    width:100%;
    height: 300px;

  }
  .mainmidle article h3 {
    display: block;
    margin-left: 10px;

  }       
  .mainmidle article p {
    display: block;
    margin-left: 10px;

  }  
  .mainlast {
    height: 500px;
   
    overflow: hidden;
    position: relative;
    text-align: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mainlast h2{
    font-size: medium;

}

footer{
    height: 200px;
    display: flex;
    justify-content: space-between;
    padding-right: 50px;
}


footer .suppot-btn{
    display: none;
    width: 0px;
}
footer .suppot ul {
    display: block;
    border: solid 0px;
}
footer .suppot  {
    border: none;
}
footer .copany-btn{
    display: none;
    width: 0px;
}
footer .copany ul {
    display: block;
}
footer .copany  {
    border: none;
}

footer .deal-btn{
    display: none;
    width: 0px;
}
footer .deal ul {
    display: block;
}
footer .deal  {
    border: none;
}
footer .backtop{
    display: none;
    width: 0px;
}
footer h3{
    display: none;
}

}



