html {
  color: #fff;
  background-color: #051431;
  background-image: url("images/background-min.png");
  background-position: center top;
  background-repeat: no-repeat;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  max-width: 1680px;
  line-height: 200%;
  margin: 2em auto 2em;
  width: calc(100% - 4em);
  row-gap: 2em;
  column-gap: 4em;
  align-items: center;
  justify-content: center;
}

h1 {
  width: 100%;
  font-family: "Lora", serif;
  text-transform: uppercase;
  text-align: center;
  font-size: 72px;
  line-height: 1em;
  font-weight: 100;
  text-shadow: 0px 5px 5px rgba(0, 0, 0, 1);
  margin-bottom: 0;
  letter-spacing: 4px;
}

h2 {
  width: 100%;
  font-family: "Lora", serif;
  text-align: center;
  font-weight: 100;
  font-size: 24px;
  text-shadow: 0px 5px 5px rgba(0, 0, 0, 1);
  margin-top: 0;
}

@font-face {
  font-family: "Lora";
  src: url("fonts/Lora/Lora-VariableFont_wght.ttf") format("truetype");
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins/Poppins-Regular.ttf") format("truetype");
}

#about {
  flex: 1;
  text-align: center;
  text-shadow: 0px 0.125em 0px #000;
}

#about h3 {
  margin-bottom: 0;
  text-align: center;
}

#about h3 + p {
  margin-top: 0;
}

#about img {
  margin-left: 1em;
  margin-bottom: 1em;
  border-radius: 50%;
  max-height: 14em;
  float: right;
}

#book {
  max-width: min-content;
}

#book #purchase-options {
  display: flex;
  column-gap: 1em;
  list-style: none;
  padding: 0px;
  filter: drop-shadow(0px 40px 26px rgba(0, 0, 0, 0.5));
}

#book .westbow-press,
#book .amazon-button {
  flex: 1;
  font-size: 0.85em;
  line-height: 1.5em;
  padding: 0.5em;
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 1em;
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s ease-in-out, background-color 0.25s ease-in-out;
}

#book .westbow-press:hover,
#book .amazon-button:hover {
  transform: scale(1.1);
}

#book .amazon-button {
  background: #343a40;
  border: 1px solid #4d4848;
  color: white;
}

#book .amazon-button:hover {
  background: #27292b;
}

#book .westbow-press {
  background: #ffa41c;
  border: 1px solid #ff8f00;
  color: black;
}

#book .westbow-press:hover {
  background: #fa8900;
}

#book .bulk-orders {
  margin: 1em auto;
  font-size: 0.75em;
  line-height: 1.5em;
}

#book .bulk-orders,
body > footer .contact {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

#book .bulk-orders a,
body > footer .contact a {
  color: rgba(255, 255, 255, 0.75);
}

#book .bulk-orders a:hover,
body > footer .contact a:hover {
  color: rgba(255, 255, 255, 1);
}

#book img {
  filter: drop-shadow(0px 40px 26px rgba(0, 0, 0, 0.5));
}

#reviews {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0px 0.125em 0px #000;
}

#reviews blockquote {
  display: none;
  text-align: center;
  font-style: italic;
}

#reviews blockquote p {
  font-size: 2em;
  line-height: 1.25em;
}

#reviews blockquote.shown {
  display: block;
}

body > footer {
  width: 100%;
  display: flex;
  column-gap: 2em;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

body > footer .copyright,
body > footer .contact {
  flex: 1;
}

#contact {
  display: none;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1em;
  padding: 0em 1em 1em;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 40px 26px rgba(0, 0, 0, 0.5);
  text-shadow: 0px 0.125em 0px #000;
}

@supports (backdrop-filter: blur(12px)) {
  #contact {
    backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.25);
  }
}

body.show-contact-form {
  overflow: hidden;
}

body.show-contact-form #contact {
  display: block;
}

#contact form {
  display: flex;
  flex-direction: column;
  row-gap: 1em;
}

#contact form label {
  display: flex;
  column-gap: 1em;
}

#contact form label span {
  width: 100px;
  text-align: right;
}

#contact form label input {
  flex: 1;
}

#contact form label textarea {
  flex: 1;
  height: 4em;
}

#contact form button {
  width: fit-content;
  align-self: center;
}

span.contact-button {
  cursor: pointer;
  border-radius: 1em;
  padding: 0.25em 0.5em;
  background: #ffa41c;
  border: 1px solid #ff8f00;
  color: black;
  font-size: 0.85em;
}

span.contact-button:hover {
  background: #fa8900;
}

@media screen and (max-width: 400px) {
  body > footer {
    flex-direction: column;
    order: 3;
  }
  body > footer .contact {
    order: 2;
  }
  body > footer .copyright {
    order: 3;
  }
  #about img {
    float: none;
    display: block;
    margin: 1em auto;
  }
  #about {
    order: 2;
  }
  #book {
    order: 1;
  }
  #reviews p {
    font-size: 1em;
  }
  h2 {
    margin-bottom: 0;
  }
  #reviews blockquote {
    margin: 0 auto;
  }

  #contact {
    top: 1em;
    right: 1em;
    left: 1em;
    transform: none;
  }
}

@media screen and (max-width: 800px) {
  body {
    flex-wrap: nowrap;
    flex-direction: column;
  }
}

@media screen and (max-width: 1180px) {
  html {
    background-size: contain;
  }
  #reviews {
    width: 100%;
    flex: none;
  }
}
