body.colored {
    background-color: #83ffe7;
    background-image: url(../img/bg.svg);
    background-repeat: repeat;
    background-attachment: fixed;
    background-size: 40%;
}

@include media-breakpoint-up(xxl) {
    .container-fluid {
        max-width: 1800px;
    }
}

@include media-breakpoint-down(xxl) {
    .container-fluid {
        max-width: 1300px;
    }
}

.layout-section {
    padding: 1.5rem 0 2rem;
}

@include media-breakpoint-down(md) {
    .layout-section {
        padding: .5rem 0 1rem;
    }
}

.layout-text {
    h2 {
        margin-bottom: 1rem;
        font-size: $font-size-lg;
    }

    h3 {
        margin-bottom: 1rem;
        font-size: $font-size-base;
    }

    h4 {
        margin-bottom: 1rem;
        font-size: $font-size-sm;
    }

    p {
        margin-bottom: 1rem;
        color: var(--#{$variable-prefix}gray-500);
    }
}


.lock-game {
    width: 100%;
    height: 100%;
    -webkit-filter: blur(20px);
    filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-position: 50% !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    position: absolute;
    inset: 0;
    -webkit-transform: scale(1.3);
    transform: scale(1.3);
    z-index: -1;
    opacity: .7;

    &:before {
        background-color: var(--theme-color);
        opacity: .65;
        position: absolute;
        content: "";
        inset: 0;
    }
}

.leaderboard {
    position: relative;
    width: auto;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;

    &>.user {

        flex: 0 0 auto;
        text-align: center;
        order: 1 !important;
        position: relative;
        z-index: 10;
        padding: 0 1rem;

        .user-body {}

        .avatar-body {
            width: 100%;
            height: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            vertical-align: middle;
        }

        .avatar {
            width: 8rem;
            height: 8rem;
            background-color: var(--#{$variable-prefix}body-bg);
            border: 5px solid var(--#{$variable-prefix}body-bg);
            box-shadow: 0 0 0 5px var(--xp-color);


            .avatar-badge {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                bottom: -1.75rem;
                display: flex;
                align-items: center;
                justify-content: center;
                color: #fff;
                font-weight: 500;
                font-size: .75rem;
                width: 2.5rem;
                height: 2.5rem;
            }

            &:before {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                bottom: -1.75rem;
                width: 2.5rem;
                height: 2.5rem;
                content: "";
                background-color: var(--xp-color);
                -webkit-mask-image: escape-svg($badge-bg);
                mask-image: escape-svg($badge-bg);
                background-repeat: no-repeat;
                background-position: center;
                background-size: contain;
            }
        }

        &:nth-child(2) {
            z-index: 6;
            order: 0 !important;

            .avatar {
                width: 6rem;
                height: 6rem;

                .avatar-badge {
                    right: auto;
                    left: -.5rem;
                    bottom: -.5rem;
                    transform: none;
                    width: 2rem;
                    height: 2rem;
                }

                &:before {
                    right: auto;
                    left: -.5rem;
                    bottom: -.5rem;
                    transform: none;
                    width: 2rem;
                    height: 2rem;
                }
            }
        }

        &:nth-child(3) {
            z-index: 6;
            order: 2 !important;

            .avatar {
                width: 6rem;
                height: 6rem;

                .avatar-badge {
                    left: auto;
                    right: -.5rem;
                    bottom: -.5rem;
                    transform: none;
                    width: 2rem;
                    height: 2rem;
                }

                &:before {
                    bottom: -.5rem;
                    left: auto;
                    right: -.5rem;
                    transform: none;
                    width: 2rem;
                    height: 2rem;
                }
            }
        }
    }
}

@include media-breakpoint-down(md) {
    .leaderboard {
        position: relative;
        width: auto;
        margin: 2rem auto;
        display: flex;
        align-items: center;
        justify-content: center;

        &>.user {
            padding: 0 .5rem;
            .avatar {
                width: 5rem !important;
                height: 5rem !important;

                .avatar-badge { 
                    width: 2rem !important;;
                    height: 2rem !important;;
                }

                &:before { 
                    width: 2rem !important;;
                    height: 2rem !important;;
                }
            }
        }
    }
}