/* General Styles */
:root {
    --component-width: 90%;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f7fa;
    color: #333;
}

/*.container {
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: grid;
}*/


.upper-case {
    /*text-transform: uppercase;*/
}

.color-white {
    color: white;
}

.red-intro-banner {
    background: #d9363e;
    /* updated with a darker version to pass accessibility contrast error */
}

/******   Rich Text  *******/
.richtext-content {
    width: var(--component-width);
    margin: 30px auto;
}

    .richtext-content .red-intro-banner {
        padding: 15px;
        color: white;
    }

    .richtext-content h3 {
        /*text-transform: uppercase;
        font-size: 1.8em;
        color: #003366;*/
    }

/***** Header Section *******/
.aqi-header {
    text-align: center;
    background-color: #e9f1f7;
    padding: 20px 0px;
    margin-bottom: 30px;
}

    .aqi-header h1 {
        font-size: 1.5em;
        /*color: #003366;*/
        margin-bottom: 10px;
    }

.header-sub-title {
    font-size: 1em;
    margin-bottom: 10px;
}

.header-info {
    font-size: .8em;
    margin-top: 15px;
    margin-bottom: 20px;
}

.header-status {
    display: inline-block;
    padding: 15px 30px;
    /*font-weight: bold;
    color: #003366;*/
    margin: 0px 30px;
    /*text-transform: uppercase;*/
    width: 40%;
    min-width: 300px;
}

/******* Color Labels Section ********/
.color-wrapper {
    text-align: center;
    padding: 10px 5%;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.color-labels-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

    .color-labels-container .color-segment:first-child {
        margin-right: 15px;
    }

.color-segment {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

    .color-segment .color-span {
        display: inline-block;
        height: 20px;
        width: 35px;
    }

    .color-segment .title-main {
        display: inline-block;
        font-size: 0.8em;
        /*color: #003366;
        font-weight: bold;
        text-transform: uppercase;*/
    }

    .color-segment .label-span {
        display: inline-block;
        font-size: 0.8em;
        /*color: #0051a2;*/
        font-weight: 600;
        /*text-transform: uppercase;*/
    }

.cautionary-statement-link {
    display: inline-block;
    /*color: #5c92ff;
    font-size: 0.8em;*/
    text-decoration: none;
    /*font-weight: bold;*/
}

    .cautionary-statement-link:hover {
        text-decoration: underline;
    }

/********* AQI Forecast Section ********/
.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    /*width: var(--component-width);*/
    margin: auto;
    /*margin-bottom: 30px;*/
    padding: 15px 0px;
}

.forecast,
.restrictions {
    flex: 1;
    min-width: 280px;
}

hr {
    border: none;
    border-top: 1px solid rgba(69, 64, 64, 0.427);
}

.content-title {
    font-size: 1.5em;
    /*color: #003366;*/
    margin-bottom: 45px;
    /*text-transform: uppercase;*/
}

.forecast-item,
.restriction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 15px;
    flex-wrap: wrap;
}

    .forecast-item p,
    .restriction-item p {
        margin: 0;
        flex: 1;
    }

.status {
    display: inline-block;
    padding: 10px 20px;
    /*font-weight: bold;*/
    font-size: .8em;
    min-height: 20px;
    /*color: #003366;*/
    text-align: center;
    width: 35%;
    /*text-transform: uppercase;*/
    line-height: 1.5em;
}

.forecast-note,
.restriction-note {
    font-size: 0.8em;
    margin-top: 20px;
}

    .restriction-note a {
        /*color: #0044cc;*/
        text-decoration: none;
        /*font-weight: bold;*/
        border-bottom: none !important;
    }

        .restriction-note a:hover {
            text-decoration: underline;
        }


/* MAP */
.iframe-container {
    width: var(--component-width);
    margin: 30px auto;
}

    .iframe-container .map {
        width: 100%;
        height: 600px;
    }

.iframe-header-title {
    /*color: #003366;*/
    font-size: 1.5em;
}

/* TABLE */

.table-column {
    border-radius: 8px;
}

    .table-column h2 {
        margin-bottom: 10px;
    }

/* Table 2 column styles*/
.prediction-container {
    /*display: flex;*/
    width: var(--component-width);
    margin: 60px auto;
    gap: 30px;
}

.aqi-table-main-content {
    flex: 0 0 70%; /* Set width to 70% */
    margin-bottom: 3.5rem;
}

