.bookshelf {
  margin-bottom: 20px;
  text-align: end;
  margin-top: 10px;
  position: relative;
  z-index: 0;
  overflow: visible;
}

.bookshelf .book {
  width: 210px;
  height: auto;
  display: inline-block;
  margin: 0 0px 0px;
  vertical-align: top;
  transition: all ease-in-out 0.2s;
  overflow: visible;
  position: relative;
  z-index: autho;
}

.bookshelf .book::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  box-shadow: 0px 15px 20px -5px rgba(0, 0, 0, 0.4);
  z-index: 0;
}

@media screen and (max-width: 600px) {
  .bookshelf .book {
    width: 42vw;
    height: calc(1.53 * 42vw);
  }
}


.bookshelf .book .link {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.05) 0.75%,
    rgba(255, 255, 255, 0.5) 1%,
    rgba(255, 255, 255, 0.6) 1.3%,
    rgba(255, 255, 255, 0.5) 1.4%,
    rgba(255, 255, 255, 0.3) 1.5%,
    rgba(255, 255, 255, 0.3) 2.4%,
    rgba(0, 0, 0, 0.05) 2.7%,
    rgba(0, 0, 0, 0.05) 3.5%,
    rgba(255, 255, 255, 0.3) 4%,
    rgba(255, 255, 255, 0.3) 4.5%,
    rgba(244, 244, 244, 0.1) 5.4%,
    rgba(244, 244, 244, 0.1) 99%,
    rgba(144, 144, 144, 0.2) 100%
  );
  box-shadow: inset 0 -1px 4px rgba(0, 0, 0, 2);
}

.bookshelf .book .cover {
  width: 210px;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: black;
  color: white;
  padding: 16px;
  font-weight: bold;
  text-align: center;
  font-family: "3002", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  border-radius: 0 6px 6px 0;
  box-sizing: border-box;
  overflow: visible;
}


.bookshelf .book:hover > *:not(.popup),
.bookshelf .book:hover::after {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: none;
}

.bookshelf .book:hover .popup {
  display: block;
  width: 210px;
  height: 320px;
  overflow-y: auto;
  box-shadow: none;

}


.bookshelf .book:hover .link {
  box-shadow: none;
  background: transparent;
}



