@font-face {
    font-family: 'Torus-Light';
    src: url('Fonts/Torus-Light.woff2') format('truetype');
}

@font-face {
    font-family: 'Torus-Regular';
    src: url('Fonts/Torus-Regular.woff2') format('truetype');
}

@font-face {
    font-family: 'Torus-SemiBold';
    src: url('Fonts/Torus-SemiBold.woff2') format('truetype');
}

@font-face {
    font-family: 'Torus-Bold';
    src: url('Fonts/Torus-Bold.woff2') format('truetype');
}

html {
    height: 100%;
    background-color: #1C1719;
}

body {
    min-height: 100%;
    margin: 0;
    overflow: hidden;
}

.root {
    height: 100%;
    width: 100%;
}

.navigation-bar {
    height: 90px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: #3D2A32;
}

.navbar-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 30px;
}

.navbar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 30px;
}

.navbar-right .discord {
    padding-right: 25px;
}

.navbar-right .discord img {
    height: 35px;
}

.navbar-right img {
    height: 30px;
    width: auto;
    transition: opacity 0.3s ease;
}

.navbar-right img:hover {
    opacity: 0.7;
}

.navbar-left h1 {
    padding-left: 25px;
    font-family: Torus-Light, sans-serif;
    font-size: 1.25rem;
    color: #FFFFFF;
}

.navbar-left img {
    height: 60px;
    width: auto;
    border-radius: 15px;
}

.leaderboard-container {
    height: calc(100vh - 90px);
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    background-color: #2A2226;
    box-shadow: 0px 10px 10px #161215;
}

.leaderboard-center-wrapper {
    height: 100%;
    width: 80%;
}

.filter-container {
    height: 15%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #FF66AB;
}

.filter-container button {
    height: 42px;
    width: 150px;
    border-radius: 14px;
    background-color: #382E32;
    outline: none;
    border: none;
    color: #C899AE;
    font-family: Torus-SemiBold, sans-serif;
    font-size: 0.9rem;
    transition: filter 0.3s ease, transform 0.3s ease;
    box-shadow: 0px 5px 10px #231C1F;
}

.filter-container .sort-arrow {
    height: auto;
    width: 25px;
    text-align: right;
    background-color: transparent;
    outline: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    box-shadow: 0px 0px 0px transparent;
}

.filter-container .sort-arrow:hover {
    filter: brightness(0.6);
    transform: scale(1);
}

.filter-container .sort-arrow.rotated {
    transform: rotate(180deg);
}

.filter-container button:hover {
    filter: brightness(1.4);
    transform: scale(0.96);
    cursor: pointer;
}

.sort-label {
    padding-right: 15px;
    font-family: Torus-Regular, sans-serif;
    color: #FFFFFF;
}

.sort-label::before {
    content: '';
    display: inline-block;
    width: 2px;
    height: 9px;
    background-color: #FF66AB;
    margin-right: 7px;
    vertical-align: middle;
}

.leaderboard-entries-container {
    height: 85%;
    width: 100%;
    box-sizing: border-box;
    padding-top: 40px;
    overflow: auto;
    scroll-behavior: smooth;
}

.leaderboard-entries-container div[id*="profile"] {
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 5px;
    border-radius: 10px;
    background-color: #54454C;
    box-shadow: 0px 5px 10px #1C1718;
}

.placement-label {
    height: 100%;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Torus-SemiBold, sans-serif;
    font-size: 1.25rem;
    color: #FFFFFF;
}

.profile-img {
    height: 100%;
    aspect-ratio: 1/1;
}

.profile-info {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 15px;
    font-family: Torus-Light, sans-serif;
    font-size: 1.05rem;
    color: #FFFFFF;
}

.profile-info .username {
    font-family: Torus-SemiBold, sans-serif;
}

.sorted-stat {
    height: 100%;
    display: flex;
    flex-grow: 1;
    padding-right: 15px;
    justify-content: right;
    align-items: center;
    font-family: Torus-Light, sans-serif;
    font-size: 1.05rem;
    color: #FFFFFF;
}

.sorted-stat .stat-value {
    font-family: Torus-SemiBold, sans-serif;
}

.leaderboard-entries-container > div:nth-child(1) .placement-label {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.leaderboard-entries-container > div:nth-child(2) .placement-label {
    background: linear-gradient(135deg, #87CEEB, #4682B4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.leaderboard-entries-container > div:nth-child(3) .placement-label {
    background: linear-gradient(135deg, #FF8C42, #CD7F32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 1058px) {
    .leaderboard-container {
        width: calc(100% - 58px);
        max-width: none;
    }
}

@media (max-width: 828px) {
    .filter-container {
        height: auto;
        padding-top: 4%; padding-bottom: 4%;
    }

    .leaderboard-container {
        width: 100%;
    }

    .leaderboard-center-wrapper {
        width: 100%;
    }
}

@media (max-width: 486px) {
    .navbar-left h1 {
        font-size: 1rem;
    }

    .filter-container button {
        width: 75px;
        font-size: 0.7rem;
    }

    .filter-container .sort-arrow {
        font-size: 1rem;
    }

    .leaderboard-entries-container span {
        font-size: 0.7rem;
    }
}
