/*
  This CSS file is specifically for the book page layout.
  It creates the two-column layout for the book description and cover image.
*/

/* Custom class to maintain the original book title font and color */
.book-title {
  color: #cc9966;
  font-size: 3rem;
  font-family: "Optima", "Optima ExtraBlack", sans-serif;
  font-weight: bold;
  text-align: center;
}

/* Custom class for the book subtitle */
.book-subtitle {
  color: #cc9966;
  font-size: 1.5rem;
  font-family: "Optima", "Optima ExtraBlack", sans-serif;
  font-weight: normal;
  text-align: center;
}

/* Two-column layout container for the book page */
.book-layout {
  display: flex;
  flex-direction: row; /* Two columns for desktop */
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

/* Left column for the book's text description and links */
.text-column {
  flex: 1;
  max-width: 55%;
  text-align: justify;
}

/* Right column for the book cover image */
.image-column {
  flex: 1;
  max-width: 45%;
  text-align: center;
}

/* Container for the book cover image to make it responsive */
.book-cover {
  position: relative;
  width: 100%;
  height: auto;
}

.book-cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* Overlaid text on the book cover image */
.book-cover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  width: 80%;
  pointer-events: none;
}

.book-cover-title {
  color: #fff;
  font-family: "Optima", "Optima ExtraBlack", sans-serif;
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1.2;
}

.book-cover-subtitle {
  color: #fff;
  font-family: "Optima", "Optima ExtraBlack", sans-serif;
  font-size: 1rem;
  font-weight: normal;
  margin-top: 5px;
}

.book-cover-authors {
  color: #fff;
  font-family: "Optima", "Optima ExtraBlack", sans-serif;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Container for the purchase links */
.purchase-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.purchase-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Mobile styles for a single column layout */
@media (max-width: 650px) {
  .book-layout {
    flex-direction: column;
    align-items: center;
  }
  .text-column,
  .image-column {
    width: 100%;
    max-width: 100%;
    text-align: left;
  }
  .image-column {
    order: -1;
    margin-bottom: 20px;
    text-align: center;
  }
  .purchase-links {
    align-items: center;
  }
}
