@import url("./fonts/font.css");

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #1e1e1e;
    align-items: center;
    justify-content: center;
    text-align: center;
}
footer > p {
    padding: .5rem;
    margin-top: 1.25em;
    display: inline-block;
}
body {
    background-color: #2e2e2e;
    font-family: "NotoSans", "Roboto", "Helvetica Neue", "Arial", sans-serif;
    color: white;
    margin: 0;
    text-align: center;
}
body > div {
    text-align: center;
    max-width: 25rem;
    border-radius: 5px;
    padding: 1rem;
    position: absolute;
    display: inline-block;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #1e1e1e;
}
.seperator {
    margin: 1rem 0;
    border-bottom: 1px solid #3e3e3e;
}
.login {
    position: relative;
    margin: .35rem;
    border-radius: 5px;
    border: none;
    background: #3e3e3e;    
    color: white;
    font-size: 1.25rem; 
    display: inline-block;
    padding: .5rem;
    width: 100%;
    max-width: calc(100% - 2rem);
    transition: all 150ms ease-in-out;
}
.login:hover {
    cursor: pointer;
    scale: 99%;
}
.roblox {
    background-color: #1f78ac;
    scale: 100%;
}
.roblox:hover {
    cursor: not-allowed;
    background-color: #1f78ac;
    scale: 100%;
}
.roblox.active {
    background-color: #2BB1FF;
}
.roblox.active:hover {
    cursor: pointer;
    background-color: #258dca;
    scale: 99%;
}
.discord {
    background-color: #4a5990;
    scale: 100%;
}
.discord:hover {
    cursor: not-allowed;
    scale: 100%;
    background-color: #4a5990;
}
.discord.active {
    background-color: #7289da;
}
.discord.active:hover {
    cursor: pointer;
    background-color: #596bac;
    scale: 99%;
}
.link {
    background-color: #6d1c8d;
    color: #AAA;
}
.link:hover {
    cursor: not-allowed;
    scale: 100%;
}
.link.active {
    color: white;
    background-color: #9744b8;
}
.link.active:hover {
    scale: 99%;
    cursor: pointer;
    background-color: #6b2b89;
}
.loading, .check {
    border-radius: 5px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    position: absolute;
    display: none;
}
.loading:hover, .check:hover {
    cursor: not-allowed;
}
.check > img {
    margin-top: 0.25rem;
}

#error, #success {
    z-index: 1;
    padding: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    background-color: #d32f2f;
    color: white;
    display: none;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translate(-50%, 0);
    height: 5.5rem;
}
#error > p, #success > p {
    padding: .5rem;
}
#success {
    background-color: #43a047;
}

@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}

.loading > img {
    position: absolute;
    top: 0.3rem;
    left: 46%;
    width: 2rem;
    height: 2rem;
    transform: translate(-50%, -50%);
    filter: brightness(0) invert(1);
    animation: spin 1s linear infinite;
}

@media (max-width: 799px) {
    body > div {
        padding: 1rem;
        width: 100%;
        position: fixed;
    }
    body > div > p {
        padding-left: .5rem;
        padding-right: .5rem;
    }
}

@media (max-width: 479px) {
    body > div {
        padding: 1rem;
        border-radius: 0;
        max-width: none;
    }
    body {
        background-color: #1e1e1e;
    }
}