/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

.container {
    max-width: 2000px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2 {
    font-size: 1.3rem;
    color: #003366;
    text-align: center;
}

p {
    text-align: center;
}

/* Table Styling */
.table-container {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

table {
    width: 100%;
    font-size: 0.8rem;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

th {
    background-color: #007bff;
    color: white;
}

/* Alternating Row Colors */
table tbody tr:nth-child(odd) {
    background-color: #f2f2f2; /* Light grey for odd rows */
}

table tbody tr:nth-child(even) {
    background-color: #ffffff; /* White for even rows */
}

/* Hover Effect */
table tbody tr:hover {
    background-color: #e1f5fe; /* Light blue on hover */
    cursor: pointer;
}

.table-container h2 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: #003366;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    padding-bottom: 5px;
}

/* Column Layout for Stats */
.stats-column .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stats-column .table-container {
    width: 100%;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .column {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }

    .container {
        padding: 10px;
    }

    h1, h2 {
        font-size: 1.2rem;
    }

    table {
        font-size: 0.75rem;
    }

    .table.column {
        flex-direction: column;
    }
}

.rank-cell.green {
    background-color: green;
    color: white;
}

.rank-cell.gray {
    background-color: #4d4d4d;
    color: white;
}

.rank-cell.yellow {
    background-color: #ffcc00;
    color: black;
}

.rank-cell.red {
    background-color: red;
    color: white;
}

.legend-container {
    text-align: center;
    margin-bottom: 20px;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.rank-color-box {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.rank-color-box.green {
    background-color: green;
}

.rank-color-box.gray {
    background-color: #4d4d4d;
}

.rank-color-box.yellow {
    background-color: #ffcc00;
}

.rank-color-box.red {
    background-color: red;
}

.team-logo {
    vertical-align: middle;
    margin: 0 20px;
}

