/* General Styles */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400&display=swap");

body,
html {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #555;
  overflow-x: hidden;
}

/* Header Styling */
header {
  background-color: transparent;
  color: #aa8345;
  padding: 0.5rem 0;
  font-size: 1.2rem;
  text-align: center;
  padding-bottom: 0rem;
}

header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin: 0;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem; /* or whatever matches the other pages */
  }
}

/* Navigation Styles */
nav ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

nav ul li {
  margin: 0 0.5rem;
}

nav ul li a {
  font-family: "Poppins", sans-serif;
  color: #aa8345;
  text-decoration: none;
  font-weight: 100;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
  font-size: 0.8rem;
}

nav ul li a:hover {
  color: #885e19;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: transparent;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 0.1rem 0;
  }
}

body {
  background-image: url("assets/magdalenebackgroundpale.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.header-image {
  width: 100vw;
  height: auto;
  display: block;
  object-fit: cover; /* Optional, for a better aspect ratio handling */
  margin-left: calc(-50vw + 50%);
}

/* Main Section Styling */
main {
  min-height: calc(
    100vh - 250px
  ); /* Ensure the main section takes the full height of the viewport */
  padding: 0; /* Keep this */
  display: flex; /* Add this */
  flex-direction: column; /* Add this */
  justify-content: center; /* Add this */
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 1rem;
  color: #fff;
}

.hometext {
  opacity: 0; /* Initially hide the text */
  animation: slideIn 1s forwards; /* Apply the animation */
  animation-delay: 0.3s; /* Optional delay */
  padding: 1rem;
  font-size: 0.8rem; /* Increase the font size to make the text taller */
  color: #555;
  text-align: justify;
  width: 65%;
  margin-top: 0;
  margin-bottom: 0;
}

.hometext2 {
  min-height: calc(
    100vh - 250px
  ); /* Ensure the main section takes the full height of the viewport */
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 2rem;
  color: #fff;
  opacity: 0;
  animation: slideIn 1s forwards; /* Apply the animation */
  animation-delay: 0.3s; /* Optional delay */
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px); /* Start 50px below */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* End at the normal position */
  }
}

.homeimage {
  width: 20%;
  height: auto;
  margin: 1rem auto;
  margin-bottom: 0;
  display: block;
  opacity: 0; /* Initially hidden */
  transform: translateY(50px); /* Start below */
  transition: opacity 1s ease-out, transform 1s ease-out;
  box-shadow: 0 8px 16px;
}

.homeimage.visible {
  opacity: 1;
  transform: translateY(0); /* Move to normal position */
}

@media (max-width: 768px) {
  main {
    flex-direction: column;
    align-items: center;
  }

  .hometext {
    width: 90%;
    float: none;
    text-align: justify;
    margin-top: 0;
  }

  .homeimage {
    width: 80%;
    height: auto;
    float: none;
    margin: 1rem auto;
    display: block;
    margin-top: 0;
  }

  .hometext2 {
    flex-direction: column;
    align-items: center;
    text-align: justify;
  }
}

.hero-banner {
  background-image: url("assets/rosegoldbookbanner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 60vh; /* Or adjust as needed */
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 2rem;
  color: #aa8345;
  position: relative;
}




.hero-content {
  background: transparent; /* Optional: adds contrast */
  padding: 2rem;
  border-radius: 1rem;
  max-width: 800px;
  z-index: 2;
  font-size: 0.8rem;
  text-align: justify;
}

.book-cover {
  width: 100%;
  max-width: 300px; /* Limit the size on large screens */
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .book-cover {
    max-width: 70%;
  }
}

.hero-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background-color: #aa8345;
  color: #6f130f;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.hero-button:hover {
  background-color: #9b763a;
}

@media (max-width: 768px) {
  .hero-banner {
    flex-direction: column; /* Stack image and content vertically */
    text-align: center; /* Center-align text on mobile */
    height: auto;
  }

  .hero-image img {
    max-width: 100%; /* Make image full width on mobile */
  }
}

/* Footer Styling */
footer {
  background-color: #6f130f;
  color: #fff;
  padding: 0;
  text-align: center;
  font-size: 0.5rem;
}

.footer-image {
  width: 100%; /* Ensure the image spans the full width */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Remove any extra space below the image */
}

footer p {
  margin: 0;
  letter-spacing: 1px;
}
