/* Main styling */
body {
    background-color: #1e1e1e;
    font-family: 'Roboto', sans-serif;
    color: white;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-family: 'Racing Sans One', cursive;
    text-transform: uppercase;
    font-size: 3rem;
    color: #FF1801;
    /* F1 Red */
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.track-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 450/300;
    margin: 20px auto;
}

#track-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

.car {
    position: absolute;
    width: 40px;
    /* Adjust based on needs */
    height: 20px;
    display: flex;
    /* Centering text/icon */
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
    /* Transformation logic handles rotation */
    transform-origin: center center;
    will-change: transform;
    opacity: 0.9;
}

.car-body {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.car-label {
    position: absolute;
    top: -15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.leaderboard {
    margin-top: 20px;
    background: #2b2b2b;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-left: 5px solid #FF1801;
}

.leaderboard h2 {
    margin-top: 0;
    font-family: 'Racing Sans One', cursive;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

#standings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#standings-list li {
    background: #333;
    margin: 5px 0;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
}

#standings-list li span.rank {
    font-weight: bold;
    width: 25px;
    color: #888;
}

#standings-list li span.name {
    flex-grow: 1;
    font-weight: bold;
}

#standings-list li span.laps {
    font-family: monospace;
    color: #FF1801;
}