@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

@font-face {
    font-family: Whitney;
    src: url(https://cdn.jsdelivr.net/gh/Tyrrrz/DiscordFonts@master/whitney-400.woff);
    font-weight: 400;
}

:root {
    --main: #2a72df;
    --main-lg: #1951a6;
    --background: #0a0a10;
    --input-bg: #11111b;
    --lighter-bg: #232338;
    --light-bg: #1c1c28;
    --secondary: #2d2d33;
    --secondary-lg: #262637;
    --correct: #57F287;
    --incorrect: #ed4245;
    --yellow: #FEE75C;
    --magenta: #EB459E;
    --funny: #D19A66;
}

body {
    margin: 0;
    background-color: var(--background);
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 100px 60px 0;
}

.container .con {
    background-color: var(--secondary-lg);
    border-radius: 8px;
}

.con:first-child {
    flex-basis: calc(30% - 45px);
    padding: 20px 10px;
}

.con:last-child {
    flex-basis: calc(70% - 25px);
    padding: 20px;
}

.userbox h3, .userbox p {
    margin: 0;
}

.userbox h3 {
    width: 300px;
    font-size: 18px;
    max-width: 90%;
    min-width: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.userbox p {
    font-size: 14px;
}

.userbox p:last-child {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.userbox h3 span {
    color: rgba(255, 255, 255, 0.7);
}

.con .separator {
    display: block;
    height: .5px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 10px;
}

.con .sep {
    display: block;
    width: 100%;
    height: 1px;
    background-color: white;
    margin: 5px 0 40px;
}

.con .sep.red {
    background-color: var(--incorrect);
}

.userbox {
    margin: 0 10px;
    position: relative;
}

.con .logout {
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
}

.con .logout svg path {
    fill: var(--incorrect);
}

.con:last-child h3 {
    text-transform: uppercase;
    margin: 0;
}

.con:last-child h3.red {
    color: var(--incorrect);
}

.con:last-child h3:not(:first-child) {
    margin: 40px 0 0;
}

.con input {
    padding-left: 10px;
    border-radius: 8px;
    height: 40px;
    width: 100%;
    background-color: var(--input-bg);
    color: white;
    font-family: "Poppins", sans-serif;
    border: 2px solid #4d4d70;
}

.con input:focus {
    outline: none;
    border: 2px solid var(--main);
}

.con input:disabled {
    cursor: not-allowed;
    background-color: #4d4d70;
}

button.update {
    font-family: "Poppins", sans-serif;
    margin-top: 10px;
    cursor: pointer;
    height: 40px;
    float: right;
    padding: 10px 20px;
    background-color: var(--main);
    border-radius: 8px;
    border: none;
    color: white;
}

button.update:hover {
    background-color: var(--main-lg);
}

.displayname {
    display: flex;
    align-items: center;
}

.displayname .update {
    display: none;
    margin-left: 4px;
    margin-top: 0;
}

#errors {
    z-index: 99;
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column-reverse;
}

.error {
    margin: 10px;
}

.error-content {
    font-family: "Whitney", "Helvetica Neue", Helvetica, Arial, sans-serif;
    position: relative;
    background-color: #6B2629;
    border-radius: 4px;
    margin: auto;
    padding: 0;
    border: 2px solid #ED4245;
    width: 400px;
}

.error-body {
    padding: 2px 16px;
    color: rgba(255, 255, 255, 0.9)
}

.error-body p {
    margin: 10px 0;
}

.error-body .close {
    cursor: pointer;
    position: absolute;
    font-size: 24px;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.passfield {
    display: flex;
    position: relative;
}

.displayname .passfield {
    width: 100%;
}

.passfield .toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

.toggle svg path {
    fill: rgba(255, 255, 255, .7);
}

.toggle:hover svg path {
    fill: var(--main);
}

.toggle span.hidden {
    display: none;
}

button.remove {
    margin-top: 10px;
    cursor: pointer;
    height: 40px;
    font-family: "Poppins", sans-serif;
    padding: 10px 20px;
    background-color: var(--incorrect);
    border-radius: 8px;
    border: none;
    color: white;
}

button.remove:hover {
    background-color: #9f2e30;
}

.nomargin {
    margin: 0;
}

.pcqr p {
    margin: 4px 0;
    padding: 10px;
    cursor: pointer;
}

.pcqr p:hover {
    background-color: #4d4d70;
    border-radius: 8px;
}

.footer {
    margin-top: 30px;
    height: 70px;
    align-items: center;
    display: flex;
    padding: 0 60px;
    background-color: var(--light-bg);
}

.footer p, .footer div {
    color: white;
    font-family: "Poppins", sans-serif;
}

.footer p a {
    text-decoration: none;
    color: var(--main);
    font-weight: 900;
}

.footer p {
    margin-left: auto;
}

.footer div a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1350px) {
    .userbox h3 {
        width: 250px;
    }
}

@media (max-width: 1200px) {
    .userbox h3 {
        width: 200px;
    }
}

@media (max-width: 1000px) {
    .userbox h3 {
        width: 150px;
    }

    .container {
        padding: 100px 30px 0 30px;
    }

    .footer {
        padding: 0 30px;
    }
}

@media (max-width: 900px) {
    .userbox h3 {
        width: 90%;
    }

    .pcqr {
        display: none;
    }

    .con:first-child {
        margin-bottom: 10px;
        padding: 20px 0px;
    }

    .con:last-child {
        padding: 20px 10px;
    }

    .con:last-child p.nomargin {
        font-size: 12px;
    }

    button.remove {
        padding: 0 4px;
    }

    .con:first-child, .con:last-child {
        flex-basis: 100%;
    }
}


@media (max-width: 650px) {
    .userbox h3 {
        width: 500px;
    }
}

@media (max-width: 590px) {
    .userbox h3 {
        width: 380px;
    }
}

@media (max-width: 500px) {
    .container {
        padding: 100px 15px 0 15px;
    }

    .footer {
        font-size: 12px;
    }
}

@media (max-width: 440px) {
    .userbox h3 {
        width: 350px;
    }
}

@media (max-width: 410px) {
    .userbox h3 {
        width: 300px;
    }
}


@media (max-width: 360px) {
    .userbox h3 {
        width: 250px;
    }
}