@charset "utf-8";

body {
  margin: 0;
  padding: 0;
  width: 80%;
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling due to overflow */
  font-family: 'Arial', sans-serif;
  font-size: 20px;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  margin-left: auto; /* Center the body */
  margin-right: auto;
}

header {
  margin: 0;
  padding: 0;
}

header img {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
  height: auto;
}




.highlight {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  color: #1f1f1f;
}


.site-footer {
  text-align: center;
  font-size: 17px;
  color: #666;
  padding: 1rem 0;
}




/* ----- Content Sections ----- */
section {
  opacity: 0;
  transform: translateX(100px); /* Start off-screen */
  transition: all 0.8s ease-in-out;
  padding: 1px;
  margin: 10px;
  background-color: #ffffff;
  border-radius: 0px;
}

/* Left sections move from the left */
section.left {
  transform: translateX(-100px); 
}

/* Show sections once they're in view */
section.show {
  opacity: 1;
  transform: translateX(0); 
}




/* ----- Book Mockup ----- */
.book-mockup {
  margin-top: 0px;
  margin-bottom: 0px;
  padding: 0px;
}

.book-details {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 0px;
}

.book-image {
  max-width: 65%;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}




/* ----- Four Column Gallery ----- */
.image-gallery4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns for larger screens */
  gap: 20px;
  margin-top: 20px;
}

.image-item {
  text-align: center;
}

.image-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.caption {
  margin-top: 10px;
  font-size: 16px;
  text-align: justify;
  padding-left: 20px;
  padding-right: 20px;
  color: #333;
}




/* ----- Two Column Gallery ----- */
.image-gallery2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.image-item {
  text-align: center;
}

.image-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.caption {
  margin-top: 10px;
  font-size: 16px;
  text-align: justify;
  padding-left: 20px;
  padding-right: 20px;
  color: #333;
}




/* ----- Amazon Buy Link ----- */
.amazon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.amazon-link img {
  max-width: 60%;
  height: auto;
  margin-bottom: 0px;
}

.text-link {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.text-link:hover {
  text-decoration: underline;
}




/* ----- About The Author ----- */
.about-author {
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 8px;
  text-align: left;
}

.about-author h2 {
  text-align: center;
  font-size: 26px;
  color: #333;
  margin-bottom: 0px;
}

.author-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap; /* Ensures responsiveness for smaller screens */
}

.author-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.author-details {
  flex: 1;
}

.author-details h3 {
  font-size: 21px;
  color: #333;
}

.author-details blockquote {
  font-style: italic;
  color: #555;
  margin: 0 0 1rem;
  border-left: 4px solid #801117;
  padding-left: 12px;
}

.author-details p {
  color: #333;
}




/* Mobile styling */
@media (max-width: 768px) {

 body {
  width: 100%;
  font-size: 18px;
  line-height: 1.2;
  }

header img {
  width: 100%;
  height: auto;
  }

.highlight {
  font-size: 16px;
  }	


/* ----- Book Mockup ----- */
.book-details {
  flex-direction: column; /* Stack the book image and text vertically on smaller screens */
  gap: 10px;
  }

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


/* ----- Four Column Gallery ----- */
.image-gallery4 {
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  }

.caption {
  text-align: left;
}


/* ----- Amazon Buy Link ----- */
.amazon-link img {
  max-width: 70%;
}

.text-link {
  font-size: 16px;
}


/* ----- About The Author ----- */
.author-content {
  flex-direction: column;
  align-items: center;
  text-align: center;
  }

  .author-details {
    text-align: center;
  }

}