:root {

  --shelf-face: #e0c7d3;
  --shelf-top: #eee4e9;

}


[data-theme='dark'] {

  --shelf-face: #d7c8e0;
  --shelf-top: #e9e4ed;

}

* {
  box-sizing: border-box;
}


box {
  width: 100%;
  margin: auto;
  padding: 45px 5px 5px 5px;
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
}


.shiny-shelf {
  height: 20px;
  width: 100%;
  background: var(--shelf-face);
  position: relative;
  z-index: 1;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
  margin-top: -28px;
  margin-bottom: 12px;
}

.shiny-shelf::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: var(--shelf-top);
  transform: perspective(100px) rotateX(25deg);
  transform-origin: bottom;
  box-shadow: inset 0 -2px 5px rgba(0, 0, 0, .05);
}

.shiny-shelf::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, 0) 20%, rgba(0, 0, 0, .05) 100%);
  border-radius: inherit;
}

.book-item {
  flex-shrink: 0;
  width: 0px;
  position: relative;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
    display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 23px 2px 2px;
  position: relative;
  z-index: 20;
  	  filter: saturate(50%);
  opacity: 0.8;

}

.book-item:hover {
  transform: translateY(-5px);
    filter: drop-shadow(0 0 10px rgba(223, 189, 206, 0.8));
}


.shelf-row-wrap {
  position: relative;
}

.shelf-cards-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 20px 22px 20px;
  position: relative;
  z-index: 20;
}

@media (max-width: 860px) {

  .shelf-cards-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  #shelves-container::before, {
    width: 200px;
    height: 200px;
    top: -80px;
  }

  .book-item {
    width: 30px;
  }}


