* {
    box-sizing: border-box;
}

body {
    background-image: url("../images/background.jpg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;

    /* Adds the background blur effect */
    /* NOTE: Seems like these styles prevent "position: fixed" from working */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    text-align: center;
    font-family: "Arial", "Helvetica", sans-serif;

    padding-bottom: 25px;
    margin: 0;
}

table {
    width: 100%;
}


/* START: Top Banner for Current Conditions */
#top-banner {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    background-color: #015C1F;
    color: white;
    font-family: "Helvetica", sans-serif;
    padding: 20px;
    padding-left: 15%;
    padding-right: 15%;
}

#top-banner h1 {
    font-size: 2.2em;
}

#top-banner h4 {
    font-weight: normal;
    font-size: 1.2em;
    margin-top: 10px;
    margin-bottom: 10px;
}

#top-banner__left-section {
    float: left;
    width: 30%;
}

#top-banner__right-section {
    float: left;
    width: 70%;
    background-color: #5F902E;
    border: 1px solid white;
    border-radius: 25px;
    padding: 10px;
}

#top-banner__right-section table {
    border-collapse: collapse;
}

#top-banner__right-section th {
    border-bottom: 1px solid white;
    padding-bottom: 10px;
}

#top-banner__right-section__table-row-1 {
    font-size: 1.8em;
}

#top-banner__right-section__table-row-1 img {
    height: 60px;
    vertical-align: middle;
    margin: -5px;
}

#top-banner__right-section__table-row-2 {
    font-style: italic;
}

.top-banner__subdata {
    font-style: italic;
    font-size: 0.8em;
}

.top-banner__unit-label {
    font-size: 0.8em;
}

/* END: Top Banner for Current Conditions */


/* START: Hourly Weather Table Sections */
.hourly-data-section {
    background-color: white;
    border-radius: 25px;
    padding: 25px;
    margin-left: 15%;
    margin-right: 15%;
    margin-top: 20px;
}

.hourly-data-label {
    text-align: left;
    padding-bottom: 20px;
}

.hourly-data-label h2 {
    display: inline-block;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 10px;
    margin-right: 10px;
}

.hourly-data-label span {
    font-size: 1.1em;
}

.hourly-data-section table,
.hourly-data-section th,
.hourly-data-section td {
    border: 1px solid lightgray;
    border-left: 0;
    border-right: 0;
    border-collapse: collapse;
}

.hourly-data-section th {
    font-size: 1.1em;
    padding: 10px;
}

.hourly-data-section img {
    height: 50px;
    vertical-align: middle;
}

.hourly-subdata {
    color: #636363;
    font-style: italic;
    font-size: 0.8em;
}

/* END: Hourly Weather Table Sections */


/* START: CSS for Mobile Devices */
@media only screen and (max-width: 1400px) {
    #top-banner {
        padding: 1.5%;
    }

    #top-banner__left-section {
        width: 100%;
        display: flex;
        align-items: center;
    }

    #top-banner__left-section h1 {
        float: left;
        width: 50%;
        margin-top: 10px;
    }

    #top-banner__left-section h4 {
        float: left;
        width: 50%;
        margin-bottom: 20px;
    }

    #top-banner__right-section {
        width: 100%;
    }

    .hourly-data-section {
        margin-top: 1.5%;
        margin-left: 1.5%;
        margin-right: 1.5%;
    }
}

/* END: CSS for Mobile Devices */