:root{
    --background-bg-color: #fafbfd;
    --footer-bg-color: #00587e;
    --text-bg-color: #dce9ef;
    --nav-color: #3286aa;
    --container-bg-color: #91bbd1;
}

html{
    height: 100%;
}

*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body{
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--background-bg-color);
}

.spacer{
    width: 100%;
    height: 8vh;
    background: var(--container-bg-color);
}

nav{
    display: flex;
    
    justify-content: space-around;
    align-items: center;
    min-height: 8vh;
    font-family: "Poppins", sans-serif;
    background-color: var(--nav-color);
    
}

#nav-container{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    transition: top 0.3s; 
}

.logo{
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 20px;
    color: var(--text-bg-color);
}

.logo a{
    color: var(--text-bg-color);
    text-decoration: none;
}

.nav-links{
    display: flex;
    justify-content: space-around;
    width: 40%;
    transition: top 0.3s; 
}

.nav-links li{
    list-style: none;
}

.nav-links a{
    color: var(--text-bg-color);
    text-decoration: none;
    letter-spacing: 3px;
    font-weight: bold;
    font-size: 14px;
}

.burger{
    display: none;
}

.burger div{
    width: 25px;
    height: 3px;
    background-color: var(--text-bg-color);
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 1000px){
    .nav-links{
        width: 60%;
    }
}

@media screen and (max-width: 500px){
    body{
        overflow-x: hidden;
    }
    .nav-links{
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--nav-color);
        display: none;
        flex-direction: column;
        align-items: center;
        width: 55%; /* how much space the nav bar takes up */
        transform: translateX(100%);
    }

    .nav-links li{
        opacity: 0;
    }

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

@media screen and (max-width: 480px){
    #home img{
        float: none;
    }
}

.nav-active{
    display: flex;
    transform: translateX(0%);
    transition: transform 0.5s ease-in;
}

@keyframes navLinkFade{
    from{
        opacity: 0;
        transform: translateX(50px);
    }
    to{
        transform: translateX(0px);
        opacity: 1;
    }
}

.toggle .line1{
    transform: rotate(-45deg) translate(-5px, 6px);  
}
.toggle .line2{
    opacity: 0;
}
.toggle .line3{
    transform: rotate(45deg) translate(-5px, -6px);
}

#home{
    background-color: var(--container-bg-color);
    font-family: "Montserrat", sans-serif;
}

#home img{
    margin: 30px;
    margin-left: 50px;
    float: left;
    cursor: context-menu;
    border-radius: 50%;
}

.home-container{
    color: var(--text-bg-color);
    margin: 35px;
}

.home-container h1{
    font-size: 40px;
    font-weight: bold;
    color: rgb(46, 53, 59);
    margin-bottom: 6px;
    text-decoration: underline;
}

p{
    font-size: 25px;
    text-align: center;
}

#date{
    font-size: 20px;
    color: #517379;
}

footer{
    background-color: var(--footer-bg-color);
    margin-top: auto;
}

footer p{
    text-align: center;
    color: var(--text-bg-color);
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
    padding: 5px;
}

#social-list{
    list-style-type: none;
    display: flex;
    justify-content: center;
}

#social-list li{
    margin: 20px;
}

#projects{
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
}

.project-container{
    margin: 10px;
    padding-left: 20px;
    width: 80%;
}

.project-container h2{
    font-size: 27px;
    color: #24292e;
}

.project-container p{
    text-align: left;
    font-size: 17px;
}

.project-container img{
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.project-anchor{
    font-size: 23px;
    padding-top: 10px;
}

.sub-text{
    font-size: 17px;
    color: rgb(51, 51, 51);
    font-style: italic;
}