.book-container {
  display: flex;
  flex-direction: row;
  height: 50rem;
  width: 75%;
  border: 1px solid black;
  border-radius: 1rem;
  background-color: rgba(250, 250, 250, 1);
  margin: 0 12.5% 0 12.5%;
}

/* SECTION: book image */
.book-image-container {
  height: 100%;
  width: 47rem;
  border-right: 1px solid black;
}

#book-image {
  height: 100%;
  border-radius: 0.9rem 0 0 0.9rem;
}
/* !SECTION */

/* SECTION: book info */
.book-info {
  height: 100%;
  width: 100%;
  padding: 0 2rem 0 2rem;
  border-radius: 0 0.9rem 0.9rem 0;
  background-color: rgba(250, 250, 250, 1);
}

#title {
  margin: 1rem 0 0 0;
  font-size: 50px;
}

#cost {
  font-size: 40px;
  margin-bottom: 0;
  text-align: right;
  margin-right: 2rem;
  font-weight: 700;
}

#description {
  height: 15rem;
  margin-bottom: -2rem;
}

#cost-container {
  padding: 10px;
  margin: 10px;
  position: absolute;
  top: 37.5rem;
  right: calc(2.5rem + 12.25%);
}

.product-link:hover {
  cursor: pointer;
  text-decoration: none;
}

#add-to-library {
  border-radius: 1rem;
  background-color: #4c41b3;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 20rem;
  height: 4rem;
}

.install {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: auto;
  margin: 4rem;
}

.install-btn {
  background-color: #4c41b3;
  border-radius: 1rem;
  color: white;
  width: 30rem;
  height: 4rem;
  border: none;
}

.download {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: auto;
  margin: 4rem;
}

.download-btn {
  background-color: #4c41b3;
  border-radius: 1rem;
  color: white;
  width: 30rem;
  height: 4rem;
  border: none;
}

b {
  font-weight: bold;
}

#book-info-fields {
  width: 90%;
}

#info-table {
  margin-top: 30px;
}
/* !SECTION */

/* SECTION: download book */
.download-book {
  width: 84%;
  margin: 0 8% 0 8%;
  margin-top: 30px;
}
/* !SECTION */

/* SECTION: 1919 halfmoon header size change point */
@media (max-width: 1919px) {
  #cost-container {
    top: 36rem;
  }
}
/* !SECTION */

@media (max-width: 1640px) {
  .large-info-text {
    font-size: 12px !important;
  }
  .large-title-text #title {
    font-size: 37px !important;
  }

  .large-title-text #subtitle {
    font-size: 21px !important;
  }
}
/* SECTION: 1599 halfmoon header size change point */
@media (max-width: 1599px) {
  #cost-container {
    top: 34rem;
  }
  #info-table tr td {
    font-size: 12px;
  }

  #title {
    font-size: 33.5px;
  }

  #subtitle {
    font-size: 18px;
  }

  #info-table {
    margin-top: 10px;
  }

  .large-info-text {
    font-size: 11px !important;
  }
  .large-title-text #title {
    font-size: 33px !important;
  }

  .large-title-text #subtitle {
    font-size: 18px !important;
  }
}
/* !SECTION */

/* SECTION: 1366 tablets */
@media (max-width: 1366px) {
  #title {
    font-size: 32px;
  }

  #subtitle {
    font-size: 17px;
  }

  .book-container {
    width: 80%;
    margin: 0 10% 0 10%;
  }

  #cost-container {
    right: calc(1.75rem + 11%);
  }

  .large-info-text {
    font-size: 11px !important;
  }
  .large-title-text #title {
    font-size: 33px !important;
  }

  .large-title-text #subtitle {
    font-size: 18px !important;
  }

  .large-info-text #addtl-book-info {
    width: 28%;
    top: 44rem !important;
  }
}

/* SECTION: 1265 Font Size */

@media (max-width: 1265px) {
  #title {
    font-size: 29px;
  }

  #subtitle {
    font-size: 15px;
  }

  #info-table tr td {
    font-size: 11px;
  }
  .large-title-text #title {
    font-size: 28px !important;
  }

  .large-title-text #subtitle {
    font-size: 15px !important;
  }
}

/* SECTION: 1160 Font Size */

@media (max-width: 1180px) {
  #title {
    font-size: 25px;
  }

  #subtitle {
    font-size: 13px;
  }
  #info-table tr td {
    font-size: 10px;
  }

  .large-info-text {
    font-size: 9px !important;
  }
  .large-title-text #title {
    font-size: 27px !important;
  }

  .large-title-text #subtitle {
    font-size: 14px !important;
  }

  .large-info-text #addtl-book-info {
    width: 27%;
    top: 44rem !important;
  }
}

/* SECTION: 1049 book info fade overlay */

