/* BODY / PAGE BACKGROUND */
body {
  margin: 0;
  padding: 0;
}

.page-background {
  background-image: url('https://file.garden/aYe1n3scQ03QvS5a/wallpaperflowers1');
  background-repeat: repeat;
  background-attachment: fixed;
  width: 100%;
  min-height: 100vh;
}

/* BOOKSHELF WRAPPER */
.shelf-wrapper {
  position: relative;
  width: 65%;
  max-width: 800px;
  margin: 0 auto;
}

/* Bookshelf image scales to container width */
.shelf-image {
  width: 100%;
  display: block;
}

/* ITEM WRAPPER */
.item-wrapper {
  position: absolute;
  cursor: pointer;
  display: inline-block;
}

/* ITEM IMAGE */
.item {
  width: 100%; 
  height: auto;
  transition: transform 0.3s ease;
}

/* HOVER ZOOM */
.item-wrapper:hover .item {
  transform: scale(1.20);
  z-index: 10;
}

/* TOOLTIP */
.tooltip {
  position: absolute;
  bottom: -22%;           
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(59, 46, 46, 0);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 1rem;
  text-shadow:
  0 0 5px #91ce75,
  0 0 10px #2ba32b,
  0 0 15px #42632e,
  0 0 20px #000000;

}

/* SHOW TOOLTIP ON HOVER */
.item-wrapper:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px); /* float up slightly */
  z-index: 20;
}

/* Disable zoom */
.no-zoom:hover .item {
  transform: none;
}

.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.678);
  color: white;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  z-index: 1000;
  transition: background 0.2s ease;
}

.back-button:hover {
  background: rgba(0, 0, 0, 0.8);
}
