html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  font-size: 100%;
}

@media (max-width: 769px) {
  html {
    font-size: 90%;
  }
}

@media (max-width: 425px) {
  html {
    font-size: 75%;
  }
}

body {
  font-family: "Sorts Mill Goudy", serif;
  font-size: 32px;
  color: rgb(255, 255, 255);
  background-color: rgb(32, 109, 58);
  text-align: center;
  margin: 0;
  padding: 0;
  letter-spacing: 0.2rem;
}

/*Headings*/

h1,
h2,
h4,
h5,
p {
  margin: 0.5rem 0;
}

h1 {
  font-family: "Fascinate Inline", serif;
  text-shadow: 1px 1px 2px yellow;
  font-size: 4rem;
}

h2 {
  font-family: "Federo", serif;
  text-shadow: 1px 1px 2px yellow;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: black;
  padding: 0.5rem 1rem;
  z-index: 10;
}

.nav-links h4 {
  display: inline-block;
  margin: 0 1rem;
  cursor: pointer;
  text-decoration: underline;
  margin-right: 4rem;
  font-size: 1.5rem;
}

.navbar #logo img {
  height: 6rem;
  width: auto;
}

.word-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-direction: row-reverse;
  font-size: 5rem;
}

.header {
  background-image: url("public/images/anastasiya-badun-3gUw1oIVgAg-unsplash.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 25rem;
  height: auto;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem 2rem;
}

.header h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0.25em 0 0;
  word-break: break-word;
}

.customers {
  padding: 2rem;
}

.customer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.customer-type img {
  max-width: 100%;
  min-width: 20rem;
  height: 15rem;
  display: block;
  flex-grow: 2;
  flex-shrink: 1;
  border-radius: 8px;
  object-fit: cover;
}

.gallery {
  padding: 2rem;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.gallery-items img {
  max-width: 100%;
  min-width: 20rem;
  height: 15rem;
  display: block;
  flex-grow: 2;
  flex-shrink: 1;
  border-radius: 8px;
  object-fit: cover;
}

.about-bill {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.about-bill img {
  max-width: 50rem;
  height: auto;
  border-radius: 10px;
  margin: 1rem 0;
}

.footer {
  background-color: black;
  color: white;
  padding: 1rem;
}

/*Breakpoints for Responsive Design*/

@media only screen and (min-width: 770px) {
  /*all the rules above should apply?*/
}

@media only screen and (min-width: 426px) and (max-width: 769px) {
  /*I hope this means that the rules here will apply to screen sizes between 426px and 768px, which would make it a tablet?*/
  .navbar,
  .customer-grid,
  .gallery-grid {
    flex-direction: column;
    align-items: center;
  }

  .navbar {
    position: static;
  }

  .header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 30rem;
    width: 100%;
    margin-top: 0px;
  }

  img {
    width: 90%;
    height: auto;
    object-fit: cover;
  }

  h1 {
    font-size: 3.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h4 {
    font-size: 1.5rem;
  }

  section {
    padding: 1rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 425px) {
  /*Should apply to large mobile phones unless everything is horrible and bad*/
  .navbar,
  .customer-grid,
  .gallery-grid {
    flex-direction: column;
    align-items: center;
  }

  .navbar {
    position: static;
  }

  .header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
    min-height: 25rem;
    width: 100%;
    padding-top: 5rem;
  }

  img {
    width: 85%;
    height: auto;
    object-fit: cover;
  }

  .header h1 {
    font-size: 3rem !important;
  }
  h2 {
    font-size: 3rem;
  }
  h4 {
    font-size: 1.5rem;
  }

  section {
    padding: 1.25rem;
  }
}

/*Really struggling to get Bill looking snazzy*/
.about-bill img {
  width: 90%;
  max-width: 25rem;
  height: auto;
}

@media only screen and (max-width: 375px) {
  /*By setting this as the max-width instead of the min-width, I'm hoping that this means any tiny phone all the way up to 320px
    will display with the rules herein*/
  .about-bill img {
    width: 90%;
    max-width: 10rem;
    height: auto;
  }
}

@media (max-width: 425px) {
  .about-bill img {
    max-width: 90%;
  }
}
