body {
  margin: 0;
  background-color: #ffffff;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.top-banner {
  background-color: #FAF9F6; /* off-white */
  padding: 0.3rem 1.25rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;

}

.top-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75); /* gentle fade */
  backdrop-filter: blur(1px);
  z-index: 0;
}

.banner-content {
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Logo */
.tm-badge {
  width: 80px;   /* larger to fill banner */
  height: auto;
}

.tagline {
  font-weight: bold;
  color: #4B6252;
  margin-top: 0.2rem;
  white-space: nowrap;
}

.tagline-small {
  font-style: italic;
  color: #4B6252;
  margin-top: 0.1rem;
  white-space: nowrap;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Menu container */
.menu-container {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  z-index: 3;
}

/* Hamburger button */
.hamburger {
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #4B6252;
  position: relative;
  z-index: 3;
}

/* Dropdown menu */
.menu {
  display: none;
  position: absolute;
  right: 0;
  top: 2.5rem;
  background-color: #FAF9F6;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 4;
}

/* Menu links */
.menu a {
  display: block;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  color: #4B6252;
  font-size: 0.95rem;
  font-weight: 500;
}

.menu a:hover {
  background-color: #EFECE6;
}

.book {
  display: flex;
  align-items: flex-start;
  gap: 20px; /* space between image and text */
  margin-bottom: 30px;
  padding: 20px 20px 0 20px;
}

.book-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-left .buy-btn {
  margin-top: 12px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 600;
  background-color: #FFD93D;
  color: black;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.buy-btn:hover {
  background: #F4C534; /* slightly darker yellow on hover */
}

.book-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

img.book-cover {
  width: 150px;   /* set whatever size you want */
  height: auto;   /* keeps proportions correct */
  display: block;
}

.unlock-section {
  text-align: left;
  padding: 12px 20px;
}

.unlock-price {
  font-size: 14px;
  font-weight: bold;
  margin: 12px 0;
}

.unlock-btn {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background: #FFD93D; /* Posterity yellow */
  color: #000;         /* black text for max contrast */
  border: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.unlock-btn:hover {
  background: #F4C534; /* slightly darker yellow on hover */
}

.included-tag {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
  font-style: italic;
}

.loading-spinner {
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: #555;
}

.book-price {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 4px 0 0 0;
}

.book-subprice {
  font-size: 0.9rem;
  color: #555;
  margin: 2px 0 10px 0;
}

.book-description {
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.book-category {
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  font-family: sans-serif;
}

.close {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
}

#group-login-form input {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#group-login-form button {
  width: 100%;
  padding: 0.8rem;
  background: #333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.info-section {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  background-color: #fafafa; /* soft off-white */
  padding: 1.5rem 1rem;
}

.info-inner {
  max-width: 1300px;
  margin: 20px auto;
  display: flex;
  gap: 3rem;
  justify-content: flex-start;
}

.info-block {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.info-block#follow {
  flex: 0 0 auto;
}

.info-block strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #4B6252;
  font-size: 1.05rem;
}

.info-block p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-icons img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.back-to-top {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #4B6252;
  text-decoration: none;
  opacity: 0.75;
}

.back-to-top:hover {
  opacity: 1;
  text-decoration: underline;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid #007AFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

.purchase-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.purchase-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

#purchase-modal-title {
  font-size: 1.25rem;   /* smaller than default h2 */
  font-weight: 600;
  margin: 0 0 12px 0;
  text-align: center;
}

.purchase-modal-image {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 16px auto;
  border-radius: 6px;
}

#purchase-modal-close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

#paypal-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0,0,0,0.6);

  z-index: 9999;
}

#paypal-modal-content {
  width: 90%;
  max-width: 480px;

  max-height: 90vh;
  overflow-y: auto;

  background: white;
  border-radius: 12px;
  padding: 20px;
}

.what-you-get {
  font-size: 0.9rem;
  color: #444;
  margin: 10px 0 20px 0;
  line-height: 1.45;
}
.what-you-get p {
  margin: 0 0 8px 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* smooth infinite scroll keyframes */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* adjust based on how many items */
  }
}

/* Media query for mobile screens */
@media (max-width: 768px) {
  .tagline {
    font-size: 0.7rem;       /* adjust tagline for mobile */
  }

  .tm-badge {
    width: 60px;             /* smaller logo on mobile */
  }

  .info-inner {
    flex-direction: column;
    gap: 1.25rem;
  }
}
