  /* 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;
 }

  #pweather, #ptemp, #phumidity, #pprecip, #pwinds {
    color: blue;
    font-weight: bold;
  }
  
  #ptemp::after {content: "°F";}

  #phumidity::after {content: "%";}
  
  #pprecip::after {content: "in";}

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

/*----------- TABLE -------*/

  #onep::after {content: "°F";}
  #twop::after {content: "°F";} 
  #threep::after {content: "°F";}
  #fourp::after {content: "°F";}
  #fivep::after {content: "°F";}

/*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;
}

/*--------- INDEX -----------*/

.index {
  display: flex;
  flex-direction: column;
  font-size: 1.1rem;
  margin-top: 10%;
}
.index h2 {
  text-align: center;
  font-size: 2rem;
  color: black;
}
.index h3{
  font-size: 1.5rem;
  color: black;
  margin-top: 5%;
  margin-bottom: 5%;
  text-align: center;
}

.index p {
  text-align: center;
  margin: 2%;
  padding: 0;
  font-size: 1rem;
}

/*--Story Preston Soda Springs Fish Haven--*/

.storyindex, .prestonindex, .sodaindex, .fishindex {
  border: 2px solid blue;
  width: 100%;
  margin-bottom: 10%;
}

#story {
  padding: 4%;
  text-align: justify;
}

.storyimg > img, .city > img {
  width: 90%;
  padding: 5%;
}

/*--------STORM CENTER-------------*/
.stormcenter {
  margin-top: 35%;
  color: black;
  text-align: center;
  font-size: 1.3em;
}

.pInfo, .sInfo, .aInfo {
  border-color: darkslateblue;
  box-shadow: 2px 2px 10px darkslateblue;
  background-color: #EEEEEE;
  padding: 5% 2% 5%;
}

legend {
  background-color: darkslateblue;
  border-color: darkblue;
  border-radius: 10px;
  padding: 15px;
  color: #EEEEEE;
  font-size: 1.3rem;
  font-weight: bold;
}

.stormform {
  font-size: 1.2rem;
  font-weight: bold;
}
input {
  width: 90%;
  font-size: 1rem;
  margin: 2% 0;
  padding: 1% 0;
  border-radius: 2px;
}
em {
  font-weight: bolder;
  color: darkred !important;
  margin-right: 8px;
}

#sevstorm {
  font-size: .9em;
  text-align: left;
  font-weight: normal;
  color: gray;
}

#ratingvalue {
  font-weight: bolder;
  font-size: 2rem;
  color: darkblue;
  margin: 45%;
}

#stormr {
  margin-bottom: 10%;
}
#stormreg {
  width: 90%;
  font-size: 1rem;
  margin: 2% 0;
  padding: 1% 0;
  border-radius: 8px;
}
.danger > input { 
width: 10%;
}

textarea {
  width: 90%;
  height: 100px;
  font-size: 1rem;
  border-radius: 8px;
}

#subbutton {
  font-size: 1.6rem;
  font-weight: bolder;
  color: darkblue;
  background-color: orange;
  width: 30%;
  height: 60px;
  border-radius: 8px;
  border-color: darkorange;
  margin: 4% 35%;
}

#thanks {
  color: rgb(46, 13, 73);
  font-size: 1rem;
}