main > div {
    display: flex;
    flex-direction: row;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.vote-sites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.vote-leaderboard {
    min-width: calc(min(500px, 100%));
}

.vote-site {
    display: block;
    background-color: var(--bg-tertiary);
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem;
    border-radius: 5px;
    transition: filter 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.vote-site:hover {
    filter: brightness(1.3);
    transform: translateY(-2px);
}

.site-number {
    font-weight: bold;
}

.interval-time {
    font-size: 0.9rem;
    opacity: 0.8;
}

#votes_content {
    margin-top: 1rem;
}

.player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-info {
    display: flex;
    align-items: center;
}

.player-name {
    margin-right: 1rem;
}

.loading-wave {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.loading-bar {
    width: 20px;
    height: 10px;
    margin: 0 5px;
    background-color: var(--primary-color);
    border-radius: 5px;
    animation: loading-wave-animation 1s ease-in-out infinite;
}

.loading-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.loading-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.loading-bar:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes loading-wave-animation {
    0% {
        height: 10px;
    }

    50% {
        height: 50px;
    }

    100% {
        height: 10px;
    }
}

.leaderboard-line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.leaderboard-line > div:nth-child(1) {
    margin-left: 20px;
    display: flex;
    align-items: center;
    align-self: center;
}

.leaderboard-line > div:nth-child(2) {
    margin-right: 20px;
    text-align: right;
    display: flex;
    align-items: center;
    align-self: center;
}

.rank-box {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.rank-box > p {
    margin: 0;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
}

#rank_1_color {
    background-color: #DF8E1D !important;
}

#rank_2_color {
    background-color: #7C7F93 !important;
}

#rank_3_color {
    background-color: #FE640B !important;
}

.headImg {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 20px;
    pointer-events: none;
}

.nameBox {
    margin-left: 10px;
}

.votesText::after {
    content: " votes";
}

.separator_horizontal {
    width: 100%;
    height: 1px;
    background-color: #474b50;
}

@media (max-width: 550px) {
    .leaderboard-line > div:nth-child(1) {
        margin-left: 5px;
    }

    .leaderboard-line > div:nth-child(2) {
        margin-right: 5px;
    }

    .headImg {
        margin-left: 10px;
    }

    .nameBox {
        margin-left: 5px;
    }
}