body {
  background-color: #000;
  color: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Glass card for dark theme */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Fade-in animation for glass cards */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

/* Achtergrond pseudo-element */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%) blur(4px) brightness(0.4);
  z-index: -1;
  opacity: 0.9;
  transition: background-image 0.8s ease-in-out;
}

/* Masonry layout */
.masonry-grid {
  column-count: 1;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .masonry-grid { column-count: 2; }
}
@media (min-width: 1024px) {
  .masonry-grid { column-count: 3; }
}

.book-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  display: inline-block;
  margin: 0 0 1rem;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 30px rgba(255,255,255,0.06);
  cursor: pointer;
}

.book-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(255,255,255,0.08);
}

/* Afbeeldingen */
.book-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: transparent;
  display: block;
  border-radius: 0.5rem;
}

/* Informatie */
.book-info {
  padding: 1.25rem;
  text-align: center;
}

.book-info h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.book-info p {
  color: #ccc;
  font-size: 1rem;
  margin: 0.25rem 0;
}

/* Errorbox */
#errorBox {
  max-width: 600px;
  margin: 0 auto;
}
