/* ---------- Base layout ---------- */
body {
  background-color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  color: #000000;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* ---------- Header Text ---------- */
.header h1 {
  letter-spacing: 0.5em;
  font-weight: 400;
  font-size: 1.5em;
  margin-top: 40px;
}

/* Remove default H1 spacing around header images */
header h1 {
  margin: 0;
  padding: 0;
}

header {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* ---------- Responsive Header Images ---------- */

/* Desktop header (default) */
.header-desktop {
  display: block;
  width: 100%;
  height: auto;
  max-width: 920px;
  margin: 20px auto;
}

/* Mobile header (hidden by default) */
.header-mobile {
  display: none;
  width: 100%;
  height: auto;
  max-width: 400px;
  margin: 20px auto;
}

/* Mobile rules */
@media (max-width: 768px) {
  .header-desktop {
    display: none;
  }

  .header-mobile {
    display: block;
  }
}

/* ---------- Book row ---------- */
.books-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin: 60px auto;
  max-width: 1200px;
}

/* ---------- Book items ---------- */
.book {
  text-align: center;
  width: 250px;
  flex: 0 0 auto;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

.book:nth-child(1) { animation-delay: 0.2s; }
.book:nth-child(2) { animation-delay: 0.4s; }
.book:nth-child(3) { animation-delay: 0.6s; }
.book:nth-child(4) { animation-delay: 0.8s; }

.book img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.book p {
  margin-top: 10px;
  font-weight: bold;
}

/* ---------- LOHM teaser ---------- */
.lohm img {
  width: 617px;
  height: auto;
  margin: 80px auto 40px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 1.2s;
}

/* ---------- Fade-in animation ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Amazon info ---------- */
.amazon-info {
  margin-top: 20px;
  font-size: 1.1em;
}

.amazon-info a {
  color: #0066cc;
  font-weight: bold;
  text-decoration: none;
}

.amazon-info a:hover {
  text-decoration: underline;
}

/* ---------- LOHM details ---------- */
.lohm-details {
  margin-top: 10px;
  font-size: 1.2em;
  font-weight: bold;
}
