/* Reset and box-sizing */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base styles */
body {
  font-family: 'Open Sans', sans-serif;
  color: #222;
  background-color: #fafafa;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #111;
  margin-bottom: 0.5em;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
}

/* Navbar */
nav {
    position: absolute;
        width: 100%;
  overflow: hidden;
  /* background-color set inline to allow transparency on home */
  padding: 0.5rem;
  z-index: 2
}
nav a {
  color: #fff;
  margin-right: 3rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.3s;
  position: relative;
}
nav a:hover {
  color: #ffd700;
}
nav a.active {
  color: #ffd700;
}
nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffd700;
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
}

.container.header-container {
    height: 24px;
    margin: 10px auto;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0.05)), url('/images/homepage-bg-4.jpg') center/cover no-repeat;
  color: #fff;
  padding: 2rem;
  text-align: center;
  margin-bottom: -100px
}
.hero.home {
  margin-bottom: 0;
  justify-content: flex-start;
}
.hero.home h1 {
  margin-top: 70px;
}
.hero.home p {
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 67px;
  letter-spacing: 4px;
  font-weight: 400;
  margin-bottom: 0;
  margin-top: 0px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero.interior {
  justify-content: flex-start;
}
.hero.interior h1 {
  margin-top: 70px;
  font-size: 2.8rem;
  margin-bottom: 40px;
}
.hero.home p {
    font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  margin-top: 0;
  font-style: normal;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 400;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin-top: 2rem;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn.cta-home {
  margin-top: 180px;
}
.btn:hover {
  background-color: #fff;
  color: #1a1a2e;
}

/* Photo placeholder */
.photo-placeholder {
  width: 300px;
  height: 300px;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-style: italic;
  margin-bottom: 1rem;
}

/* Contact form */
.form-group {
  margin-bottom: 1rem;
}
form input,
form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
form button {
  padding: 0.75rem 1.5rem;
  background-color: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
form button:hover {
  background-color: #0f0f1e;
}

/* Section styling */
section {
  margin-bottom: 2rem;
}

/* Book layout (Books page) */
.book-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 50px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  height: 620px;
  background-color: transparent;
  padding: 3rem;
  border-radius: 5px;
}

/* About layout (About page) */
.about-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 80px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  background-color: rgba(255,255,255,0.85);
  padding: 3rem;
  border-radius: 5px;
}

.book-cover {
  flex-shrink: 0;
  width: 375px;
  margin-top: -20px;
}

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

.sample-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0px;
  padding: 8px 2px;
  background: #2693f7;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  width: 190px;
  justify-content: center;
  position: absolute;
  margin-left: 85px;
}

.sample-link:hover {
  background: #1570c7;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-icon {
  width: 16px;
  height: 16px;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 880px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.modal-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(0,0,0,0.1);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  color: #666;
}

.modal-body {
  padding: 2rem;
  color: #333;
  line-height: 1.6;
}

.modal-body p {
  margin-bottom: 1rem;
  font-family: 'Lora', serif;
  text-align: left;
}

.modal-body .chapter-title{
  text-align: center;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0rem;
  color: #333;
}
.modal-body .time-stamp {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}
.modal-body .excerpt-notice {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 400;
  color: #333;
  margin-top: 2rem;
}

.book-details {
  flex: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 490px;
  background-color: transparent;
  border-radius: 10px;
  padding: 25px;
}

.about-details {
  flex: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 490px;
}

.book-details h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  text-transform: uppercase;
}

.book-details p {
  font-family: 'Lora', serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #fff;
}

.book-description {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #fff;
  text-align: left;
}

.book-description:first-of-type {
  font-size: calc(1.1rem + 3px);
  color: #fee56d;
}

/* Hide description toggle on desktop */
.description-toggle {
  display: none;
}

/* Show description on desktop by default */
.book-description-content {
  display: block;
}

/* Read More Link */
.read-more-link {
  color: #feec78;
  font-family: 'Lora', serif;
  font-size: 16px;
  font-weight: 400;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

.read-more-link:hover {
  color: #ffd700;
}

.about-details p.about-description {
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: #000;
  text-align: left;
  margin-bottom: 1.2rem;
}

.author-name {
  font-family: 'Futura', 'Barlow', 'Montserrat', sans-serif;
  color: #132740;
  text-transform: uppercase;
}

.drop-cap {
  float: left;
  font-family: 'Futura', 'Barlow', 'Montserrat', sans-serif;
  font-size: 5.5em;
  font-weight: 700;
  line-height: 0.75;
  margin-right: 3px;
  margin-top: 5px;
}
.retailer-links {
  align-self: flex-end;
  margin-top: 20px;
  align-items:center;
  justify-content: center;
}

.retailer-links h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: #fcc311;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.retailer-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  align-items:center;
  justify-content: center;
}

