

/* make scrolling smooth */
html{
    scroll-behavior: smooth;
}

/* 
 get rid of padding & sizing on body so
 header is at top
*/
body{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* add some padding back to rest of page */
main{
    padding: 2vw;
}

/* navbar */
.navbar{
    display: flex;
    flex-direction: column;
}
header {
    background-color: black;
    
    border: none;
    position: relative;
}

header h1{
    color: white;
    justify-self: center;
    font-size: 20px;
}


/* logo */
.logo{
    display: flex;
    width: 100px;
    height: 100px;
    justify-content: center;
    margin: auto ;
}


/* navigation list */

header li{
    justify-self: center;
    color: white;
    list-style-type: none;
    padding: 0.5em 0;
}


/*  
 style all a tags in header 
 and then on hover
*/
header a{
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 1.1rem 1.35rem;
    letter-spacing: 2px;
    display: inline-block;
    background-color:black;
    border-radius:5px;
}

header a:hover, header a:focus{
    filter:invert(100%) ;
    text-decoration: underline; 
}




/* 
media query for non-mobile nav bar
min-width set to width of nav elements 
such that no text wraps 
*/
@media (max-width: 599.99px) {
    
    header ul{
        justify-self: center;
        align-self: center;
        margin: auto;
        width: 100px;
        margin-bottom: 0;
    }
    .navbar{
        align-items: center;
        margin: auto;

    }
    .navbar li{
        margin: auto;

    }
}
@media (min-width: 600px) and (max-width: 999.99px) {
    
    header ul{
        justify-self: center;
        align-self: center;
        margin: auto;
        width: 100px;
        margin-bottom: 0;
    }
    .navbar{
        align-items: center;
        margin: auto;

    }
    .navbar li{
        margin: auto;

    }
}
@media screen and (min-width: 1000px) {
    header a{
        display: flex;
        justify-content: space-between;
        flex-direction: row;
    }
    .navbar{
        flex-direction: row;
    }
    header ul{
        display: flex;
        justify-content: space-evenly;
        width: auto;
        margin-bottom: 0;
    } 
    
}






.hamburgerMenu {
    display:none;
    cursor: pointer;
    justify-self: right;
    position: absolute;
    right: 25px; /*google ai*/
    top: 30px;
 
    
  }
  .hamburgerMenu:hover, .hamburgerMenu:focus{
    background-color: black;
    padding: 3px;
    filter: invert(100%);
  }
  
.bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: white;
    margin: 6px 0;
    justify-self: right;
    transition: 0.4s;
    border-radius: 3px;
  }
  
.change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
  }
  
.change .bar2 {opacity: 0;}
  
.change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
  }


/* For nav bar to behave on smaller screens. */
@media screen and (max-width:999px) {
    .hamburgerMenu {
        display: inline-block;
    }
    .nav-links ul {
        display:none;
    }
    .nav-links ul.show {
        display:block;
    }
}