#login-modal.show {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-transform: translate(-54.4%, 0);
        -ms-transform: translate(-54.4%, 0);
            transform: translate(-54.4%, 0);
    opacity: 1;
}

#login-modal {
    -webkit-transform: translate(-200vw, 0);
        -ms-transform: translate(-200vw, 0);
            transform: translate(-200vw, 0);
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;

    position: fixed;
    width: 300px;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    top: 5vh;
    left: 50vw;

    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    border-radius: 10px;
    overflow: hidden;
    z-index: 15;
    /*opacity: 0;*/
    /*transition: transform .5s ease, opacity .5s ease;*/
    -webkit-animation-name: login-modal-open;
            animation-name: login-modal-open;
    -webkit-animation-duration: 0.5s;
            animation-duration: 0.5s;
    -webkit-animation-fill-mode: forwards;
            animation-fill-mode: forwards;
}

@-webkit-keyframes login-modal-open {
    from { -webkit-transform: translate(-100%, 0); transform: translate(-100%, 0) }
    to { -webkit-transform: translate(-54.4%, 0); transform: translate(-54.4%, 0) }
}

@keyframes login-modal-open {
    from { -webkit-transform: translate(-100%, 0); transform: translate(-100%, 0) }
    to { -webkit-transform: translate(-54.4%, 0); transform: translate(-54.4%, 0) }
}

#login-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin: 10px;
    height: 50px;
}

.hide-login-modal {
    width: 50px;
    height: 50px;
    padding: 0;
    background-color: transparent;
    border-style: none;
}

.hide-login-modal:hover {
    cursor: pointer;
}

.hide-login-modal > svg {
    pointer-events: none;
}

#login-body, #register-body {
    padding: 1rem 2rem;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity .5s ease, visibility .5s ease;
    -o-transition: opacity .5s ease, visibility .5s ease;
    transition: opacity .5s ease, visibility .5s ease;
}

#login-body.show,
#register-body.show {
    opacity: 1;
    visibility: visible;
}

#login-submit, #register-submit {
    background-color: #00BBFF;
    border-color: #00BBFF;
    border-width: 0;
    color: #FFFFFF;
    display: block;
    margin: 10px auto;
    padding: 15px 50px;
    text-transform: uppercase;
    width: 100%;
    border-radius: 3px;
}

#login-submit:hover,
#register-submit:hover {
    cursor: pointer;
    background-color: #00A4E4;
}

@media (min-width: 400px) {
    #login-modal {
        width: 380px;
    }
}

@media (min-width: 600px) {
    #login-modal {
        width: 500px;
    }
}