/* Race selection dropdown */
.race-selection {
    margin-bottom: 30px;
    text-align: center;
}

.race-selection select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #e10600;
    border-radius: 5px;
    background-color: #111;
    color: #e10600;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    appearance: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.race-selection select:hover,
.race-selection select:focus {
    border-color: #ff4500;
    box-shadow: 0 3px 6px rgba(255, 69, 0, 0.5);
}

.race-selection option {
    background-color: #222;
    color: #fff;
}

/* Table styling */
.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1.1em;
    text-align: left;
    position: relative;
    z-index: 1;
    overflow-x: auto;
}

thead {
    background: #222;
}

thead th {
    padding: 12px;
    color: #e10600;
}

tbody tr:nth-child(even) {
    background: #1a1a1a;
}

tbody tr:nth-child(odd) {
    background: #111;
}

td {
    padding: 10px;
    color: #ddd;
}

tfoot {
    font-weight: bold;
    color: #e10600;
    background: #333;
}

tfoot td {
    padding: 12px;
}

.chart-container {
    margin-top: 30px;
    position: relative;
    height: 600px; /* Increased height for better readability */
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: none; /* No border */
    box-shadow: none; /* No shadow */
    padding: 0; /* No padding */
}

@media (max-width: 480px) {
    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Align content closer to the top */
        min-height: 100vh; /* Ensure it still fills the viewport height */
        padding-top: 80px; /* Add some padding to avoid the content sticking to the top */
    }
}

/* ...existing code... */

/* Card layout for tables on mobile */
@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }
    thead {
        display: none;
    }
    tbody tr {
        margin-bottom: 18px;
        background: #181818;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        padding: 10px 0;
    }
    td {
        padding: 10px 16px;
        text-align: left;
        position: relative;
        color: #e10600;
        font-weight: 700;
    }
    td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.95em;
        color: #aaa;
        font-weight: 400;
        margin-bottom: 2px;
    }
}