.retailer-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: #111;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.retailer-btn:hover {
  background: #f5f5f5;
  border-color: rgba(0,0,0,0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.retailer-btn svg {
  width: 14px;
  height: 14px;
}

/* Home page book section layout */
.home-book-section {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.home-book-image {
  flex-shrink: 0;
  width: 339px;
  margin-top: -20px;
}

.home-book-image img {
  width: 100%;
  height: auto;
}

.home-book-content {
  flex: 1;
  color: #fff;
  text-align: left;
}

.home-book-title {
  font-family: 'Futura', 'Barlow', 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: #feec78;
  margin: 0 0 0.5rem 0;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.home-book-content .home-book-availability {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  color: #ffffff !important;
  letter-spacing: 1px;
  margin: 0 20px 20px 0 !important;
  text-align: right;
  text-transform: none !important;
}

.hero.home .home-book-content .home-book-tagline {
  font-family: 'Lora', serif !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  color: #fff !important;
  margin: 40px 0 72px 0 !important;
  text-align: left !important;
  text-transform: none !important;
}

.home-buy-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #feec78;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 1rem 0;
  text-align: center;
}

.home-retailer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.home-retailer-btn {
  padding: 0.65rem 1rem;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  color: #111;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.home-retailer-btn:hover {
  background: #f5f5f5;
  border-color: rgba(0,0,0,0.2);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.home-author-photo {
  width: 200px;
  margin-bottom: 1.5rem;
}

.home-author-photo img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0px 11px 27px rgba(0, 0, 0, 0.5);
  border: 1px solid #666;
}

.home-author-bio {
  max-width: 300px;
  text-align: center;
}

.home-author-bio p {
  font-family: 'Lora', serif;
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
  margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .book-layout {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .book-cover {
    width: 200px;
    margin: 0 auto;
  }
  
  .book-details h2 {
    font-size: 2rem;
  }
  
  .retailer-buttons {
    justify-content: center;
  }
}

/* Firefly animation */
.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: #ffd700;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,215,0,0.8);
  opacity: 0.8;
  animation: moveFlicker 60s infinite ease-in-out;
}
.firefly.big {
  width: 8px;
  height: 8px;
}

@keyframes moveFlicker {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.1;
  }
  25% {
    transform: translate(5px, -5px) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(5px, 5px) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-5px, 5px) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.1;
  }
}

/* Firefly swirl animation */
.firefly.swirl {
  animation-name: swirlMotion;
  animation-timing-function: ease-in-out;
}

@keyframes swirlMotion {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(8px, -8px) rotate(45deg) scale(1.2);
    opacity: 1;
  }
  50% {
    transform: translate(-8px, 8px) rotate(90deg) scale(1);
    opacity: 0.3;
  }
  75% {
    transform: translate(8px, 8px) rotate(135deg) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) rotate(180deg) scale(1);
    opacity: 0.3;
  }
}

/* Social Media Section */
.social-media-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid #ddd;
  text-align: center;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.social-media-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #111;
  margin-bottom: 1.5rem;
  text-align: center;
}

.social-media-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #fff;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-btn svg {
  flex-shrink: 0;
}

.social-btn:hover {
  background: #f5f5f5;
  border-color: rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Navigation */
  nav {
    padding: 1rem;
  }
  
  nav a {
    margin-right: 1.5rem;
    font-size: 14px;
  }
  
  /* Hero Section */
  .hero {
    padding: 1rem;
    height: auto;
    min-height: 100vh;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-top: 80px;
  }
  
  .hero.home h1 {
    font-size: 2.7rem;
    margin-top: 80px;
    margin-bottom: 20px;
    line-height: 47px;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero.home p {
    font-size: 1rem;
    margin-bottom: 0;
  }
  
  /* Container */
  .container {
    width: 100%;
    padding: 0 0.4rem;
  }
  
  /* Book Layout (Books Page) */
  .book-layout {
    flex-direction: column;
    height: auto;
    margin-top: 30px;
    padding: 1.5rem;
    gap: 2rem;
  }
  
  .book-cover {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    margin-top: 0;
  }
  
  .book-details {
    display: none;
    width: 100%;
    padding: 1rem;
    height: auto;
    overflow-y: visible;
  }
  
  /* Hide Read More link on mobile */
  .read-more-link {
    display: none;
  }
  
  .book-details p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .sample-link {
    position: static;
    margin: 20px auto 0;
    width: 100%;
    max-width: 190px;
  }
  
  /* Description Toggle Button */
  .description-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 190px;
    padding: 8px 2px;
    margin: 0 auto;
    background: #2693f7;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }
  
  .description-toggle:hover {
    background: #1570c7;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }
  
  /* About Layout */
  .about-layout {
    flex-direction: column-reverse;
    height: auto;
    margin-top: 30px;
    padding: 1.5rem;
    gap: 2rem;
    align-items: center;
  }
  
  .about-details {
    width: 100%;
  }
  
  .about-layout > div:first-child {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .about-layout > div:first-child img {
    width: 100% !important;
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }
  
  .drop-cap {
    font-size: 4em;
    margin-right: 3px;
  }
  
  /* Retailer Links */
  .retailer-links {
    margin-top: 30px;
  }
  
  .retailer-links h3 {
    font-size: 1.1rem;
  }
  
  .retailer-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .retailer-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  /* Homepage Book Section */
  .home-book-section {
    flex-direction: column;
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .home-book-image {
    width: 100%;
    max-width: 250px;
    margin: 0 auto -20px;
  }
  
  .home-book-content {
    width: 100%;
  }
  
  .home-book-title {
    font-size: 24px;
    text-align: center;
  }
  
  .home-book-availability {
    text-align: center !important;
    margin: 0 0 15px 0 !important;
    font-size: 15px !important;
  }
  
  .home-book-tagline {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-top: 20px !important;
    margin-bottom: 40px !important;
    text-align: center !important;
  }
  
  .home-buy-section h3 {
    font-size: 1rem;
  }
  
  .home-retailer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .home-retailer-btn {
    width: 100%;
  }
  
  /* Social Media Section */
  .social-media-section {
    padding-top: 1.5rem;
    margin-top: 2rem;
  }
  
  .social-media-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .social-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Contact Page */
  .container > div[style*="maxWidth"] {
    max-width: 100% !important;
    margin: 50px auto 0 !important;
  }
  
  /* Modal */
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .modal-header h2 {
    font-size: 1.2rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-body p {
    font-size: 14px;
  }
} 