body {
  font-family: sans-serif;
  background: #000;
  color:white;
}

.bookshelf {
  display: flex;
  gap: 20px;
  width: fit-content;
  margin: 0 auto;
}

.book {
  background: none;
  border: 1px solid white;
  padding: 0;
  cursor: pointer;
}

.book-cover {
  position: relative;
  width: 100px;
  height: 150px;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8px;
  transition: opacity 0.3s ease;
  pointer-events: none;
}


/* Hover effects */
.book-cover:hover img {
  filter: brightness(40%);
}

.book-cover:hover .overlay {
  opacity: 1;
}


/* Modal overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background:  #2a2a2a;
  color:white;
  width: 70%;
  max-width: 800px;
  max-height: 80%;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  border-radius: 6px;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
    color: white;
  font-size: 20px;
  cursor: pointer;
}
