:root {
    --navigation-bars-template-2-primary-color: #9c9c8f;
}

#navigation-bars-template-2 header{
    padding: 1.25rem;
    position: sticky;
    top: 0;
}

#navigation-bars-template-2 .navigation{
    max-width: 800px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#navigation-bars-template-2 .menu-icon {
    cursor: pointer;
    z-index: 2;
}

#navigation-bars-template-2 .menu-icon div {
        width: 32px;
        height: 2px;
        margin-block: 7px;
        border-radius: 3px;
        background-color: #000;
        transition-duration: 0.3s;
    }

    #navigation-bars-template-2 .menu-icon-clicked div:nth-of-type(1) {
        transform: rotate(45deg) translate(8px, 4px);
    }

    #navigation-bars-template-2 .menu-icon-clicked div:nth-of-type(2) {
        transform: rotate(-45deg) translate(1px, 1px);
    }

    #navigation-bars-template-2 .menu-icon-clicked div:nth-of-type(3) {
        opacity: 0;
    }

#navigation-bars-template-2 .menu-items a{
    display: inline-block;
    color: black;
    text-decoration: none;
}

@media(max-width: 599px){
    #navigation-bars-template-2 .menu-items{
        border: 1px solid black;
        position: fixed;
        top: 0;
        left: 0;
        padding-top: 75px;
        background-color: var(--navigation-bars-template-2-primary-color);
        margin-left: -140px;
        z-index: 1;
    }

    #navigation-bars-template-2 .menu-items a{
        width: 100%;        
        border-top: 1px solid black;
        padding: 10px 20px;
    }

    #navigation-bars-template-2 .menu-items a:hover{
        box-shadow: inset 0 0 20px 0 rgba(0,0,0,0.5);
    }
}

@media(min-width: 600px){
    #navigation-bars-template-2 .menu-icon {
        display: none;
    }

    #navigation-bars-template-2 .menu-items{
        margin-left: 0;
    }

    #navigation-bars-template-2 .menu-items ul {
        display: flex;
    }

    #navigation-bars-template-2 .menu-items a{
        margin-right: 15px;
    }

    #navigation-bars-template-2 .menu-items a:hover{
        transform: scale(1.1);
        transition-duration: 0.25s;
    }
}

@keyframes showSidebar {
    from {
        margin-left: -140px;
    }

    to {
        margin-left: 0;
    }
}

@keyframes hideSidebar {
    from {
        margin-left: 0;
    }

    to {
        margin-left: -140px;
    }
}