.leaderboards-page-container {
    width: 80%;
    margin: auto;
}

.leaderboards-title-container {
    margin-top: 1em;
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
}

.leaderboards-title-image {
    margin-top: 0.25em;
    width: 78px;
    height: 60px;
    flex: 0 0 78px;
}

.leaderboards-title-image img {
    width: 100%;
    height: 100%;
}

.leaderboards-title-text-container {
    display: flex;
    flex-direction: column;
    padding: 0 1em;
}

.leaderboards-title-header {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0.28em;
}

.leaderboards-title-description {
    font-size: 0.8em;
    font-weight: normal;
}

.leaderboards-title-description a {
    cursor: pointer;
    font-weight: normal;
}

.leaderboard-caching-notes {
    font-size: 0.6em;
    margin-top: 1.5em;
    margin-bottom: -0.8em;
}

.leaderboards-title-description .leaderboard-caching-notes {
    font-size: 0.7em;
    margin-top: 0.5em;
}

.leaderboard-table-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.leaderboard-table-container {
    margin-top: 1em;
    width: 100%;
}

.empty-leaderboard-message {
    font-size: 0.8em;
}

.positive-difference {
    color: #00ff00;
}

.negative-difference {
    color: #FF5959;
}

.leaderboard-table-rank-gold {
    background-image: url('../../../../assets_common/images/icons/leaderboard_gold.png');
}

.leaderboard-table-rank-silver {
    background-image: url('../../../../assets_common/images/icons/leaderboard_silver.png');
}

.leaderboard-table-rank-bronze {
    background-image: url('../../../../assets_common/images/icons/leaderboard_bronze.png');
}

.leaderboard-gold-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaderboard-gold-icon {
    width: 13px;
    height: 13px;
    margin-top: 0.25em;
    margin-left: -0.3em;
}

.leaderboard-avatar {
    --avatar-size: 30px;
    border: 1px solid var(--avatar-border-color);
}

.leaderboard-table-user {
    display: flex;
    flex-direction: row;
    gap: 0.8em;
}

.leaderboard-table-rank {
    display: block;
    width: 30px;
    height: 30px;
    text-align: center;
    padding-top: 0.5em;
    font-size: 1.15em;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.leaderboard-prize-text {
    width: 100%;
    margin: 0 4em 0 5em;
    margin-right: 1em;
    font-size: 0.9em;
    text-align: left;
}

.leaderboard-prize-text ul li {
    font-size: 0.75em;
}

.leaderboard-prize-text span {
    font-weight: bold;
}

.leaderboard-table-username {
    padding-top: 0.5em;
    font-size: 1.25em;
}

.leaderboard-entry-text {
    font-size: 1.1em;
}

table td .btn {
    font-size: 1.1em !important;
}

table thead tr th {
    font-size: 0.7em !important;
}

/* Tabs */
.leaderboard-tabs {
  width: 100%;
  margin-top: 1.5em;
}

.leaderboard-tablist-container {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 1.3em 0 0.3em 0;
    gap: 0.5em;
}

.leaderboard-tablist {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    border: 1px solid #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.leaderboard-tab {
    appearance: none;
    border: none;
    color: #AEC0B3;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: bold;
    background: #196F40;
}

.leaderboard-tab-check {
    margin-right: 0.5em;
}

.leaderboard-selector-container {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
}

.leaderboard-selector-button {
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.68em;
    font-weight: bold;
    background: #196F40;
    overflow: hidden;
    user-select: none;
}

.leaderboard-selector-button i {
    font-size: 0.93em;
}

#leaderboard-selector-previous {
    cursor: pointer;
}

#leaderboard-selector-next {
    cursor: pointer;
}

/* .leaderboard-tablist {
    width: 100%;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.leaderboard-tab {
    appearance: none;
    border: 1px solid #ffffff;
    background: rgba(255,255,255,0);
    color: inherit;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    background: var(--clr-green-2);
} */

.leaderboard-tab:hover {
    /* filter: brightness(120%); */
    background: #278751;
    color: #ffffff;
}

.leaderboard-tab[aria-selected="true"] {
    /* filter: brightness(120%); */
    background: #278751;
    border-color: #ffffff;
    color: #ffffff;
}

.leaderboard-tabpanel {
    display: none;
}

.leaderboard-tabpanel.is-active {
    display: block;
}

.leaderboard-tabpanel .leaderboard-group-header {
    display: none;
}

@media only screen and (max-width: 750px) {
    .leaderboards-page-container {
        width: 100%;
    }
}