* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
li {
    list-style: none;
}

a {
    text-decoration: none;
}

.header{
    color: var(--color-text);
    background: var(--color-fog);
    position: fixed;
    top:0;
    width:100%;
    z-index:1;
    border-radius: 0 0 2rem 2rem;
    padding:0 3rem;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;   
}
.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    font-size: 1.125rem;
    text-transform: none;
    letter-spacing: 0px;
    padding: 1.5rem 0;
}
.nav-item {
    margin-left: 0;
}
.nav-link{
    padding: 10px 24px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease-in;
}
.nav-link:hover{
    color: var(--color-sageDarker); 
}
/* hiding the mobile button until too small to display the navigation items */
.hamburger {
    display: none;
    padding: .25rem 1.5rem;
    position: relative;
    top: 0;
    right:10px;
    border-radius: 1.125rem; 
    border:0px;
    background: var(--color-sageDarker);
}
.hamburger:focus,
.hamburger:hover {
    background: var(--color-sageDarker);
    color: #fff;
} 
.bar {
    display: block;
    width: 24px;
    height: 1px;
    margin: 6px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #ffffff;
}
/* Responsive text and padding resizing  */
@media screen and (min-width: 768px) and (max-width:874px){ 
	.nav-item {
        font-size: .85rem;
    }
	.nav-link, .nav-link:hover {
        padding: 10px 16px;
    }
    .nav-logo img{
        max-width:175px;
    }
}  
@media screen and (min-width: 875px) and (max-width:1000px){ 
	.nav-item {
        font-size: .85rem;
        text-align:center;
    }
	.nav-link, .nav-link:hover {
        padding: 10px 16px;
    }
    
}    
@media screen and (min-width: 1000px) and (max-width:1100px){ 
	.nav-item {
        font-size: .95rem;
        text-align:center;
    }
	.nav-link, .nav-link:hover {
        padding: 10px 16px;
    }   
}    
/* mobile menu styles */  
@media only screen and (max-width: 768px) {
    .header{
        border-radius: 0 0 1.5rem 1.5rem;
        padding:.5rem 0 .5rem 1rem;
    }
    .nav-menu {
        position: fixed;
        display: flex;
        justify-content: center;
        right: -100%;
        top: 2.25rem;
        flex-direction: column;
        background-color: var(--color-fog);
        width: 100%;
        height: calc(100vh - 2.25rem);
        font-size: 1.5rem;
        border-radius: none;
        text-align: right;
        transition: 0.35s;
        outline: 1px #fff solid;
        outline-offset: -15px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        margin: 1em 0;
        
    }
    .nav-link {
        margin: 20px 0;
        border-bottom:1px dashed var(--color-sage);
    }
    .nav-logo img{
        max-width:200px;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        -webkit-transform: translateY(6px) rotate(45deg);
        transform: translateY(6px) rotate(35deg);
        width: 22px;
    }

    .hamburger.active .bar:nth-child(3) {
        -webkit-transform: translateY(-8px) rotate(-45deg);
        transform: translateY(-8px) rotate(-35deg);
        width: 22px;
    }
    
}
@media only screen and (max-width: 375px) {
    .nav-logo img{
        max-width:200px;
    }
   
}
