﻿h4 {
    margin-left: 2rem;
}
.grid-table {
    border: 2px solid #444;
    border-radius: 8px;
    width: 40%;
    border-collapse: separate;
    overflow: hidden;
    margin-bottom: 2rem;
    margin-left: 2rem;
}
.grid-table th, .grid-table td {
    padding: 4px 8px;
    text-align: left;
}
.grid-table tbody tr {
    border-bottom: 1px solid #ccc;
}
.grid-table tbody tr:last-child {
    border-bottom: none;
}

.banner-image-container {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 0.1rem;
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.banner-image {
    width: 100%;
    max-width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center 70%;
    border-radius: 10px;
    box-shadow: 0 2px 8px #888;
    display: block;
}
.banner-image-container::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 5px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
    pointer-events: none;
}

.team-radio-box {
    margin: 2rem;
    padding: 1rem;
    border: 2px solid #888;
    border-radius: 8px;
    box-shadow: 0 2px 8px #ccc;
    max-height: 300px;
    overflow-y: auto;
    max-width: 40%;
}
.team-radio-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.team-radio-box li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.driver-info {
    font-weight: bold;
    margin-right: 1rem;
    color: #ffffff;
    min-width: 120px;
}
.radio-time {
    font-size: 0.95em;
    color: #ffffff;
    margin-right: 1rem;
}

.race-details-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.race-left {
    flex: 3;
}

.race-right {
    flex: 2;
    background: #111;
    border-radius: 10px;
    padding: 1rem;
    height: fit-content;
}

#lapChart {
    width: 100% !important;
    height: 350px !important;
}

.race-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.position-sidebar {
    background: #111;
    padding: 1rem;
    border-radius: 8px;
}

.position-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.position-sidebar li {
    display: flex;
    justify-content: space-between;
    padding: 6px 4px;
    border-bottom: 1px solid #333;
}

.pos-up {
    color: #4caf50; /* green */
}

.pos-down {
    color: #f44336; /* red */
}

.pos-same {
    color: #ccc;
}

.drv-num {
    font-weight: bold;
}

