﻿body {
    color: white;
}

.tour-detail-main {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
}

@media (max-width: 900px) {
    .tour-detail-header {
        flex-flow: wrap-reverse;
    }
}

.tour-detail-header {
    display: flex;
    flex-direction: row;
    padding: 16px;
    justify-content: space-between;
    align-self: stretch;
    gap: 32px;
    white-space: nowrap;
    background: #24253A;
    border-radius: 12px;
}

.tour-detail-header-context {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 32px;
    justify-content: flex-start;
}

.tour-detail-header-billboard {
    border-radius: 8px;
    width: 100%;
    overflow: hidden;
}

.tour-detail-header-status {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
    align-self: stretch;
    align-items: center;
}

.tour-detail-header-value {
    display: flex;
    background: #1C1B2B;
    border-radius: 8px;
    padding: 4px 10px 2px 10px;
    align-items: center;
}

.tour-detail-header-title {
}

.tour-detail-countdown {
    color: #00E6E6;
    align-items: center;
    display: flex;
}

.tour-detail-header-button {
    min-width: 50%;
    max-width: 250px;
    align-self: center;
}

.tour-detail-section {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    border-radius: 12px;
    border-width: 1px;
    gap: 4px;
    padding: 16px 24px 24px 24px;
    background: #24253A;
    border: 1px solid #24253A
}

.tour-detial-section-title {
}

.tour-detail-reward {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tour-detail-reward-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 8px;
    padding-top: 8px;
    padding-right: 24px;
    padding-bottom: 8px;
    padding-left: 24px;
    background: #1C1B2D;
    box-shadow: 0px 2px 4px 0px #00000033;
}

.tour-detail-reward-context {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.tour-detail-header-command {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-self: center;
    width: 100%;
    max-width: 600px
}

.leaderboard-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    padding: 4px;
    flex-direction:column;
}

.leaderboard-content {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.leaderboard-tops {
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 4px;
    padding: 4px 0 4px 0;
    max-height: 80%;
    overflow-y: auto;
}

    .leaderboard-tops::-webkit-scrollbar {
        display: none;
    }

.leaderboard-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border: 1px solid #1C1B2B;
    border-radius: 8px;
    background: #1C1B2D;
}

    .leaderboard-item.light {
        background: linear-gradient(94.11deg, rgba(35, 30, 75, 0.5) -2.94%, #242051 102.67%) !important;
        border: 1px solid #9B5DE5 !important;
    }

.leaderboard-item-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 75%;
}

.leaderboard-item-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #9B5DE5;
}

.leaderboard-item-score {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 80px;
    background: #1C1B2B;
    border-radius: 8px;
    padding: 2px;
    width: 25%;
}

.leaderboard-score-img {
    width: 32px;
    height: 32px;

}

.leaderboard-item-rank {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    width: 24px;
}

.leaderboard-item-username {
    display: flex;
    align-items: center;
    font-size: 16px;
    overflow: hidden;

}

.leaderboard-score-text {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
}

.leaderboard-footer {
    align-self: stretch;
    width: 100%;
    flex-direction: column;
}
.leaderboard-no-item {
    font-weight: 900;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    text-align: center;
    font-size: 30px;
    padding: 32px 8px 24px 8px;
    color: gray;
    min-height: 300px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0.5rem;
}

.page-link {
    display: flex;
    background: #1C1B2D;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
    border: 1px solid #673D99;
    align-items: center;
    flex-direction: column;
    color: white;
}

    .page-link:hover {
        background: #e0e0e0;
    }

    .active .page-link,
    .page-link.active {
        background: linear-gradient(90deg, #5F39CA 9.21%, #3468E2 92.77%);
        color: white;
        border-color: #007bff;
        cursor: default;
    }

.disabled .page-link {
    color: #aaa;
    pointer-events: none;
    background-color: #1C1B2D;
    border-color: #1C1B2D;
}

.section-tournament {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background-color: #24253A;
    align-items: center;
}
.section-item {
    max-width: 145vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    gap: 16px;
}
.top-games-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 25px;
}
.tour-title{
    font-weight:900;
}