body{
    height: fit-content;
    overflow: hidden;
}

main{
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
    gap: 10px;
    min-height: 80vh;
    height: auto;
    overflow: hidden;
}

.backeffect{
    display: flex;
    position: absolute;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    &::after{
        content: "";
        display: flex;
        height: 100%;
        width: 100%;
        background-image: url(../resources/backeffect.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position-x: center;
        --mask-value: 60%;
        mask-image: linear-gradient(transparent 0%, white calc(100% - var(--mask-value)), white var(--mask-value), transparent 100%);
    }
}

.fronteffect{
    display: flex;
    position: absolute;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    &::after{
        content: "";
        display: flex;
        height: 100%;
        width: 100%;
        background-image: url(../resources/fronteffect.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position-x: center;
        --mask-value: 60%;
        mask-image: linear-gradient(transparent 0%, white calc(100% - var(--mask-value)), white var(--mask-value), transparent 100%);
        background-position: center;
    }
}

.title{
    display: flex;
    height: 100px;
    width: 600px;
    background-image: url('../resources/leaderboardlabel.png');
    background-position: left;
    background-size: contain;
    background-repeat: no-repeat;
    user-select: none;
    /*
    display: flex;
    box-sizing: border-box;
    font-size: 180px;
    font-family: darkmode;
    z-index: 2;
    
    & .left{
        margin-right: -2vh;
        background: linear-gradient(140deg, white, white);
    }
    & .right{
        margin-left: -2vh;
        background: linear-gradient(140deg, red, red);
    }

    & .left, .right{
        padding: 3vh;
        overflow: visible;

        user-select: none;
        -webkit-background-clip: text;
        background-clip: text;

        -webkit-text-fill-color: transparent;
        color: transparent;
    }*/
}

.leaderboard{
    display: flex;
    flex-direction: column;
    height: 400px;
    max-width: 90%;
    min-width: 50%;
    width: 600px;
    background-color: rgba(0,0,0,.8);
    backdrop-filter: blur(1vh);
    z-index: 2;
    opacity: 0;
    margin-bottom: -50px;
    transition: opacity .5s ease-in-out,
                margin .5s ease-in-out,
                height .5s ease-in-out;
}

.player{
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    background-color: rgba(10,10,10,.2);
    border-radius: .3vh;
    border-top: 1px solid rgb(41, 41, 41);
    border-bottom: 1px solid rgb(41, 41, 41);
    border-left: 1px solid white;
    border-right: 1px solid white;
    gap: 1vh;
    cursor: pointer;
    transition: border .15s ease-in-out;

    & *{
        cursor: pointer;
    }

    &:hover{
        background-color: rgba(50,50,50,.4);
        border-top: 1px solid white;
        border-bottom: 1px solid white;
    }

    &.first{
        border: 1px solid rgb(231, 179, 66);
    }
    &.second{
        border: 1px solid rgb(158, 158, 158);
    }
    &.third{
        border: 1px solid rgb(161, 76, 19);
    }
}

.position{
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial;
    font-size: 20px;
    color: white;
    border: 1px solid white;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: black;
}

.profile-picture{
    border: 1px solid white;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: black;
    & #pfp{
        display: flex;
        position: relative;
        height: 100%;
        width: 100%;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 50%;
        --cover-opacity: 1;

        &::after{
            content: "";
            display: flex;
            position: absolute;
            height: 100%;
            width: 100%;
            background-color: black;
            border-radius: 50%;
            opacity: var(--cover-opacity);
            transition: all .4s ease-in-out;
        }
    }

    
}

.name{
    display: flex;
    justify-content: left;
    align-items: center;
    width: 60%;
    color: white;
    font-family: Arial;
    font-size: 24px;
}

.points{
    display: flex;
    justify-content: left;
    align-items: center;
    width: 34%;
    color: red;
    font-family: Arial;
    font-size: 24px;
}