/* Ensure no extra margins/padding from the form */
form#weatherForm {
    margin-top: 8px; /* Adjust this value as needed to control the space */
    margin-left: 5px;
}

/* Main styling for form groups */
.form-group-vertical {
    display: flex;
    flex-direction: column;
    margin-top: 5px;
}

.label-input-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.label-container {
    width: 140px;
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.input-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    /*max-width: 220px;*/
    box-sizing: border-box;
    margin-right: 5px;
}

#sitesInput,
.form-group input[type="text"] {
    width: 100%;
    /*max-width: 400px;*/
    box-sizing: border-box;
}

#routeRadiusInput,
.form-group input[type="number"] {
    width: 50px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-right: auto; /* Align checkboxes to the left within the label container */
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-left: 5px;
}

.checkbox-container input[type="checkbox"] {
    margin-left: 1px;
}

.nm-text {
    font-size: 14px;
    color: #303030;
    margin-left: 5px;
}

#weatherData {
    margin-top: 20px;
    margin-left: 5px;
    margin-right: 5px;
}

.icao-code {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 18px;
}



@media (max-width: 768px) {
    .icao-code {
        margin-bottom: 5px;
        font-weight: bold;  /* Apply bold text for current period */
        font-size: 16px;    /* Apply font size for current period */
    }
    .metar-entry,
    .taf-entry {
        position: relative;
        border-bottom: 1px solid #aaa; /* Add a thin soft line at the bottom */
    }
    .metar-entry::before,
    .taf-entry::before {
        content: '';
        display: block;
        position: absolute;
        top: -1px;
        left: 0;
        right: 0;
        height: 1px;
        background-color: #aaa; /* Color for the lines */
    }
    .metar-entry:first-child::before,
    .taf-entry:first-child::before {
        top: 0;
    }
}

/* METAR/TAF Age timers */

.time-header {
    color: #4b4a4a;
    font-size: 12px;
}

.metar-age-valid {
    color: green;
    font-size: 11px;
}

.metar-age-expired {
    color: red;
    font-size: 11px;
}

.taf-age-valid {
    color: green;
    font-size: 11px;
}

.taf-age-expired {
    color: red;
    font-size: 11px;
}

.next-taf {
    color: green;
    font-size: 11px;
}
