.ranking-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem;
}

.ranking-container {
    width: 100%;
    padding: 2rem;
}

#ranking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
}

h1 {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

#ranking-leaderboard {
    width: 100%;
    margin-top: 2rem;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.ranking-table th, .ranking-table td {
    padding: 1rem;
    text-align: center;
    /* border: 2px solid #B725CB; TODO */
    border: 2px solid #B725CB;
}

.ranking-logo-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    text-align: center; 
}

.ranking-logo {
    margin-bottom: 0.5rem; 
    width: 50px;
    height: 50px;
}

.ranking-table th {
    /* background-color: #B725CB; TODO */
    background-color: #B725CB;
    color: white;
    font-weight: 500;
    font-size: 1.2rem;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

select {
    background-color: #ffffff00;
    color: white;
    padding: 10px 16px;
    border: 2px solid #B725CB;
    border-radius: 18px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    max-width: 375px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
}

select:focus {
    outline: none;
    box-shadow: none; 
    border: 2px solid #B725CB; 
}

select::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    border: 6px solid transparent;
    border-top-color: white; 
}

.ranking-number {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
}

.ranking-name {
    text-align: left;
    padding-left: 1rem;
    font-size: 1.2rem;
    color: white;
}

.ranking-stats {
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
}

.ranking-number img {
    width: 100px;
    display: flex;
    margin: auto;
}

@media (max-width: 768px) {
    .ranking-container {
        padding: 1.5rem;
    }

    .ranking-table th, .ranking-table td {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 500px) {
    .ranking-table th, .ranking-table td {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

@media (max-width: 425px) {
    .ranking-number img{
        width: 1500px;
    }
}