@keyframes slide-in {
    0% {
        right: -250px;
        box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.5), 0 0 0 100vmax rgba(0, 0, 0, 0);
    }

    100% {
        right: 0;
        box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.5), 0 0 0 100vmax rgba(0, 0, 0, 0.25);
    }
}

@keyframes slide-out {
    0% {
        right: 0;
        box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.5), 0 0 0 100vmax rgba(0, 0, 0, 0.25);
    }

    100% {
        right: -250px;
        box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.5), 0 0 0 100vmax rgba(0, 0, 0, 0);
    }
}

@keyframes slide-in-bottom {
    0% {
        top: 150%;
        box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.5), 0 0 0 100vmax rgba(0, 0, 0, 0);
    }

    100% {
        top: 50%;
        box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.5), 0 0 0 100vmax rgba(0, 0, 0, 0.25);
    }
}

header {
    position: sticky;
    top: 0;
    z-index: 500;
}

#nav-bar {
    display: flex;
    width: 100%;
    height: 60px;
    background-color: var(--mn-color);
    border-bottom: 5px solid var(--ac-color);
    justify-content: space-between;
    overflow: hidden;
}

#nb-logo {
    width: 200px;
    height: auto;
    text-decoration: none;
    font-size: var(--nb-logo-size);
    font-family: var(--puw-font);
    font-weight: var(--nb-logo-wght);
    text-align: center;
    color: var(--menu-color);
}

#nb-links, #nb-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#nb-links {
    width: 800px;
    margin: 0px auto;
}

#nb-links a {
    text-decoration: none;
}

.nav-link {
    font-size: var(--des-size);
    font-family: var(--des-font);
    font-weight: var(--lex-wght);
    color: var(--menu-color);
}

.nl-underline {
    display: block;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 100px;
    transition-timing-function: ease-in-out;
    transition-duration: 0.4s;
}

#nb-links a:hover .nl-underline, .nl-underline[aria-label="selected"] {
    background-color: var(--ac-color);
    transition-timing-function: ease-in-out;
    transition-duration: 0.4s;
}

#nb-buttons {
    width: 160px;
    margin-left: auto;
}

.si-button, .menu-button {
    height: 42px;
    background-color: var(--ac-color);
    border-color: var(--ac-color);
    border-style: solid;
    border-radius: 100px;
    border-width: 4px;
    font-size: 18px;
    font-family: var(--des-font);
    font-weight: var(--lex-wght);
    color: var(--menu-color);
    transition-timing-function: ease-in-out;
    transition-duration: 0.4s;
}

.si-button {
    width: 115px;
}

.menu-button {
    display: none;
    width: 60px;
}

.menu-button img {
    width: 20px;
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
    margin: auto;
    justify-content: center;
}

.si-button:hover, .menu-button:hover  {
    background-color: var(--menu-color);
    color: var(--ac-color);
    transition-timing-function: ease-in-out;
    transition-duration: 0.4s;
}

.menu-button:hover img {
    filter: invert(55%) sepia(88%) saturate(450%) hue-rotate(175deg) brightness(103%) contrast(102%);
}

#nav-menu, #nav-menu.active {
    display: none;
}

@media (max-width: 1000px) {
    #nb-links {
        display: none;
    }

    #nb-buttons {
        width: 250px;
    }

    .menu-button {
        display: flex;
    }

    #nav-menu.active::before {
        content: "";
        width: 100vw;
        height: 100vh;
        position: fixed;
        z-index: 501;
        top: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0);
    }

    #nav-menu.active {
        display: block;
        width: 250px;
        height: 100vh;
        position: fixed;
        z-index: 502;
        top: 0;
        background-color: var(--menu-color);
        border: 5px solid var(--ac-color);
        overflow-y: none;
        overflow-x: none;
        pointer-events: all;
        animation: slide-in 1s forwards;
    }   
    
    #nav-menu.active #nm-buttons, #nav-menu.active #nm-links {
        display: flex;
        position: relative;
        width: 250px;
        z-index: 503;
    }
    
    #nav-menu.active #nm-buttons {
        height: 60px;
        justify-content: space-around;
        align-items: center;
    }

    #nav-menu.active #nm-links {
        height: 440px;
        flex-wrap: wrap;
        flex-direction: column;
    }

    #nav-menu.active #nm-links a {
        text-decoration: none;
        text-align: center;
        margin: 20px 0;
    }

    #nav-menu.active #nm-links .navm-link {
        font-size: 25px;
        font-family: var(--des-font);
        font-weight: var(--lex-wght);
        color: var(--ac-color);
    }

    .nml-underline {
        display: block;
        width: 80%;
        height: 4px;
        background-color: rgba(255, 255, 255, 0);
        border-radius: 100px;
        margin: auto;
        justify-content: center;
        transition-timing-function: ease-in-out;
        transition-duration: 0.4s;
    }

    #nav-menu.active #nm-links a span.nml-underline[aria-label="selected"], 
    #nav-menu.active #nm-links a:hover span.nml-underline {
        background-color: var(--ac-color);
        transition-timing-function: ease-in-out;
        transition-duration: 0.4s;
    }
}