.aqi-table-sidebar {
    flex: 0 0 30%; /* Set width to 30% */
}

    .aqi-table-sidebar .cg-c-link-list__title {
        font-size: 1.5em;
        /*color: #003366;*/
        margin: 0px;
        margin-bottom: 10px;
    }


.map-disclaimer {
    margin: 0px;
    margin-top: -30px;
}

.aqi-table-sidebar ul {
    list-style-type: none;
    padding: 12px 0px;
    margin: 0px;
}

.aqi-table-sidebar li {
    margin-bottom: 5px;
}


.aqi-table-sidebar .cg-c-link-list__text {
    text-decoration: none;
    /*font-weight: bold;
    color: #007BFF;*/
}


.responsive-table {
    width: 100%;
    border-collapse: collapse;
}

    .responsive-table th {
        /*text-transform: uppercase;
        color: rgb(39, 39, 126);*/
        line-height: 1.5rem;
        text-align: center;
    }

    .responsive-table th,
    .responsive-table td {
        padding: 15px;
        text-align: center;
        border-bottom: 1.5px solid #ddd;
        font-size: 1rem;
    }

th:first-child, td:first-child {
    /*width: 60%;*/
    text-align: left;
}

th:nth-child(2),
th:nth-child(3),
td:nth-child(2),
td:nth-child(3) {
    /*width: 20%;
    text-align: center;*/
}

th span {
    font-weight: normal;
}

.number-box {
    padding: 5px 30px;
}

.responsive-table td a {
    text-decoration: none;
    /*font-weight: bold;*/
    text-transform: capitalize;
    /*color: #007BFF;*/
    /* Link color matching title */
}



.blog-column {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.blog-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.blog-item {
    margin-bottom: 20px;
}

.blog-title {
    text-decoration: none;
    /*color: #007BFF;
    font-weight: bold;*/
    display: block;
    margin-bottom: 5px;
}

.blog-excerpt {
    margin: 0;
    /*color: #555;*/
}

#mainContent a:hover {
    text-decoration: underline;
}

#mainContent .richtext-content, #mainContent .aqi-container, #mainContent .iframe-container, #mainContent .prediction-container {
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
}


/* addition of a three link column area */
.aqi-three-link-cols-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
}

.aqi-col-lg-3 {
    flex: 1 1 20%;
    box-sizing: border-box;
    padding: 12px;
    text-align: center;
}


@media (max-width: 1060px) {
    .content {
        display: block;
        padding: 10px;
        width: var(--component-width);
    }

    .forecast,
    .restrictions {
        margin-bottom: 40px;
    }

    .content-title {
        margin-bottom: 20px;
    }

    .color-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .prediction-container {
        flex-direction: column;
    }

    .color-labels-container {
        flex-direction: column;
        gap: 20px;
        align-items: start;
    }

    .cautionary-statement-link {
        margin-top: 1.45rem;
    }
}

@media (max-width: 768px) {

    .aqi-header p,
    .status {
        font-size: 0.8em;
    }

    .content {
        flex-direction: column;
    }

    .responsive-table th,
    .responsive-table td {
        font-size: .8rem;
    }

    th:first-child {
        width: 50%;
    }

    th:nth-child(2),
    th:nth-child(3),
    td:nth-child(2),
    td:nth-child(3) {
        width: 25%;
        text-align: center;
        padding: 0px 10px;
    }

    .table-column h2 {
        text-align: center;
        margin-bottom: 30px;
    }

    .content-title {
        text-align: center;
        line-height: 1.8rem;
    }

    th span {
        font-weight: normal;
    }

    .number-box {
        font-size: .8rem;
        padding: 5px 15px;
    }

    .responsive-table td a {
        text-decoration: none;
        /*font-weight: bold;*/
        text-transform: capitalize;
        /*color: #007BFF;*/
        /* Link color matching title */
    }

    .aqi-three-link-cols-container {
        padding-top: 0;
    }

    .aqi-col-lg-3 {
        flex: 0 0 100%;
    }
}

@media (max-width: 578px) {
    .aqi-scale-img {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .color-wrapper {
        display: block;
    }

    .color-segment {
        display: block;
        max-width: 300px;
        /*margin: 10px auto;*/
        text-align: start;
    }

    .forecast-item p,
    .restriction-item p {
        text-align: center;
        margin: 10px 0px;
    }

    .status {
        text-align: center;
        width: 100%;
        margin-top: 5px;
    }
}

@media (min-width: 768px) {
    .outside-ozone-restriction-text {
        min-height: 108px;
    }
}
