  /* This main css file contains the default rules and is geared toward the small/phone view */

/*----------- BODY-------*/
body {
  font-size: 16px;
  font-family: 'Roboto Condensed', sans-serif;
  color: black;
  width: 100%;
  background-color: whitesmoke;
}

/*----------- HEADER-------*/
header {
  background: rgb(128,83,252); /* Old browsers */
  background: -moz-linear-gradient(top, rgba(128,83,252,1) 0%, rgba(86,134,211,1) 31%, rgba(120,204,237,1) 93%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, rgba(128,83,252,1) 0%,rgba(86,134,211,1) 31%,rgba(120,204,237,1) 93%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, rgba(128,83,252,1) 0%,rgba(86,134,211,1) 31%,rgba(120,204,237,1) 93%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  padding-top: 20px;
  padding-bottom: 10px;
  display: flex;
  justify-content: center;
  color: #EEEEEE;
  align-items: center;
}

    .logo {
      width: 25%;
    }

    .headertext{
      width: 67%;
    }

    .headertext > h1 {
      margin: 0;
      padding-bottom: 10px;
      letter-spacing: 3px;
    }

    #motto {
      font-size: 12px;
    }


  .currentConditions {
    display: none;
  }

/*----------- NAV MENU-------*/

nav {
  background: #1e5799;
  /* Old browsers */
  background: -moz-linear-gradient(top, #1e5799 16%, #1e5799 16%, #1e5799 22%, #7db9e8 75%);
  /* FF3.6-15 */
  background: -webkit-linear-gradient(top, #1e5799 16%, #1e5799 16%, #1e5799 22%, #7db9e8 75%);
  /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, #1e5799 16%, #1e5799 16%, #1e5799 22%, #7db9e8 75%);
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  font-size: 1rem;
  font-family: 'Fjalla One', sans-serif;
}

nav button {
  background-color: transparent;
}

nav ul {
  /*hidden nav menu */
  list-style-type: none;
  display: flex;
  flex-direction: column;
}


nav ul li a {
  display: block;
  padding: 6px;
  text-decoration: none;
  color: lightblue;
  border-top: 1px;
}

nav ul li.active a {
  color: #EEEEEE;
}

nav ul li a:hover {
  color: black;
  background-color: lightblue;
}

nav ul.hide {
  display: none;
  margin: 0;
  padding: 0;
}

/*----------- MAIN -------*/
main {
    background-color: whitesmoke;
    display: block;
    align-items: center;
  }

main, footer {
  margin: 2%;
}



/*----------- BANNER SECTION -------*/
  .banner {
    display: flex;
    flex-direction: column; 
  }

  .banner > h2 {
    text-align: center;
    font-size: 1.5rem;
    text-shadow: 1px 1px gray;
  }

  .bannerfigure > img {
    width: 100%;
    margin-bottom: -30%;
  }
  
/*----------- WEATHER SUMMARY -------*/
  
  .weatherdetails {
    background-color: rgba(135, 206, 250, 0.473);
    color: black;
    max-width: 164px;
    padding: 2%;
    border: 2pt solid darkblue;
    margin-bottom: -5%;
  }
  
  .weatherdetails > h4 {
    color: whitesmoke;
    margin: 5% 0 5% 0;
  }
.weatherdetails > p {
  display: inline-flex;
  margin: 0;
}
  .wdinfo {
    color: darkblue;
    font-weight: bold;
 }

  .value {
    color: blue;
    font-weight: bold;
  }

  #temp::after {
    content: "°F";
  }

  #winds::after {
    content: "mph";
  }

  #windchill::after {
    content: "°F";
  }

/*----------- TABLE -------*/
/*available with medium view and up*/
  .forecast {
    display: none;  
    margin-top: 5%;  
    padding: 5%;
    background-color: rgb(86, 13, 116);
  }

  .forecast > h3 {
    align-self: center;
    color: whitesmoke;
  }

  .forecast > table {
    border-collapse: collapse;   
  }
  th {
    background-color: whitesmoke;
    border: 1.5pt solid darkblue;
  }

  td {
    padding: 2%;
    border: 1pt solid darkblue;
    background-color: lightblue;
  }

  /*----------- ARTICLE -------*/
  article.prestonstory {
    margin-top: 15%;
    border: 2pt solid darkblue;
    padding: 2rem;
    display: flex;
    flex-direction: column;
  }

  .prestonimg > img {
    box-shadow: 5px 5px 6px grey;
  }

  .story {
    text-align: justify;
  }

  /*----------- FOOTER -------*/
  footer {
    color: whitesmoke;
    display: flex;
    flex-direction: column;
    margin-top: 10%;
    background: rgb(128,83,252); /* Old browsers */
    background: -moz-linear-gradient(top, rgba(128,83,252,1) 0%, rgba(86,134,211,1) 31%, rgba(120,204,237,1) 93%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, rgba(128,83,252,1) 0%,rgba(86,134,211,1) 31%,rgba(120,204,237,1) 93%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, rgba(128,83,252,1) 0%,rgba(86,134,211,1) 31%,rgba(120,204,237,1) 93%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  }

  .contact {
    padding: 5%;
  }

  .prestonmap > img {
    width: 100%;
  }

  p.footer-bar {
    background-color: darkblue;
    color: whitesmoke;
    padding-bottom: 2%;
    padding-top: 2%;
    text-align: center;
    font-size: smaller;
  }

  /*----------GALLERY---------*/

.weatherGallery {
  display: grid;
  grid-auto-columns: auto;
  align-items: center;
  width: auto;
  padding: 2%;
}

main > h2 {
  text-align: center;
}

.weatherGallery figure {
  margin: 2em 0;
  border: 2px solid blue;
}
.weatherGallery figure img {
  width: 100%;
}
.weatherGallery figure figcaption {
  text-align: center;
  font-size: .9rem;
}
.weatherGallery figure:hover {
  box-shadow: 5px 5px 6px lightblue;
  transition: 0.2s;
}
