body {
    overflow-x: hidden;
    /* background-image: linear-gradient(#ebf5ff, #85c4ff); */
    background-color: var(--background);
    --other: hsl(from var(--background) h s calc(l + 5));
    background-image: linear-gradient(var(--other), var(--background));
    height: 100vh;

    padding-left:235px;
    margin: 0;
    display: flex;
    align-items: center;
}
/* body:not([disableThemes]) {
    background-image: url("../asset/detail/christmasBackground.png");
    backdrop-filter: blur(24px);

    background-size: cover;
} */
section:not(#notificationPopup) {
    height: 90%;
    overflow-y: auto;
    flex:1;
    margin: 15px;

    display: flex;
    flex-direction: column;
    gap:10px;
}
/* body:not([disableThemes]) section {
    
    background-color: rgba(255,255,255,.3);
} */
:root {
    --sidenav-size: 225px;
}
#sidenav{
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidenav-size);
    height: 100vh;
    background-color: var(--container);
    border-right: 5px solid black;

    --side-spacing: 10px;
}
#sidenav * {
    text-decoration: none;
}
#sidenav_upper {
    display: flex;
    flex-direction: column;
    gap:5px;
    align-items: center;
    padding-top: 10px;
    padding-left: var(--side-spacing);
    padding-right: var(--side-spacing);
}
#sidenav_lower {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    padding-top: 10px;
    margin-bottom: 10px;
    padding-left: var(--side-spacing);
    padding-right: var(--side-spacing);
}
#basicInfo {
    display: flex;
    font-size: 32px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#badges2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.maincontainer {
    display:flex;
    flex-direction: row;
    gap:10px;
    flex:1;

    [left] {
        background-color: var(--container);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 350px;
        gap:5px;
        padding: 1rem;
    }
    .profile_card {
        display:flex;
        flex-direction: column;
        gap:5px;
        overflow: visible;
        color: var(--text);
        flex:1;

        #pfp {
            width: 100%;
        }
        .name {
            font-size: 2rem;
        }
        .stat {
            display: flex;
            gap:.5rem;
            align-items: center;
            padding: .25rem;

            .line {
                flex:1;
                --height: 2px;
                height: var(--height);
                border-radius: var(--height);
                background-color: rgba(255,255,255,.25);
            }
        }
    }
}
#badges {
    display:flex;
    align-items: center;
    /* justify-content: center; */
    padding: .5rem;
    padding-bottom: 0;
    gap:10px;
    .badge {
        display:flex;
        gap:5px;
        align-items: center;
        font-size: 24px;
    }
    #badgeex {
        display: none;
    }
}
#datav2 {
    padding: 10px;
    border-radius: 5px;
    display:flex;
    align-items: center;
    background-color: #00a2ff3b;
    justify-content: space-between;
}
#quickStats {
    display:flex;
    width: 100%;
    gap:15px;
    justify-content: space-evenly;
}
a, button {
    text-decoration: none;
}
#notemailverified {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.profile_data {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.profile {
    display: flex;
    gap:10px;
    align-items: center;
}
.profile #username {
    font-size: 2rem;
}
.quickies {
    display: flex;
    gap:10px;
}
.quickies > * {
    flex:1;
}
.profile #uid {
    opacity: .5;
    font-size: .75rem;
}
.quickstat > i {
    font-size: 3rem;
}
.quickstat > p {
    opacity: .6;
}
.quickstat {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap:10px;
    padding: 2rem;
    font-size: 1.25rem;
    transition-duration: 250ms;
    border-radius: 5px;
    background-color: var(--container);
}
.maincontainer > * {
    flex: 0 0 auto;
}
.fullflex {
    flex: 1 0 auto;
}
.seperated {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#originalCreation {
    font-size: .75rem;
}

#notificationPopup {
    display: flex;
    flex-direction: column;
    gap:.5rem;

    position: absolute;
    /* box-sizing: border-box; */
    left:50%;
    top:50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    background-color: var(--background);
    .top {
        display: flex;
        gap:5px;
        justify-content: space-between;
        align-items: center;
        font-size: 1.5rem;
    }


    #allnotifications {
        flex:1;
        display: flex;
        gap:5px;
        flex-direction: column;
        overflow-y: auto;

        .container::before {
            content: '';
            position: absolute;
            left:0;
            top:0;
            width: var(--banner-width);
            height: 100%;
            background-color: var(--banner-color);
        }
        .container::after {
            content: var(--symbol);
            font-weight: 900;
            font-family: "Font Awesome 6 Pro";
            position: absolute;
            right:2rem;
            top:50%;
            transform: translateY(-50%);
            font-size: var(--symbol-size);
            opacity: .25;
            rotate: 5deg;
        }
        #notificationex {
            display: none;
        }
        .container {
            --banner-color: rgb(128, 128, 128);
            --banner-width: 7px;
            --symbol-size: 7rem;
            overflow: hidden;
            position: relative;
            padding-left: calc(var(--banner-width) + 12px);
            display: flex;
            flex-direction: column;
            gap:5px;
            padding-bottom: 5px;
            --banner-other: rgba(from var(--banner-color) r g b);
            background-image: linear-gradient( 90deg, var(--container) 50%, color-mix(in srgb, var(--banner-color) 50%, transparent) );

            .from {
                display: flex;
                align-items: center;
                gap:.5rem;
                font-size: 1.25rem;
                color: var(--text);
            }
            .from:hover {
                text-decoration: underline;
                cursor: pointer;
            }

            .line {
                --width: 5px;
                width: 30px;
                margin: .5rem;
                border-left: var(--width) solid rgba(var(--text-rgb), .5);
                border-bottom: var(--width) solid rgba(var(--text-rgb), .5);
                border-bottom-left-radius: 10px;
                
            }

            .contentParent {
                display: flex;
            }
            .content {
                padding: .5rem 0;
            }
            .actions {
                margin-top: 5px;
            }
            h1 {
                font-size: 1.75rem;
            }
            p {
                opacity: .75;
            }
        }
        .gameInvite {
            --banner-color: rgba(40, 133, 255, 0.75);
            --symbol: '\e5a2';
        }
        .system {
            --symbol-size: 6rem;
            --symbol: "\e5e9";
        }
        .update {
            --banner-color: rgb(0, 184, 0);
            --symbol-size: 6rem;
            --symbol: "\e036";
        }
        .friendUpdate {
            --banner-color: rgb(146, 0, 214);
            --symbol: "\f2b5";
        }
    }
}

