main {
    height: 60vh;
}
main > div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
#i-register-register {
    display: none;
    animation: fadein .2s linear;
}
#i-register-login {
    animation: fadein .2s linear;
}
#register-login {
    display: grid;
    transition: height .2s linear;
    grid-template-columns: 1fr;
    width: 90%;
    overflow: hidden;
    background: white;
    filter: drop-shadow(0px 0px 18px var(--shadow));
    border-radius: 10px;
}
input[type=password], input[type=text], input[type=email] {
    display: block;
    outline: none;
    background: #aaafb3;
    border: none;
    border-bottom: var(--theme) 2px solid;
    margin: 1vh auto;
    width: 80%;
    padding: 1vh;
    color: white;
    font-size: 2vh;
}
.button {
    display: block;
    background: var(--theme);
    border: none;
    outline: none;
    margin: 1vh;
    margin: 1rem auto;
    padding: 1vh;
    color: white;
    font-size: 2vh;
    transition: all .2s;
}
input[type=submit]:disabled {
    opacity: 0.2;
}
.panel-left {
    padding: 1rem;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.panel-right {
    width: 100%;
    height: 100%;
    padding: 1vw;
    overflow: hidden;
    padding: 0;
    border-radius: 0px 10px 10px 0px;
}
html {
    height: 100%;
}
body {
    background-color: #1c495c;
    background-repeat: repeat;
    background: linear-gradient(25deg, rgba(28,73,92,1) 14%, rgba(34,110,142,1) 100%);
    margin: 0;
    height: 100%;
}
#login-preview {
    animation: login-preview-anim linear infinite 120s;
    justify-content: center;
    align-items: center;
}
@keyframes login-preview-anim {
    0% {
        background-position: 0 0;
    }
    25% {
        background-position: -40% -20%;
    }
    50% {
        background-position: -80% -60%;
    }
    75% {
        background-position: -20% -40%;
    }
    100% {
        background-position: 0 0;
    }
}
@keyframes fadein {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
.login-error {
    background: red;
    color: white;
    padding: 1vh;
    width: 80%;
}
.reg-switch {
    text-decoration: underline;
    margin-top: 5vh;
    cursor: pointer;
    display: block;
}
#crop-modal {
    position: fixed;
    top: 10vh;
    background: var(--navbar);
    width: 20vw;
    max-height: 75vh;
    display: none;
    padding: 1vw;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    overflow: hidden;
    box-shadow: 0px 0px 0px 100vw rgba(0,0,0,0.5);
}
#crop-image-container {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 70vh;
}
#crop-image {
    max-width: 100%;
}
#pf-prev-container {
    display: none;
    width: 15vw;
    aspect-ratio: 1;
    border-radius: 50%;
    text-align: center;
    background: var(--loader);
    filter: drop-shadow(0px 0px 15px var(--shadow));
    overflow: hidden;
    cursor: pointer;
}
#pf-prev-container > .icon {
    opacity: 0.25;
}
#pf-prev-container:hover > .icon {
    opacity: 1;
}
#pf-prev-container > .icon {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    height: 100%;
}
#pf-prev-pfp {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    height: 100%;
}
/* * {
    outline: white solid 1px;
} */
 nav > img {
    display: none;
 }
 nav > ul {
    display: none;
 }
 .panel-right {
     display: none;
 } 
 @media (min-width: 768px) {
    .panel-right {
        display: flex;
    }
    #register-login {
        grid-template-columns: 1fr 1fr;
    }
 }