html {
    --black: #000000;
    --white: #ffffff;
    --darkest: #101010;
    --darker: #16171A;
    --dark: #A3AFBF;
    --medium: #DFE7EF;
    --light: #CAD4E1;
    --lighter: #F5F8FC;
    --lightest: var(--white);
    --primary: #7B16FF;
    --primary-light: #DDD9FF;
    --primary-trans: rgba(123, 22, 255, 0.4);
    --yellow: #FDCB6E;
    --orange: #E17055;
    --teal: #00CEC9;
    --bg: var(--darkest);
    --color: var(--lightest);
    --surface: var(--darker);
}

body,
html {
    height: 100%;
    width: 100%;
}

.center {
    position: relative;
    width: 100%;
    margin-top: 2rem;
}


.w3-bar {
    display: flex;
    margin: auto;
    justify-content: center;
}

.cat-link {
    display: inline-block;
    font-weight: 400;
    font-size: larger;
    position: relative;
    color: #ffffff;
    text-decoration: none;
    padding: 0 20px 4px 0;
    margin-bottom: 20px;

}

.cat-link:hover {
    color: #ffffff;
    cursor: pointer;
}

.cat-link.active {
    color: #ffffff;
    background:
        linear-gradient(to right, #39ace7, #39ace7);
    background-size: 60% 1.5px, 0 0.1em;
    background-position: 35% 100%, 0 center;
    background-repeat: no-repeat;
}

.cat-link:after {
    content: '';
    color: #ffffff;
    position: absolute;
    width: 60%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 13.8%;
    background-color: #39ace7;
    transform-origin: center;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
}

.cat-link:not(.active):hover:after {
    color: #ffffff;
    transform: scaleX(1);
    transform-origin: center;
}


.button-group {
    background-color: #cdcdcd;
    width: 300px;
    margin: 0 auto;
    display: flex;
    border-radius: 16px;
    min-height: 10px;
    overflow: hidden;
    position: relative;
}



.button-group.hidden {
    opacity: 0;
    position: absolute;
}


.button-group[data-left="week"]:before {
    left: 0%;
}

.button-group[data-left="month"]:before {
    left: 33%;
}

.button-group[data-left="global"]:before {
    left: 66%;
}

.button-group:before {
    transition: all 0.3s ease;
    content: '';
    position: absolute;
    width: calc(34%);
    height: 100%;
    background-color: #fff;
    z-index: 1;
    border-radius: 16px;
}

.button-group button {
    flex: 1;
    min-width: 80px;
    padding: 5px 3px;
    border: none;
    font-family: Glory, sans-serif;
    position: relative;
    background-color: transparent;
    z-index: 1;
}

.button-group button:hover {
    cursor: pointer;
}


.list {

    margin: 0 auto;
    width: 600px;
}



.list .item {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    height: 3rem;
    border-radius: 4rem;
    margin-bottom: 2rem;
    background: #0592ef;
    transform-origin: left;
    cursor: pointer;
    transition: transform 200ms ease-in-out;
    box-shadow: 0 0 4rem 0 rgba(0, 0, 0, 0.1), 0 1rem 2rem -1rem rgba(0, 0, 0, 0.3);
}

.list .item .pos {
    font-weight: 900;
    position: absolute;
    left: -2rem;
    text-align: center;
    font-size: 1.25rem;
    width: 1.5rem;
    color: white;
    opacity: 0.6;
    transition: opacity 200ms ease-in-out;
}

.list .item .pic {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 1rem;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.2), 0 1rem 1rem -0.5rem rgba(0, 0, 0, 0.3);
}

.list .item .name {
    flex-grow: 2;
    flex-basis: 10rem;
    font-size: 1.1rem;
}

.list .item .score {
    margin-right: 1.5rem;
    opacity: 1;
}

/*.list .item .score:after {
    margin-right: 1rem;
    content: "points";
    opacity: 0.5;
}*/

.list .item:hover {
    transform: scale(1.05);
}

.list .item:hover .pos {
    opacity: 1;
}

@media (max-width: 767px) {
    .list {
        width: 90%;
    }

    .list .item .name,
    .list .item .score {
        font-size: 15px;
    }

    .list .item .score {
        margin-right: 6px;
    }

    .container {
        margin-right: 0.5rem !important;
        margin-left: 0.5rem !important;
    }
}