@font-face {
    font-family: 'fraunces';
    src: url('fontr/Fraunces-LightItalic.ttf');
}

@font-face{
    font-family: 'VG5000';
    src: url('fontr/VG5000-Regular.otf');
}

:root{
    --font1: "fraunces", Times, serif;
    --font2: "VG5000", Helvetica, sans-serif;
   /* --color1: rgb(89, 72, 222);*/
   /* --color2:rgb(214, 201, 166);*/
   /*--color2:linear-gradient(90deg, rgba(0,0,0,1) 30%, rgba(55,49,10,1) 100%);
   --color1:linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(55,49,10,1) 100%);
    --color3: rgba(55,49,10,1);*/
   --color2:linear-gradient(90deg, rgb(255, 255, 255) 30%, rgb(110, 147, 231) 100%);
   --color1:linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgb(110, 147, 231) 100%);
   --color3: rgba(110, 147, 231,1);
   --fontcolor:rgb(0, 0, 0); 
}

body{
    font-family: var(--font2);
    background: var(--color2);
}

h1{
    font-size: 3.5em;
}

h2{
    font-size: 2em;
}

.container{
    overflow-x: hidden;
}

nav{
    min-width: 8vw;
    height: 100vh;
    /*background: linear-gradient(0deg, rgba(0, 0, 0, .8) 0%, rgba(55,49,10,1) 100%);*/
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgb(110, 147, 231) 100%);
    
    position: fixed;
    top: 0;
    right: 80vw;
    left: 0;
    bottom: 0;
    z-index: 100;
    
}

a{
    text-decoration: none;
    color: inherit;
    text-decoration: underline;
}


body{
    color: var(--fontcolor);
}


/*Styling av burgermeny*/
.burger, .burger::after, .burger::before, .nav-toggle{
    display: none;
}


li{
    list-style: none;
    margin-top: 4ch;
    color: var(--fontcolor);
    padding-right: 2vw;
    
}

.main{
    /*background: var(--color2);*/
    
    max-width: 1200px;
    position: relative;
    
    top: 0;
}





.underTitle{
    
    max-width: 600px;
    justify-content: space-between;
}

.underTitle p{
    max-width: 30ch;
}

.landingFrame>p{
    margin-top: 6ch;
}




.project{
    color: var(--fontcolor);
    background: rgb(255, 255, 255);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    
}



.ptitle{
    width: 100%;
    /*background: var(--color2);*/
    background: rgba(0, 0,0, 0);
    padding: 4%;
}

.ptitle h2{
    padding-top: 4ch;
    color: var(--fontcolor);
    text-shadow:1px 1px 10px var(--color1), 1px 1px 10px var(--color1);
}

.bilde{
    object-fit: contain;
}


.kvadrat{
    max-width: 800px;
    min-width: 380px;
    width: 25%;
    margin: 2ch;
    flex-grow: 1;
    
}

.onfotekst{
    
    min-width:380px;
    margin-top: 10%;   
    flex-grow: 1;
}

.onfotekst>p{
    font-family: var(--font1);
    border-left: solid 1px black;
    max-width: 80vw;
    padding: 1ch;
    margin: auto;
    font-size: 1.2em;
}


#cursor{
    display: none;
     position: fixed;
     width: 400px;
     height: 400px;
    z-index: 300;
     transition: 0.01s;
     transform: translate(-50%, -50%);
     border-radius: 50%;
     pointer-events: none;
     outline: 99999px solid rgba(0, 0, 0, .95);
     -moz-outline-radius: 50%;
 }






 @media only screen and (max-width: 800px) {

    .underTitle div{
        display: 0;
    }
    
    #darkerModeBtn{
        display: none;
    }

    .container{
        overflow-x: hidden;
    }

    nav{
        /*background:linear-gradient(-90deg, rgba(0, 0, 0, 0.725) 30%, rgba(55,49,10,1) 100%);*/
        background:linear-gradient(-90deg, rgba(255, 255, 255, 0.725) 30%, rgba(110, 147, 231,1) 100%);
        width: 100vw;
        transform: rotateY(-90deg);
        transform-origin: left;
        transition: transform 300ms ease-in-out;
    }


    nav li{
        opacity: 0;
        transition: opacity 165ms;
    }

    

    .nav-toggle{
        display: none;
    }
    .nav-toggle:checked ~ nav{
        transform: rotateY(0);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(2px);
    }


    .nav-toggle:checked ~ nav li{
        opacity: 1;
        transition: opacity 250ms ease-in-out 150ms;
    }

    .nav-toggle:checked ~ .burger::after{
        content: "Close";
    }

    .burger, .burger::after{
        
        content: "Menu";
        color:var(--fontcolor);
        background:var(--color3);
        position: relative;
       display: block;
       z-index: 10000;
    }
    .burger{
        
        position: fixed;
        top: 30px;
        right: 70px;
    }
    .burger::after{
        font-size: 1.1em;
        border: solid 3px black;
        padding: 5px;
        position: absolute;
        top: -10px;
    }
    
   /* .burger::before{
        position: absolute;
        bottom: -10px;
    } */

    .underTitle{
        max-width: 100vw;
    }

    .landingFrame>p, .underTitle > *{
        background-color: var(--color3) ;
    }
    .underTitle p{
        max-width: 100vw;
    }

    
    .video{
        display: none;
    }

    .kvadrat{
        min-width: 200px;
    }
    
 }












 @media only screen and (min-width: 801px) {
    .container{
        width: 100vw;
    }

    .landing{
        margin-bottom: 250px;
    }

    .onfotekst>p{
        max-width: 40ch;
    }

    .main{
        margin-left: 260px;
    }

    nav{
        width: 260px;
    }


    .underTitle{
        display: flex;
    }

    .project{
        margin: 20px;
        margin-bottom: 200px;
    }

    .landingFrame, .ptitle{
    
        margin-left: 7vw;
    }

    .ptitle{
        padding: 0;
    }

    .mobilvideo{
        display: none;
    }
 }
