.race-info {
    padding: 15px;
    font-size: 16px;
    margin-top: -20px !important;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    text-align: center;
}

th,
td {
    padding: 10px;
    border: 1px solid #ddd;
}

th {
    background: #f0f0f0;
}

.highlightMax {
    color: red;
    font-weight: bold;
}

.highlightMin {
    color: blue;
    font-weight: bold;
}

@media (max-width: 600px) {
    .race-info p {
        font-size: 14px;
    }

    th,
    td {
        padding: 8px;
        font-size: 14px;
    }
}

.search-form {
    margin-bottom: 1.5em;
    padding: 1em;
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 10px !important;
}

.search-form form {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    align-items: center;
}

.search-form label {
    font-weight: bold;
}

.search-form input,
.search-form select,
.search-form button {
    padding: 0.4em 0.6em;
    font-size: 1em;
}

.purchase-candidates {
    margin-top: 30px;
    padding: 15px;
    border: 2px solid #0a6fbd;
    border-radius: 8px;
    background-color: #f4f9ff;
    max-width: 100%;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.purchase-candidates h2 {
    color: #0a6fbd;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 12px;
    border-bottom: 2px solid #0a6fbd;
    padding-bottom: 4px;
}

.purchase-candidates ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.purchase-candidates li {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #c4d9f8;
    font-size: 1.1rem;
    color: #222;
    cursor: default;
    text-align: center;
    box-shadow: 0 2px 5px rgba(10, 111, 189, 0.15);
}

.purchase-candidates li:hover {
    box-shadow: 0 4px 8px rgba(10, 111, 189, 0.25);
}

.racer_0 {
    background-color: white;
    color: black;
    font-weight: bold;
}

.racer_1 {
    background-color: black;
    color: white;
    font-weight: bold;
}

.racer_2 {
    background-color: red;
    color: white;
    font-weight: bold;
}

.racer_3 {
    background-color: blue;
    color: white;
    font-weight: bold;
}

.racer_4 {
    background-color: yellow;
    color: black;
    font-weight: bold;
}

.racer_5 {
    background-color: green;
    color: white;
    font-weight: bold;
}


@media screen and (max-width: 660px) {
    .search-form form {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-form label,
    .search-form input,
    .search-form select,
    .search-form button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

.hit {
    background-color: gold;
    font-weight: bold;
    padding: 0.2em 0.5em;
    border-radius: 4px;
}