@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');


/* ==================================================
   PAGE
   ================================================== */

html,
body {
    margin: 0;

    min-height: 100%;

    background:
        #050505;
}


body {
    font-family:
        "VT323",
        monospace;
}


.profile-page {
    min-height:
        100vh;

    box-sizing:
        border-box;

    display:
        flex;

    justify-content:
        center;

    align-items:
        flex-start;

    padding:
        55px 18px;

    background:

        radial-gradient(
            circle at 18% 20%,
            rgba(125, 0, 25, 0.18),
            transparent 25%
        ),

        radial-gradient(
            circle at 80% 75%,
            rgba(255, 255, 255, 0.04),
            transparent 25%
        ),

        linear-gradient(
            135deg,
            #030303,
            #0b0608,
            #020202
        );

    color:
        #ededed;
}


/* ==================================================
   WINDOW
   ================================================== */

.profile-window {
    width:
        680px;

    max-width:
        94%;

    background:
        #080808;

    border:
        2px solid #8d1022;

    box-shadow:

        8px 8px 0 #1c0005,

        0 0 32px
        rgba(160, 0, 25, 0.18);
}


/* ==================================================
   TOP BAR
   ================================================== */

.profile-topbar {
    display:
        flex;

    justify-content:
        space-between;

    padding:
        8px 11px;

    background:
        #7c0d1d;

    color:
        white;

    border-bottom:
        2px solid #250005;

    font-size:
        18px;

    letter-spacing:
        2px;
}


/* ==================================================
   CHECKERS
   ================================================== */

.profile-checkers {
    height:
        14px;

    background:

        repeating-linear-gradient(
            90deg,
            white 0px,
            white 14px,
            black 14px,
            black 28px
        );
}


.bottom-checkers {
    opacity:
        0.4;
}


/* ==================================================
   CONTENT
   ================================================== */

.profile-content {
    padding:
        32px;
}


.profile-small {
    margin:
        0;

    color:
        #787878;

    font-size:
        14px;

    letter-spacing:
        4px;
}


.profile-content > h1 {
    margin:
        5px 0;

    color:
        white;

    font-size:
        44px;

    font-weight:
        normal;

    letter-spacing:
        5px;

    text-shadow:
        3px 3px 0 #7f0c1c;
}


.profile-status {
    color:
        #bd263d;

    letter-spacing:
        2px;
}


/* ==================================================
   HIDDEN
   ================================================== */

.hidden {
    display:
        none !important;
}


/* ==================================================
   LOGIN
   ================================================== */

.login-required {
    margin:
        30px 0;

    padding:
        20px;

    text-align:
        center;

    color:
        #bdbdbd;

    border:
        1px solid #5c101b;

    background:
        #0c0708;
}


.login-required a {
    color:
        #d32b43;

    font-size:
        20px;
}


/* ==================================================
   EDITOR
   ================================================== */

.profile-form {
    margin-top:
        25px;
}


.profile-form label {
    display:
        block;

    margin:
        17px 0 5px;

    color:
        #d0d0d0;

    letter-spacing:
        2px;
}


.profile-form input[type="text"],
.profile-form textarea,
.profile-form select {
    width:
        100%;

    box-sizing:
        border-box;

    padding:
        9px;

    color:
        white;

    background:
        #020202;

    border:
        1px solid #571722;

    outline:
        none;

    font-family:
        "VT323",
        monospace;

    font-size:
        18px;
}


.profile-form textarea {
    min-height:
        130px;

    resize:
        vertical;
}


.profile-form input:focus,
.profile-form textarea:focus,
.profile-form select:focus {
    border-color:
        #c6223b;
}


.field-note {
    margin:
        4px 0 0;

    color:
        #666;

    font-size:
        14px;
}


/* ==================================================
   AVATAR EDITOR
   ================================================== */

.avatar-editor {
    display:
        flex;

    align-items:
        center;

    gap:
        20px;

    margin:
        20px 0 30px;

    padding:
        15px;

    border:
        1px solid #461019;

    background:
        #050505;
}


.avatar-frame {
    width:
        110px;

    height:
        110px;

    flex-shrink:
        0;

    position:
        relative;

    overflow:
        hidden;

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    background:
        #12080b;

    border:
        2px solid #8d1326;

    box-shadow:
        4px 4px 0 #200005;
}


.avatar-preview {
    width:
        100%;

    height:
        100%;

    object-fit:
        cover;
}


.avatar-placeholder {
    color:
        #d42942;

    font-size:
        45px;
}


#avatar-file {
    display:
        none;
}


.avatar-upload-button {
    display:
        inline-block !important;

    margin:
        0 !important;

    padding:
        7px 10px;

    color:
        white !important;

    background:
        #5d0c19;

    border:
        1px solid #ae1931;

    cursor:
        pointer;
}


.avatar-note {
    color:
        #666;

    font-size:
        14px;
}


/* ==================================================
   SAVE
   ================================================== */

#save-profile {
    width:
        100%;

    margin-top:
        25px;

    padding:
        9px;

    color:
        white;

    background:
        #8b1023;

    border:
        1px solid #ce2b42;

    font-family:
        "VT323",
        monospace;

    font-size:
        21px;

    letter-spacing:
        3px;

    cursor:
        pointer;
}


#save-profile:hover {
    color:
        #8b1023;

    background:
        white;
}


#save-profile:disabled {
    opacity:
        0.5;
}


