/* === Base Layout === */

html {
  height: 100%; /* ensures body can grow correctly */
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* full viewport height */
  font-family: Arial, sans-serif;
  background-color: white;
}

/* main content grows but can expand naturally */
main {
  flex: 1 0 auto; /* grow to fill space, shrink if needed, auto basis */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* top-align content */
  align-items: center;
  padding: 2rem;
}

/* === Book Image === */
.book-image {
  max-width: 100%;
  height: auto;
  width: 450px;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* === Header === */
header {
  background-color: #F7F8F3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #ddd;
  position: relative;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  gap: 0.75rem;
}

.header-logo {
  height: 40px;
  width: auto;
}

.header-center-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00264A;
  white-space: nowrap;
}

/* === Menu === */

.menu-wrapper {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.menu-icon {
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2000; /* ensure it's on top */
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 1.8rem;
  background-color: white;
  border: 1px solid #ddd;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 999;
  min-width: 180px;
  font-family: Arial, sans-serif;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu li {
  position: relative;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0;
}

/* === Submenu === */
.has-submenu:hover .submenu {
  display: block;
}

.submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: white;
  border: 1px solid #ddd;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 160px;
  z-index: 1000;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.submenu li a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  color: #333;
  text-decoration: none;
}

.submenu li a:hover {
  background-color: #f0f0f0;
}

/* === Footer === */
footer {
  flex-shrink: 0; /* do not shrink */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0; /* give some space */
  border-top: 1px solid #ddd;
  background-color: #F7F8F3;
}

footer img {
  height: 24px;
  cursor: pointer;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  gap: 0.5rem;
}

/* === Footer Links Styling === */
.footer-links .icon-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links .icon-row a {
  text-decoration: none;
  color: #00264A;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links .icon-row a:hover {
  color: #e74c3c; /* subtle hover accent */
}


.icon-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Optional: wrap on smaller screens */
}

.icon-row a {
  text-decoration: none;
  display: inline-flex;
}

.icon-row img {
  height: 24px;
  width: auto;
  display: block;
}

.copyright-text {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin: 0;
}

@media (max-width: 500px) {
  .header-center-text {
    font-size: 1rem;
  }

  .header-logo {
    height: 30px;
  }
}

/* === About === */

.about-blurb {
  font-family: "Georgia", "Times New Roman", serif;
  color: #00264A;
  text-align: center;
  max-width: 800px;
  z-index: 1;
}

.about-blurb h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: normal;
  letter-spacing: 1px;
  z-index: 1;
}

.about-blurb p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  z-index: 1;
}
.image-bounds {
  width: 100%;
  max-width: 800px; /* approx image width */
  aspect-ratio: 4 / 3; /* or adjust to match your image proportions */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  position: relative;
  z-index: 1;

}

.about-blurb {
  font-family: "Georgia", "Times New Roman", serif;
  color: #00264A;
  text-align: center;
  padding: 1rem;
  width: 100%;
  z-index: 1;

}

.about-blurb h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: normal;
  letter-spacing: 1px;
  z-index: 1;

}

.about-blurb p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  z-index: 1;

}
@media (max-width: 600px) {
  .about-blurb {
    padding: 1rem;
    font-size: 1rem;
    z-index: 1;
  }
}

.book-meta {
  margin-top: 3rem; /* increased spacing from description */
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem; /* slightly smaller text */
  opacity: 0.9; /* optional: softens the metadata slightly */
  z-index: 1;

}

.book-meta h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.25rem;
  color: #00264A;
  z-index: 1;

}

.book-meta ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.5;
  color: #00264A;
  z-index: 1;

}

.book-meta li {
  margin-bottom: 0.4rem;
  z-index: 1;

}

.book-meta strong {
  font-weight: bold;
  z-index: 1;

}

.isbn-card {
  background-color: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 500px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.isbn-card h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #00264A;
  text-align: center;
}

.isbn-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.isbn-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.isbn-row:last-child {
  border-bottom: none;
}

.isbn-label {
  font-weight: bold;
  color: #333;
}

.isbn-code {
  font-family: "Courier New", monospace;
  color: #555;
}