#sign-in-window {
    display: none;
}

#sign-in-window.active::before {
    content: "";
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 601;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0);
}


#sign-in-window.active {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 800px;
    height: 500px;
    position: fixed;
    z-index: 602;
    left: 50%;
    margin-top: -250px;
    margin-left: -400px;
    background-color: var(--menu-color);
    border: 5px solid var(--ac-color);
    border-radius: 60px;
    overflow: none;
    pointer-events: all;
    animation: slide-in-bottom 1s forwards;
}

#sign-in-window.active form {
    display: flex;
    position: relative;
    z-index: 603;
    flex-wrap: wrap;
    flex-direction: column;
}

#sign-in-window.active form #siw-title {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 300px;
    height: 150px;
    margin: auto;
    justify-content: center;
}

#sign-in-window.active form div h1 {
    font-size: var(--tit-size);
    font-family: var(--tit-font);
    font-weight: var(--tit-wght);
    color: var(--ac-color);
    text-align: center;
}

#sign-in-window.active form div a {
    text-decoration: underline;
    font-size: var(--des-size);
    font-family: var(--des-font);
    font-weight: var(--lex-wght);
    color: var(--ac-color);
    text-align: center;
    /*margin: -40px auto auto auto;*/
}

#sign-in-window.active form .siw-inputs {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 650px;
    height: 100px;
    margin: auto;
    justify-content: center;
}

#sign-in-window.active form .siw-inputs label {
    height: 50px;
    font-size: 30px;
    font-family: var(--tit-font);
    font-weight: var(--tit-wght);
    color: var(--ac-color);
    margin-left: 10px;
    margin-bottom: 5px;
}

#sign-in-window.active form .siw-inputs input {
    display: block;
    width: auto;
    height: 30px;
    padding: 5px;
    border: 5px solid var(--ac-color);
    border-radius: 50px;
    font-size: var(--des-size);
    font-family: var(--puw-font);
    font-weight: var(--lex-wght);
    color: var(--ac-color);
    outline: none;
}

#sign-in-window.active form #siw-buttons {
    display: flex;
    width: 650px;
    height: 60px;
    margin: 50px auto;
    justify-content: space-around;
}

#sign-in-window.active form #siw-buttons button, #sign-in-window.active form #siw-buttons input {
    width: 190px;
    height: 50px;
    background-color: var(--ac-color);
    border-color: var(--ac-color);
    border-style: solid;
    border-radius: 100px;
    border-width: 4px;
    outline: none;
    font-size: 20px;
    font-family: var(--des-font);
    font-weight: var(--lex-wght);
    color: var(--menu-color);
    transition-timing-function: ease-in-out;
    transition-duration: 0.4s;
}

#sign-in-window.active form #siw-buttons button:hover, #sign-in-window.active form #siw-buttons input:hover {
    background-color: var(--menu-color);
    color: var(--ac-color);
    transition-timing-function: ease-in-out;
    transition-duration: 0.4s;
}

@media (max-width: 820px) {
    #sign-in-window.active {
        width: 350px;
        height: 600px;
        margin-top: -300px;
        margin-left: -175px;
    }

    #sign-in-window.active form .siw-inputs {
        width: 250px;
        height: 100px;
    }

    #sign-in-window.active form #siw-buttons {
        flex-wrap: wrap;
        flex-direction: column;
        width: 200px;
        height: 200px;
    }
}

#sign-up {
    display: none;
    width: 0px;
    height: 0px;
    visibility: hidden;
}

#sign-in-window.sign-up #sign-in {
    display: none;
    width: 0px;
    height: 0px;
    visibility: hidden;
}

#sign-in-window.sign-up #sign-up {
    display: flex;
    width: auto;
    height: auto;
    visibility: visible;
}