.profiledropdown {
    color: var(--text);
    display: flex;
    gap:5px;
    font-size: 1.5rem;
    align-items: center;
    background-color: var(--background);
    padding: 1rem;
    padding-right: 25px;
    z-index: 9;
    gap:1rem;
    
    position: absolute;
    right:-10px;
    top:1rem;
    border-radius: 5px;

    .dropdowninfo{
        display: flex;
        align-items: center;
        gap:5px;
    }
}

#recentGames,#gameHistory {
    display: flex;
    flex-direction: column;
    gap:5px;
}

.recentGamePreview {
    display:flex;
    gap:5px;
    justify-content: space-between;
    align-items: center;
    transition-duration: 250ms;
    color:var(--text);
    cursor: pointer;
    .left {
        display: flex;
        gap:5px;
        align-items: center;
        .recentGameDetails {
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            gap:5px;
        }
    }
}
.recentGamePreview:hover {
    background-color: rgba(var(--container-rgb), .1);
}
#recentGameEx {
    display: none;
}

@media screen and (max-width:1200px) {
    .maincontainer {
        flex-direction: column;
    }
}

#bottomnav {
    display: none;
}

@media screen and (max-width:770px) {
    #sidenav {
        display: none;
    }
    body {
        padding: 0;
        overflow: hidden;
    }
    html {
        overflow: hidden;
    }
    section {
        --height-offset:0px;
        position: absolute !important;
        /* inset: 0 0 0 0; */
        left:0;
        top:0;
        width: 100vw;
        height: calc(100dvh - 75px - var(--height-offset)) !important;
        margin: 0 0 0 0 !important;
        box-sizing: border-box;
        padding: 1rem !important;
        box-shadow: none;
    }
    .maincontainer > [left] {
        min-width:0;
    }
    #bottomnav {
        --nav-height: 75px;
        position: fixed;
        box-sizing: border-box;
        bottom: 0;
        width: 100vw;
        height: var(--nav-height);
        background-color: var(--background);
        display: flex;
        box-shadow: 0 -5px 5px var(--background);
        overflow-x: auto;
        z-index: 9;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        padding: 10px;
        gap:1rem;

        #bottomNavExpandable {
            box-sizing: border-box;
            position: fixed;
            left:0;
            bottom: -75vh;
            width: 100vw;
            background-color: var(--background);
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
            padding: 1rem;
            color: var(--text);

            display: flex;
            flex-direction: column;
            gap:5px;
            transition: 300ms ease-in;

            .expandableActions {
                display: flex;
                gap:5px;
                * {
                    flex:1;
                }
            }
        }
        #overlay {
            display: none;
        }
        #bottomNavExpandable[show] ~ #overlay {
            z-index: -9;
            display: block;
        }
        #bottomNavExpandable[show] {
            transition: 300ms ease-out;
            bottom: var(--nav-height);
        }
        > *:not(.nonstandard) {
            display: flex;
            flex: 1;
            min-width: 50px;

            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 5px;
            overflow: hidden;
            white-space: nowrap;
            color: var(--text);
            background-color: var(--container);

            span {
                font-size: .75rem;
            }
        }
        > *[aria-current="page"] {
            color:var(--accent);
        }
        > #bottomNavExpand {
            align-self: center;
            --size: 50px;
            width: var(--size);
            /* height: auto; */
            aspect-ratio: 1/1;
            border-radius: var(--size);

            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--accent);
            color:black;
            font-size: 1.25rem;
        }
        > #bottomNavExpand i {
            transition: 300ms ease;
        }
        > #bottomNavExpand[turned] i {
            rotate: 180deg;
        }
    }
}
*:has(.profileEdit) {
    position: relative;
}
.profileEdit {
    position: absolute;
    right:-5px;
    bottom:-5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding: .5rem;
    background-color: var(--background);
    border-radius: 50%;
    transition-duration: 250ms;
    color:var(--text);
}
#mostUsedBlue {
    cursor: pointer;
}
#mostUsedBlue:hover{
    text-decoration: underline;
}
.usedBlueChartContainer {
    width:min(50vw, 720px);
    height: 50vh;
}