/* Body background and base styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url('images/background.webp') no-repeat center center fixed;
  background-size: cover;
  color: white;
}

/* Optional overlay to soften background (not too dark) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Low opacity */
  z-index: 0;
  pointer-events: none;
}

/* Navigation styles */
nav {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1rem 0;
  text-align: center;
  z-index: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Logo image left-aligned */
.logo {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

.logo img {
  height: 36px; /* ~3/8 inch */
  width: auto;
  filter: drop-shadow(0 0 4px black);
  border-radius: 3px;
}

/* Navigation links */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li a {
  text-decoration: none;
  color: #ffcc00;
  font-weight: bold;
  font-size: 1.2rem;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ffffff;
}

/* Book Section Styles */
.book-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4rem;
  margin: 3rem 2rem 2rem;
}

.book {
  text-align: center;
  max-width: 300px;
}

.book img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.7);
}

.book-title {
  font-size: 1.4rem;
  margin: 0.5rem 0 0.25rem;
  font-weight: bold;
}

.book-subtitle {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.buy-button {
  background-color: #ffcc00;
  color: black;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0 0 10px black;
  transition: background-color 0.3s;
}

.buy-button:hover {
  background-color: #ffe066;
}

/* Video styling */
.video-container {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

video {
  width: 80%;
  max-width: 720px;
  border-radius: 12px;
  box-shadow: 0 0 30px black;
}

/* Responsive spacing for nav on smaller screens */
@media (max-width: 768px) {
  nav ul {
    padding-left: 60px;
    padding-top: 0.5rem;
  }

  .logo img {
    height: 28px;
  }

  nav ul li a {
    font-size: 1rem;
  }
}