@media (max-width: 1052px) {
  .book-info {
    mask-image: linear-gradient(
      to left,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 75%,
      rgba(0, 0, 0, 0) 100%
    ) !important;
    position: absolute;
    height: 49.8rem;
    width: 52.5rem;
    right: 12.8rem;
    padding-left: 10rem;
    z-index: 100;
  }

  #cost-container {
    top: 31rem;
    right: calc(0.1rem + 0%);
  }

  .book-image-container {
    border-right: none;
  }

  #info-table {
    margin-top: -2px;
  }

  #info-table tr td {
    font-size: 10px;
  }

  .large-info-text #addtl-book-info {
    width: 38%;
    top: 40rem !important;
  }

  #addtl-book-info {
    top: 42rem !important;
  }

  table#addtl-book-info td {
    padding-right: 0.5rem !important;
  }
}

@media (max-width: 1048px) {
  .book-info {
    border-right: 1px solid black;
  }
}

@media (max-width: 1047.5px) {
  .book-info {
    border-right: none;
  }
}

@media (max-width: 990px) {
  #cost-container {
    right: calc(-0.9rem + 0%);
  }
}

@media (max-width: 889px) {
  #cost-container {
    right: calc(-0.9rem + -2%);
  }
}

/* !SECTION */
@media (max-width: 762px) {
  .book-container {
    display: flex;
    flex-direction: column;
    height: auto;
    border: 0;
    border-radius: 1rem;
    background-color: rgba(250, 250, 250, 1);
    padding: 1rem;
    border: 1px solid rgb(199, 199, 199);
    margin-top: 15px;
  }

  .book-image-container {
    height: auto;
    width: 100%;
    border: 0;
    border-right: none;
    margin-top: 20px;
  }

  #book-image {
    height: 24rem;
    width: 16rem;
    border-radius: 1rem;
    display: block;
    margin: 0 auto;
  }

  .book-info {
    mask-image: none !important;
    position: relative;
    height: auto;
    width: 80%;
    padding: 1rem 0;
    z-index: 100;
    right: 0;
    padding-left: 0;
    margin: 2rem;
    margin-bottom: -1px;
  }

  #title,
  #subtitle,
  #author,
  #cost,
  #description,
  #category,
  #publication-date,
  #date-added {
    margin: 0.5rem 0;
  }

  #title {
    font-size: 17px;
  }

  #subtitle {
    font-size: 12px;
  }

  #author {
    font-size: 10px;
  }

  #cost {
    font-size: 18px;
    margin-bottom: 0.5rem;
    text-align: right;
  }

  #description {
    font-size: 10px;
    margin-bottom: 0rem;
  }

  #category,
  #publication-date,
  #date-added {
    font-size: 10px;
  }

  #cost-container {
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
    top: auto;
    text-align: center;
    margin-bottom: -20px;
    margin-top: -87px;
    right: auto;
    left: 90%;
    transform: translateX(-50%);
    width: calc(58% - 2rem);
  }

  .product-link:hover {
    cursor: pointer;
    text-decoration: none;
  }

  #add-to-library {
    border-radius: 1rem;
    background-color: #4c41b3;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 3rem;
  }

  #book-info-fields {
    width: 100%;
  }

  .content {
    margin: 0;
  }

  .download-book {
    padding: 3rem;
    margin-top: -25px;
  }

  table#addtl-book-info {
    position: static !important;
    top: 44rem;
  }

  .large-info-text #addtl-book-info {
    width: 70%;
  }
}

@media (max-width: 560px) {
  #cost-container {
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
    top: auto;
    text-align: center;
    margin-bottom: -20px;
    right: auto;
    left: 56%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
  }
}

@media (max-width: 400px) {
  #cost-container {
    left: 53%;
  }
}

@media (max-width: 290px) {
  #cost-container {
    left: 49%;
  }
}

/* SECTION: dark mode */
@media (prefers-color-scheme: dark) {
  h1,
  h2,
  h3,
  h4,
  p,
  li {
    color: rgb(255, 255, 255);
  }

  #title,
  #subtitle,
  #author,
  #description,
  #category,
  #publication-date,
  #date-added,
  #cost {
    color: rgb(255, 255, 255);
  }

  .download-book {
    color: white;
  }

  .page-wrapper {
    background-color: #353535;
  }

  .book-info {
    background-color: #2d2d2d;
  }

  .book-container {
    background-color: #2d2d2d;
    border: 1px solid white;
  }

  .book-image-container {
    border-right: none;
  }

  #unknown {
    color: white;
  }

  #info-table tr td {
    color: white;
  }
}

#info-table tr td {
  padding-top: 10px;
  padding-right: 5px;
}

.large-info-text {
  font-size: 14px;
}

.large-title-text #title {
  font-size: 40px;
}

.large-title-text #subtitle {
  font-size: 25px;
}

.large-info-text #addtl-book-info {
  top: 46rem;
}

/* !SECTION */

/* TODO: put these wherever you'd like! */
table#addtl-book-info {
  position: absolute;
  top: 44rem;
}

table#addtl-book-info td {
  padding-right: 1rem;
  vertical-align: top;
}

table#author-description-info td {
  vertical-align: top;
  padding-right: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

table#author {
  padding-top: 2rem;
}
