﻿.top-image img {
    min-height: 300px;
    object-fit: cover;
    width: 100%;
    display: inline-block;
    margin-top: 70px;
}

iframe {
    width: 100%;
    height: 70vh;
}

.container h4 {
    font-family: Nasalization;
    font-size: 38px;
    padding-block: 15px;
}

    .container .card-section {
        text-align: left;
        font-size: 22px;
        min-height: 80px;
        max-width: 290px;
    }

        .container .card-section h5 {
            font-weight: 600;
        }

        .container .card-section p {
            font-size: 18px;
        }

    .container .button-container {
        display: grid;
        grid-template-rows: 1fr 0fr;
        gap: 00px;
        padding: 10px;
        text-align: center;
    }

        .container .button-container .card-link{
            border-radius: 22px;
            opacity: 1;
            font-weight: 600;
            background-color: #00b33c;
        }

            .container .button-container .card-link:hover {
                background-color: #009933;
            }

        .container .button-container p {
            padding: 0px;
            margin: 0px;
        }

        .container .button-container .warning {
            border-radius: 22px;
            opacity: 1;
            font-weight: 600;
            background-color: #ffd633;
        }

            .container .button-container .warning:hover {
                background-color: #e6b800;
            }


@media (max-width: 992px) {
    .event-callout .cell {
        flex-basis: 100%;
    }
}

.card-image {
    position: relative;
    width: 100%;
    padding-top: 220px;
    overflow: hidden;

}

    .card-image img {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
        max-height: 220px;
        min-height: 220px;
    }

.card {
    position: relative;
    border: none;
    border-radius: 20px;
    background-color: #d6dadb;
    max-height: 550px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.35) transparent;
}

    .card::-webkit-scrollbar {
        width: 6px;
        max-height: 97%;
    }

    .card::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,.25);
        border-radius: 10px;
    }

form button {
    width: 100%;
}

.weather-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.weather-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f1f3f4;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    font-size: 0.85rem;
}

    .weather-box i {
        font-size: 1.4rem;
        display: block;
        margin-bottom: 4px;
    }

.practice-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    z-index: 2;
    max-width: 120%;
    min-width: 101%;
    max-height: 30px;
}

    .practice-indicator .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }

    .practice-indicator.online .dot {
        background-color: #2ecc71;
    }

    .practice-indicator.offline .dot {
        background-color: #e74c3c;
    }

#serverInfoModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 1000;
    text-align: center;
    align-content: space-around;
}

    #serverInfoModal .modal-content {
        max-width: 900px;
        padding: 16px 20px;
        border-radius: 10px;
        background-color: lightgrey;
        margin-left: auto;
        margin-right: auto;
    }

    #serverInfoModal h4 {
        margin-bottom: 8px;
    }

#practiceLeaderboardModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 1000;
    text-align: center;
    align-content: space-around;
}
    #practiceLeaderboardModal .modal-content {
        max-width: 900px;
        padding: 16px 20px;
        border-radius: 10px;
        background-color: lightgrey;
        margin-left: auto;
        margin-right: auto;
    }

    #practiceLeaderboardModal h4 {
        margin-bottom: 8px;
    }

#eventFields .grid, #eventFields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 8px;
}

#eventFields label, #eventFields label {
    font-size: 0.68rem;
    color: dimgrey;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

#eventFields input[type="text"],
#eventFields input[type="number"],
#eventFields input[type="datetime-local"] {
    padding: 6px 8px;
    font-size: 0.82rem;
    height: 30px;
    margin-bottom: 2px;
}

#eventFields input:focus {
    outline: none;
    border-color: #4cafef;
}

#eventFields input:disabled {
    border-color: transparent;
    cursor: text;
}

    #eventFields input:disabled::-webkit-inner-spin-button {
        display: none;
    }

#eventFields label input[type="checkbox"] {
    margin-bottom: 5px;
}

#eventFields label:has(input[type="checkbox"]) {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    text-transform: none;
}

#eventFields input[type="number"]::-webkit-inner-spin-button {
    display: none;
}

#serverInfoModal .modal-footer {
    margin-top: 12px;
}

#serverInfoModal .btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

    #serverInfoModal .btn.green {
        background: #2ecc71;
        color: #111;
    }

        #serverInfoModal .btn.green:hover {
            background: #27c065;
        }

    #serverInfoModal .btn.modal-close {
        background: #333;
        color: #fff;
    }

.checkbox-grid {
    grid-column: span 2;
    display: grid;
    justify-items: center;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    margin-top: 4px;
}

    .checkbox-grid label {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 8px;
        font-size: 0.78rem;
        color: #ddd;
        text-align:center;
    }

    .checkbox-grid input[type="checkbox"] {
        margin: 0;
    }

.field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#CarClass {
    max-height: 30px;
    padding-bottom: 0;
    margin-bottom: 0;
}

#track {
    max-height: 30px;
    padding-bottom: 0;
    margin-bottom: 0;
}

input[type=checkbox]:disabled {
    background-color: cornflowerblue !important;
}

.readonly-field {
    text-align: center;
    margin: 4px 0;
    font-weight: bold;
}

.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
}

.event-info {
    max-width: 63%;
    min-height: 80px;
}

.event-info h5 {
    margin: 0;
}

.event-info p {
    margin: 0;
    font-size: 0.85rem;
}

.practice-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.click-details {
    font-size: 0.75rem;
    color: blue;
    margin-top: 2px;
}

.close-modal-button {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    position:absolute;
    top: 15px;
    right: 15px;
}