body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  background: #f6f7f9;
  color: #222;
  padding: 16px;
}

.hide_on_mobile {
    display: block;
}

.hide_on_desktop {
    display: none;
}

section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    margin-top: 10px;
    max-width: 100%;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

nav a {
  margin-right: 12px;
  text-decoration: none;
  color: rgb(16, 64, 112);
}

nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 100%;
  background: #fff;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

button {
  padding: 8px 12px;
  border: 1px solid rgb(16, 64, 112);
  background: rgb(16, 64, 112);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

input {
  padding: 8px 12px;
  border: 1px solid rgb(16, 64, 112);
  background: white;
  color: black;
  border-radius: 6px;
  cursor: pointer;
}

img{
   max-width: 100%;
   height: auto;
}

/* Style the navigation menu */
.topnav {
  overflow: hidden;
  position: relative;
}

/* Hide the links inside the navigation menu (except for logo/home) */
.topnav #myLinks {
  display: none;
}

/* Style navigation menu links */
.topnav a {
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
}

/* Style the hamburger menu */
.topnav a.icon {
  background: black;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

/* Add a grey background color on mouse-over */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Style the active link (or home/logo) */
.active {
  background-color: #04AA6D;
  color: white;
}




/* News */

#News{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(120deg, #004c97, #0084ff);
    color: white;
    padding: 2rem;
    border-radius: 10px;
}

#News p{
    font-size: 1.1rem;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 10px;
}


/* Local Forecast */

#LocalForecast{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(120deg, #00973f, #02d937);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

#LocalForecast h1{
    margin-bottom: 20px;
}

#txtHelp{
    margin-top: 20px;
}

#forecast-lookup{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
}

#forecast-lookup input{
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
}

#forecast-lookup button{
    font-size: 1rem;
    margin-bottom: 10px;
}


/* Quick Links */

#QuickLinks{
    font-size: 1.25rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    margin-bottom: 20px;
}

#QuickLinks a{
    text-decoration: none;
    color: rgb(16, 64, 112);
    margin: 10px;
}

#QuickLinks a:hover{
    text-decoration: underline;
}



/* Map */

#Map{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(120deg, #ffffff, #f9fffa);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 2rem;
    border-radius: 10px;
    color: rgb(0, 0, 0);
}

.USMap{
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* Colors */

#USlegend{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
}

#wwa{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#wwa li{
    list-style-type: none;
    display: flex;
    flex-direction: row;
    margin-top: 5px;
}
#wwa li div{
    width: 20px;
    height: auto;
    margin-right: 2px;
}

#wwa li a{
    text-decoration: none;
    color: black;
}

#wwa li a:hover {
  text-decoration: underline;
}



/* Social Media */

#socialmedia{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
    margin-top: 20px;
    max-width: 100%;
}


/* Footer */

footer{
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 20px;
    font-size: 0.875rem;
}

footer a{
    text-decoration: none;
    color: rgb(16, 64, 112);
}

footer ul{
    display: flex;
    flex-direction: column;
    padding: 0px !important;
}

footer div{
    margin: 5px;
}


@media screen and (min-width: 981px) {
    /* Header */

    header {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #ddd;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }

    header nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    header div {
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    header nav a {
        font-size: 1.5rem;
        margin-left: 10px;
        margin-right: 10px;
    }
    
}



@media screen and (max-width: 981px) {

    .hide_on_mobile {
        display: none;
    }

    .hide_on_desktop {
        display: block;
    }
    /* Style the navigation menu */
    .topnav {
    overflow: hidden;
    position: relative;
    }

    /* Hide the links inside the navigation menu (except for logo/home) */
    .topnav #myLinks {
    display: none;
    }

    /* Style navigation menu links */
    .topnav a {
    color: rgb(0, 0, 0);
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
    margin-left: 3%;
    }

    /* Style the hamburger menu */
    .topnav a.icon {
    background: rgb(246, 247, 249);
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    }

    /* Add a grey background color on mouse-over */
    .topnav a:hover {
    background-color: #ddd;
    color: rgb(255, 255, 255);
    }

    /* Style the active link (or home/logo) */
    .active {
    background-color: #04AA6D;
    color: white;
    }

    #QuickLinks{
        flex-wrap: nowrap;
        flex-direction: column;
        background: linear-gradient(120deg, #ffffff, #f9fffa);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 2rem;
        border-radius: 10px;
        color: rgb(0, 0, 0);
        margin-bottom: 10px;
    }
    #QuickLinks div{
        margin: 10px;
    }

    #QuickLinks a{
        font-size: 1.75rem;
    }

    #socialmedia{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    #News p{
        margin: 0px;
    }

}

@media screen and (max-width: 710px) {
    header img{
        max-width: 350px;
    }

    header{
        margin-bottom: 30px;
    }
}