/* ==================================================
   LINKS
   ================================================== */

.profile-links {
    display:
        flex;

    justify-content:
        space-between;

    gap:
        15px;

    flex-wrap:
        wrap;

    margin-top:
        35px;
}


.profile-links a {
    color:
        #c9233b;

    text-decoration:
        none;

    letter-spacing:
        2px;
}


.profile-links a:hover {
    color:
        white;
}


/* ==================================================
   PUBLIC PROFILE
   ================================================== */

.public-profile-header {
    display:
        flex;

    align-items:
        center;

    gap:
        22px;

    margin-bottom:
        28px;

    padding-bottom:
        22px;

    border-bottom:
        1px dashed #461019;
}


.public-avatar-frame {
    width:
        125px;

    height:
        125px;

    flex-shrink:
        0;

    overflow:
        hidden;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        #10070a;

    border:
        2px solid #8b1427;

    box-shadow:
        5px 5px 0 #200005;
}


.public-avatar {
    width:
        100%;

    height:
        100%;

    object-fit:
        cover;
}


.public-avatar-placeholder {
    color:
        #d82b45;

    font-size:
        48px;
}


.public-profile-name h1 {
    margin:
        0;

    color:
        white;

    font-size:
        40px;

    font-weight:
        normal;

    letter-spacing:
        3px;
}


#public-username {
    margin:
        3px 0;

    color:
        #be263c;

    font-size:
        20px;
}


.owner-badge {
    display:
        inline-block;

    margin-top:
        8px;

    padding:
        4px 8px;

    color:
        #090909;

    background:
        #ffced8;

    border:
        1px solid #ffffff;

    letter-spacing:
        2px;
}


/* ==================================================
   PROFILE SECTIONS
   ================================================== */

.profile-section {
    margin-bottom:
        16px;

    padding:
        14px;

    color:
        #c3c3c3;

    background:
        #060606;

    border:
        1px solid #331017;
}


.section-title {
    margin-bottom:
        8px;

    color:
        #c5243b;

    letter-spacing:
        3px;

    border-bottom:
        1px dashed #401019;

    padding-bottom:
        4px;
}


.profile-section p {
    margin:
        0;

    white-space:
        pre-wrap;

    overflow-wrap:
        anywhere;
}


/* ==================================================
   PROFILE THEMES
   ================================================== */

.theme-hearts {
    border-color:
        #b11c36;
}


.theme-hearts .profile-topbar {
    background:
        #861328;
}


.theme-spades {
    border-color:
        #d0d0d0;
}


.theme-spades .profile-topbar {
    background:
        #171717;
}


.theme-checker {
    border-color:
        white;
}


.theme-checker .profile-topbar {
    background:

        repeating-linear-gradient(
            90deg,
            #050505 0px,
            #050505 20px,
            #8f1022 20px,
            #8f1022 40px
        );
}


.theme-pink {
    border-color:
        #ff9eb1;
}


.theme-pink .profile-topbar {
    background:
        #b55b72;
}


.theme-red {
    border-color:
        #e3223e;
}


.theme-red .profile-topbar {
    background:
        #a4071e;
}


.theme-sage {
    border-color:
        #82957b;
}


.theme-sage .profile-topbar {
    background:
        #526b52;
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 600px) {

    .profile-page {
        padding:
            20px 5px;
    }


    .profile-window {
        max-width:
            97%;
    }


    .profile-content {
        padding:
            22px 16px;
    }


    .profile-topbar {
        font-size:
            14px;
    }


    .profile-topbar span:last-child {
        display:
            none;
    }


    .avatar-editor,
    .public-profile-header {
        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .public-profile-name h1 {
        font-size:
            32px;
    }

}


/* ==================================================
   STATUS GIF EDITOR
   ================================================== */

.status-gif-editor {
    display:
        flex;

    align-items:
        center;

    gap:
        16px;

    margin:
        12px 0 22px;

    padding:
        12px;

    background:
        #050505;

    border:
        1px solid #461019;
}


.status-gif-preview-frame {
    width:
        145px;

    min-height:
        92px;

    flex-shrink:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    overflow:
        hidden;

    background:
        #12080b;

    border:
        2px solid #8d1326;

    box-shadow:
        3px 3px 0 #200005;
}


.status-gif-preview {
    display:
        block;

    width:
        100%;

    max-height:
        125px;

    object-fit:
        contain;
}


.status-gif-placeholder {
    color:
        #7c4652;

    font-size:
        18px;

    letter-spacing:
        3px;
}


.status-gif-controls {
    min-width:
        0;

    flex:
        1;
}


#status-gif-file {
    display:
        none;
}


.status-gif-upload-button,
.status-gif-remove-button {
    display:
        inline-block !important;

    margin:
        0 6px 6px 0 !important;

    padding:
        7px 10px;

    color:
        white !important;

    background:
        #5d0c19;

    border:
        1px solid #ae1931;

    font-family:
        "VT323",
        monospace;

    font-size:
        16px;

    cursor:
        pointer;
}


.status-gif-remove-button {
    color:
        #d8b8bf !important;

    background:
        #16090c;

    border-color:
        #661522;
}


.status-gif-upload-button:hover,
.status-gif-remove-button:hover {
    color:
        #8b1023 !important;

    background:
        white;
}


@media (max-width: 600px) {

    .status-gif-editor {
        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .status-gif-preview-frame {
        width:
            100%;
    }

}