.profile {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #455AC5;
    font-family: 'Montserrat';
}

.base-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.name-and-level {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #fff;
    align-items: center;

    .user-details {
        h2 {
            margin: 0px;
            color: #fff;
        }
    }
}

.not-logged-in {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;


    h2 {
        color: #fff;
    }

    a {
        background-color: var(--e-global-color-accent);
        font-family: var(--e-global-typography-accent-font-family), Sans-serif;
        font-weight: var(--e-global-typography-accent-font-weight);
        border-width: 0px;
    }

}

.user-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;

    .user-flag {
        width: 25px;
        position: absolute;
        top: 5px;
        right: 5px;
        object-fit: contain;
        border-radius: 100%;
    }
}

.user-avatar {
    border-radius: 100%;
    border: 5px solid #31c5ac;
    overflow: hidden;
    aspect-ratio: 1 / 1;

    img {
        object-fit: cover;
    }
}






.user-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    &.user-not-logged-in {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

.user-level {
    display: flex;
    align-items: center;
    position: relative;
    width: 350px;

    .level-stars {
        position: absolute;
        color: #fff;
        font-size: 26px;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;

        span {
            position: absolute;
            padding-top: 5px;
        }
    }

    .level-bar {
        height: 45px;
        width: 100%;
        position: relative;
        border-radius: 10px;
        display: flex;
        align-items: center;
        background: #fff;
        overflow: hidden;
    }

    .level-bar-fill {
        background-color: #2CBBA3;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
        height: 100%;
        position: relative;

        &:after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 50%;
            background-color: #31C5AC;
            z-index: 1;
            border-top-left-radius: 10px;
        }

    }

    .level-bar-text {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 25px;
        font-weight: 800;
        text-shadow:
            rgb(0, 0, 0) 2px 0px 0px,
            rgb(0, 0, 0) 1.75517px 0.958851px 0px,
            rgb(0, 0, 0) 1.0806px 1.68294px 0px,
            rgb(0, 0, 0) 0.141474px 1.99499px 0px,
            rgb(0, 0, 0) -0.832294px 1.81859px 0px,
            rgb(0, 0, 0) -1.60229px 1.19694px 0px,
            rgb(0, 0, 0) -1.97998px 0.28224px 0px,
            rgb(0, 0, 0) -1.87291px -0.701566px 0px,
            rgb(0, 0, 0) -1.30729px -1.5136px 0px,
            rgb(0, 0, 0) -0.421592px -1.95506px 0px,
            rgb(0, 0, 0) 0.567324px -1.91785px 0px,
            rgb(0, 0, 0) 1.41734px -1.41108px 0px,
            rgb(0, 0, 0) 1.92034px -0.558831px 0px,
            rgb(0 0 0 / 40%) 0 5px 4px;
        color: #fff;
        z-index: 1;
    }

    .start-level {
        left: -20px;
        font-size: 18px;
        line-height: 100%;



        img {
            width: 40px;
            object-fit: contain;
        }
    }

    .end-level {
        right: -35px;

        img {
            width: 70px;
            object-fit: contain;
        }
    }
}






@media(max-width: 1023px) {

    .base-info {
        flex-direction: column;
    }


}