/* ----------------------------------------------------
   Base Styles
---------------------------------------------------- */
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 20px;
  background: url("https://bedogivelove.sfo3.cdn.digitaloceanspaces.com/memorial/yellow-rose.png") repeat;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://bedogivelove.sfo3.cdn.digitaloceanspaces.com/memorial/yellow-rose.png") repeat;
  background-size: cover;
  opacity: 0.08;
  z-index: -1;
}

/* ----------------------------------------------------
   Typography
---------------------------------------------------- */
h1 {
  color: #333;
}

h2 {
  font-size: 22px;
  font-weight: bold;
  color: #444;
  margin: 20px 0;
  text-align: center;
}

h3 {
  font-size: 16px;
  font-weight: bold;
  color: #444;
  margin: 16px 0;
  text-align: center;
}

h4 {
  font-size: 12px;
  font-weight: bold;
  font-style: italic;
  color: #555;
  margin: 12px 0;
  text-align: center;
}

hr {
  border: none;
  height: 2px;
  background-color: #ccc;
  margin: 20px auto;
  width: 65%;
}

.date {
  font-size: 18px;
  font-weight: bold;
  color: #555;
}

/* ----------------------------------------------------
   Layout Containers
---------------------------------------------------- */
.container {
  max-width: 800px;
  margin: auto;
}

.full-width-image {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  display: block;
  border-radius: 10px;
}

/* ----------------------------------------------------
   Navigation
---------------------------------------------------- */
nav {
  background: #fff5d7;
  padding: 12px 0;
  margin-bottom: 30px;
}

nav a {
  margin: 0 16px;
  font-weight: bold;
  text-decoration: none;
  color: #444;
  font-size: 18px;
}

nav a.active {
  color: #c5c02f;
  border-bottom: 2px solid #c5c02f;
}

/* ----------------------------------------------------
   Cards & Photos
---------------------------------------------------- */
.card,
.photos,
.card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin: 20px 0;
  text-align: center;
}

.photo img,
.card img {
  width: 220px;
  height: 300px;
  border-radius: 20px;
  object-fit: cover;
}

/* ----------------------------------------------------
   Links & Footer
---------------------------------------------------- */
.links {
  margin-top: 20px;
}

.links a {
  display: block;
  margin: 10px 0;
  text-decoration: none;
  color: #007BFF;
}

.links a:hover {
  text-decoration: underline;
}

.download-link {
  display: block;
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #007BFF;
  text-decoration: none;
}

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

.footer {
  margin-top: 40px;
  font-size: 14px;
  color: #666;
}

/* ----------------------------------------------------
   Responsive Video Embeds
---------------------------------------------------- */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: 20px 0;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ----------------------------------------------------
   Responsive Adjustments
---------------------------------------------------- */
@media (max-width: 600px) {
  .photos {
    flex-direction: column;
    gap: 20px;
  }

  .photo img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
  }

  .date {
    font-size: 16px;
  }
}

/* ----------------------------------------------------
   Books Page Layout
---------------------------------------------------- */
.books-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 40px 0 60px;
  align-items: center;
}

.book {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.book-body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.book img {
  width: 180px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.book-content {
  max-width: 500px;
  text-align: left;
  flex: 1;
}

.book-title {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}

.book+hr {
  margin: 40px auto;
  width: 80%;
}

@media (max-width: 600px) {
  .book {
    flex-direction: column;
    text-align: center;
  }

  .book-content {
    text-align: center;
  }
}

video {
  width: 100%;
  max-width: 600px;
  margin: 20px 0;
}