.burger {
    display:none;
    align-content: center;
    height: 100%;
    position: relative;
}

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

@media screen and (max-width: 768px) {
    /*TODO: Either set width to 0% or adjust initial position and keep overflow:hidden on body to fix element weirdly when resized
    Display: none may just be the best option. It would prevent tab-indexing and be the cleanest solution, but the slide animation 
    may not work*/
    body {
        overflow-x: hidden;
    }

    .nav-links {
        display: none;
        height: calc(100vh - 6rem);
        z-index: 5;
        box-shadow: 0px 2px 2px black;

        position: absolute;
        right: 0px;
        top: 100%;

        background-color: var(--background);
        flex-direction: column;
        align-items: center;
        width: 30%;
        transform: translateX(101%);
        transition: transform 0.25s ease-in;
    }  

    .visible-flex {
        display:flex;
    }

    .nav-links li {
        opacity: 0;
        width:100%;
    }

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

    .nav-active {
        transform: translateX(0%)
    }

    /*when this class is added to an object, its animation will play*/
    .animate-links {
        animation: navLinkFade .5s forwards;
    }

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

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

    .toggle .line2 {
        opacity:0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);

    }

}
/* https://www.youtube.com/watch?v=gXkqy0b4M5g*/ 