@import url("https://fonts.googleapis.com/css?family=Work+Sans:300,600");


:root {
  --background: rgba(222, 235, 243, 0.95);
  --color1: rgba(17, 34, 69, 1);
  --white: rgb(255, 255, 255, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  color: var(--white);
}

body {
  margin: 0;
  background: #222;
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
}

.content {
  height: 200vh;
  background-image: url(//unsplash.it/1000/1000);
  background-color: #333;
  background-blend-mode: multiply;
  background-size: cover;
  display: cover
;
  place-items: center;
    top: 0;
}

/* article{
    padding: 0;
    margin: 0;
    border: black solid 10px;
} */

.mainheader{
    background: var(--background);
    text-align: center;
    position: fixed;
    z-index: 999;
    width: 100%;
    top: 0;  
}

.nav-toggle{
    display: none;
}

.nav-toggle-lable {
    position: absolute;
    top: 0;
    left: 0;
    margin-left: 1em;
    height: 100%;
    display: flex;
    align-items: center;

}

.nav-toggle-lable span,
.nav-toggle-lable span::before,
.nav-toggle-lable span::after{
    display: block;
    background: var(--color1);
    height: 2px;
    width: 2em;
    border-radius: 2px;
    position: relative;
}

.nav-toggle-lable span::before,
.nav-toggle-lable span::after{
    content: '';
    position: absolute;
}

.nav-toggle-lable span::before{
    bottom: 7px;
}
.nav-toggle-lable span::after{
    top: 7px;
}


nav{
    position: absolute;
    text-align: left;
    top: 100%;
    left: 0;
    background: var(--background);
    width: 100%;
    transform: scale(1, 0);
    transform-origin: top;
    transition: transform 700ms ease-in-out;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav li{
    margin-bottom: 1em;
    margin-left: 1em;
}

nav a{
    color: var(--color1);
    font-weight: bolder;
    text-decoration: none;
    font-size: 1.2em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 1ms ease-in-out 200ms;
}

nav a:hover{
    color: #000;

}

.nav-toggle:checked ~ nav{
    transform: scale(1, 1);

}

.nav-toggle:checked ~ .nav-toggle-lable span::after{
    
    background: var(--color1);
    
}

.nav-toggle:checked ~ nav a{
    opacity: 1;
    
    transition: opacity 400ms ease-in-out 400ms;
}


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

    .nav-toggle-lable{
        display: none;
    }
    
    
    header {
        display: grid;
        grid-template-columns: 1fr auto minmax(600px, 5fr) 1fr;
    }

    .logo{
        grid-column: 2 / span 1;
    }

    nav {
        all: unset;
        grid-column: 3 / 4;
        display:  flex;
        justify-content: flex-end;
        align-items: center;
    }

    nav a{
        opacity: 1;
        position: relative;
    }

    nav ul {
        display: flex;
        font-size: .9rem;

    }

    nav li {
        margin-left: 1.5rem;
        margin-bottom: 0;
    }


    nav a::before {
        content: '';
        display: block;
        height: 5px;
        background: var(--color1);
        position: absolute;
        top: -.75em;
        left: 0;
        right: 0;
        transform: scale(0,1);
        transition: transform ease-in-out 300ms;


    }

    nav a:hover::before {
        
        transform: scale(1,1);
        

    }



}