/* CSS reset - Josh Comeau - https://www.joshwcomeau.com/css/custom-css-reset/ */

/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
  box-sizing: border-box;
}
/*
  2. Remove default margin
*/
* {
  margin: 0;
}
/*
  Typographic tweaks!
  3. Add accessible line-height
  4. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/*
  5. Improve media defaults
*/
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
/*
  6. Remove built-in form typography styles
*/
input, button, textarea, select {
  font: inherit;
}
/*
  7. Avoid text overflows
*/
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* my CSS */
/* general styling */

html {
  background-image: url(images/bg800bulbs.jpg);
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #544d47;
  scroll-behavior: smooth;
}

body {
  background-color: white;
  width: 80%;
  padding: 0;
  margin: 1.5rem auto;
  border-radius: 15px;
  color: black;
  font-family: "Lexend", sans-serif;
  font-size: 1rem;
  font-weight: 300;
}

#banner {
  width: 100%;
}

#banner_small {
  display: none;
}

main {
  padding: 0 1.25rem;
  margin: 0;
}

footer {
  background-color: #d96616;
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 1.25rem;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

h1 {
  font-size: 2rem;
  margin-top: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Protest Strike", sans-serif;
  margin-bottom: 0;
}

hr {
  margin: 1rem;
}

button {
  text-align: center;
  border-radius: 20px;
  border: 1px #d96616 solid;
  background-color: #ebe7e4;
  padding: 0.5rem 5rem;
  margin: 1rem auto;
  font-family: inherit;
  display: flex;
  justify-content: center;
}

a:link {
  color: #d96616;
  text-decoration: none;
}

a:visited {
  color: #544d47;
}

a:hover {
  font-weight: bold;
  color: #d96616;
}

p {
  margin: 1rem;
}

/* nav - top of page */

nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  list-style-type: none;
  padding-left: 0;
}

nav li {
  padding: 1rem;
}

img#logo {
  margin-left: 1rem;
  display: flex;
  height: 5rem;
  width: 5rem;
  flex: 1;
} /* had a lot of diffculty with the nav links & logo being on the same line while using flex! */

/* solutions section */

.solution {
  padding-bottom: 3rem;
  display: flow-root;
  text-wrap: wrap;
}

.solution img {
  border-radius: 15px;
  float: right;
  margin-left: 1rem;
}

/* testimonials section */

.testimonial {
  border: 1px #b1d3c9 solid;
  border-left-width: 20px;
  padding: 2rem;
  background-color: #ecf3f2;
  display: flow-root;
  text-wrap: wrap;
}

.testimonial img {
  float: left;
}

blockquote {
  display: flow-root;
  text-wrap: wrap;
  padding: 2rem;
  
}

cite {
  font-style: normal;
  font-weight: 400;
  padding: 2rem;
  padding-top: 0;
  display: flow-root;
  text-wrap: wrap;
}

section {
  padding-bottom: 3rem;
}

/* contact form */

form {
  margin: 1rem auto;
  width: 40%;
  padding: 1rem;
  border: 1px solid #544d47;
  border-radius: 15px;
  background-color: #b1d3c9;
}

form ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

form li + li {
  margin-top: 1rem;
}

label {
  display: inline;
  width: max-content;
}

input,
textarea {
  width: fit-content;
  box-sizing: border-box;
  border: 1px solid #544d47;
  font-family: inherit;
  font-weight: 300;
}

textarea {
  vertical-align: top;
  height: 5rem;
}

form button {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.label {
  font-weight: bold;
}

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

  * {
    text-wrap: wrap;
  }

  body {
    width: 100%;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    list-style-position: inside;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-left: 0;
  }

  img#logo {
    margin-left: auto;
    margin-right: auto;
  }

  h1, h2 {
    text-align: center;
  }

  img {
    margin: 1rem auto;
    width: 100%;
  }

  blockquote, cite {
    text-wrap: wrap;
  }

  form {
    width: 90%;
  }

  input, textarea {
    width: 80%;
  }

  #solar #geo #wind #idk input, label {
    padding: 0;
    margin: 0;
  }

  button {
    padding: 1rem;
  }

  #banner {
    display: none;
  }

  #banner_small {
    width: 100%;
    display: inline-block;
  }

}