/* 
Color theme:
  Twine - #C08B55
  Treehouse - #37241D
  Red Robin - #89311D
  Fall Green - #EDE3BE
*/

body {
  font-family: "Lato", sans-serif;
  /* background-color: #ede3be; */
  background-color: rgb(46, 20, 13);
  color: #37241d;
  padding: 0px;
  margin: 0px;
  opacity: 1;
}

div.heading {
  max-width: 800px;
  margin: 0px auto;
  padding: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 2em;
}

div.purchaseSection {
  background-color: #ede3be;
  color: #37241d;
}

a,
a:active,
a:visited,
a:hover {
  text-decoration: none;
  color: inherit;
}

.alternatingSection {
  background-color: white;
}

/* HEADER */
div#headerContainer {
  background: rgb(46, 20, 13);
  background: linear-gradient(0deg, rgba(46, 20, 13, 1) 0%, rgba(64, 22, 14, 1) 100%);
  color: white;
  padding-top: 20px;
}
div#header {
  display: flex;
  flex-direction: row;
  max-width: 800px;
  margin: 0px auto;
}

div#headerLogo {
  display: none;
  max-width: 280px;
  margin: 5px 10px;
  padding: 5px;
  font-size: 1.4em;
}

div#headerItems {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  justify-content: flex-end;
  padding: 0px 12px;
  font-size: 1.1em;
  font-weight: bold;
  align-items: center;
}

div.headerItem {
  max-width: 90px;
  padding: 5px 10px;
  height: fit-content;
  cursor: pointer;
}

div.headerItem:hover {
  background-color: rgba(150, 150, 150, 0.2);
}

div#purchase {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: space-around;
  max-width: 800px;
  margin: 12px auto 0px;
  padding-bottom: 30px;
}
.purchaseLink img {
  max-width: 200px;
  max-height: 50px;
  cursor: pointer;
}
.purchaseLink:hover img {
  transform: scale(1.1);
}

#amazonButton {
  width: 120px;
  margin-top: 9px;
}
#smashButton {
  width: 176px;
}
#takealotButton {
  margin-top: 8px;
}

/* CONTENT */
div#content {
  display: flex;
  flex-direction: row;
  max-width: 1000px;
  margin: 20px auto;
}

div#bookContent {
  padding: 24px;
  width: 50%;
  font-weight: 500;
  font-size: 1.1em;
}

div#bookSubContent {
  max-width: 1000px;
  margin: 0px auto;
  font-size: 1.1em;
  padding: 0px 24px 24px 24px;
}

div#bookCover {
  /* max-width: 280px; */
  width: 50%;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}
div#bookCover img {
  max-width: 280px;
  border-radius: 4px;
}
div#bcImage {
  flex-shrink: 1;
}
div#bcInfo {
  font-weight: 200;
  padding-top: 4px;
  font-size: 0.8em;
  text-align: right;
}

#sectionText {
  max-width: 600px;
  margin: 20px auto;
  text-align: center;
}

/* CONTACT FORM */
#contact {
  padding: 20px 12px 12px 12px;
}
#contact form {
  max-width: 500px;
  margin: 20px auto;
}
#contact table {
  width: 100%;
}
#contact div {
  margin-top: 6px;
}
#contact input {
  width: 100%;
}
#contact input,
#contact textarea {
  border: 1px solid #9999;
  border-radius: 3px;
  padding: 4px;
}
#contact textarea {
  margin-top: 3px;
  height: 130px;
  width: 100%;
}
#contact #submitButton {
  margin: 8px auto 12px 5px;
}

.contactResultDiv {
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  padding: 30px 0px;
}
.contactResultDiv#successForm {
  color: darkgreen;
}
.contactResultDiv#failureForm {
  color: darkred;
}
.contactResultDiv#failureForm p {
  font-weight: normal !important;
}
.contactResultDiv#failureForm a {
  color: black !important;
}

/* FOOTER */

div#footer {
  padding: 10px 20px 40px 20px;
  background-color: rgb(46, 20, 13);
  color: #ede3be;
  text-align: center;
  font-size: 0.8em;
  font-weight: bold;
}

/* SCALING */
@media screen and (min-width: 731px) {
  #headerLogo {
    display: block !important;
  }
}

@media screen and (max-width: 730px) {
  div#content {
    flex-direction: column !important;
    align-items: center;
  }

  #header {
    margin-top: 0px !important;
  }

  #headerItems {
    font-size: 1em !important;
  }

  #headerItem {
    padding: 5px !important;
  }

  div#bookCover {
    display: block !important;
    width: unset !important;
    text-align: center;
  }

  div#bookContent {
    width: unset !important;
    padding: 8px 18px 0px !important;
  }
  div#bookSubContent {
    padding: 0px 18px 24px !important;
  }
  div#bcInfo {
    text-align: center !important;
  }

  #purchase {
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
  }

  #amazonButton {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }
  #smashButton {
    margin-top: 20px !important;
    margin-bottom: 30px !important;
  }
  #takealotButton {
    margin-top: 20px !important;
    margin-bottom: 30px !important;
  }

  div#footer {
    position: unset;
  }
}
