@charset "UTF-8";

.table-wrapper {
    overflow-x: scroll;
    position: relative;
    white-space: nowrap;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.75);
}

.rpiData {
    width: 100%;
    border-collapse: separate;
    position: relative;
}

    .rpiData th {
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.75);
        padding: 10px;
        box-sizing: border-box;
        position: sticky;
        position: -webkit-sticky;
        top: 0;
        z-index: 2;
        background: white;
    }

        .rpiData th:first-child {
            left: 0;
            z-index: 3;
        }

        .rpiData th:nth-child(2) {
            left: 52px;
            z-index: 3;
        }

    .rpiData td {
        padding: 8px 10px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.3);
        box-sizing: border-box;
        background: white;
    }

    .rpiData tr:nth-child(odd) td {
        background-color: #f7f7f7;
    }

    .rpiData tr> :first-child {
        position: sticky;
        position: -webkit-sticky;
        left: 0;
    }

    .rpiData tr> :nth-child(2) {
        position: sticky;
        position: -webkit-sticky;
        left: 52px;
    }

.team {
    text-decoration: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

    .team span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

.mplogo {
    display: flex;
    font-size: 0.8em;
    font-style: italic;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

    .mplogo img {
        width: 150px;
    }

.scroll::after {
    -webkit-box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);
    box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    bottom: -1px;
    width: 10px;
    transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
    pointer-events: none;
}

.update-time {
    font-style: italic;
    font-size: 0.9em;
}

.sport-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rank {
    min-width: 36px;
}

    .rank::after {
        content: 'Rank';
    }

@media (min-width: 401px) {

    .rpiData tr:hover td {
            background-color: rgba(0, 0, 0, 0.15) !important;
        }

}

@media (max-width: 400px) {
    .team {
        max-width: 160px;
    }

    .th.teams {
        max-width: 144px;
    }

    .teams img {
        width: 20px;
    }

    .menu-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .menu-form select {
        width: 100%;
    }

    .table-wrapper {
        max-height: 500px;
    }

    .sport-wrapper {
        flex-direction: column;
        align-items: initial;
        margin: 0.75rem 0;
    }

    .rank::after {
        content: '#';
    }

    .rpiData tr> :nth-child(2) {
        left: 36px;
    }
}