.bookshelf-container {
  display: none;
  position:fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(20px);
}

.pwp{
  text-decoration: solid;
  text-align: center;
  text-orientation: sideways-right;
  font-size:150%;
  font-weight: bold;
  font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.bookshelf{
  display:block;
  margin: auto;
  align-content: center;
  justify-content: center;
  background-color: transparent;
  box-sizing: content-box;
  width: 25%;
  height: 50vh;
}
.bookshelf_wrapper {
  position: relative;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.books_list {
  margin: 0 auto;
  width: 300px;
  padding: 0;
}

.book_item {
  position: fixed;
  top: -120px;
  box-sizing: border-box;
  list-style: none;
  width: 40px;
  height: 120px;
  opacity: 0;
  background-color: #97c7fd;
  border: 5px solid rgb(255, 255, 255, 0.5);
  transform-origin: bottom left;
  transform: translateX(300px);
  animation: travel 2500ms linear infinite;
}
.book_item.first {
  top: -140px;
  height: 140px;
  background-color: #1e6cc7;
}
.book_item.first:before, .book_item.first:after {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: rgb(43, 4, 4);
}
.book_item.first:after {
  top: initial;
  background-color: #1e6cc7;
  bottom: 10px;
}
.book_item.second:before, .book_item.second:after, .book_item.fifth:before, .book_item.fifth:after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 17.5px;
  border-top: 5px solid white;
  background-color: #c75f1e;
  border-bottom: 5px solid white;
}
.book_item.second:after, .book_item.fifth:after {
  top: initial;
  background-color: #e1ff01;
  bottom: 10px;
}
.book_item.third:before, .book_item.third:after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  top: 10px;
  background-color: #1e6cc7;
  left: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 5px solid white;
}
.book_item.third:after {
  top: initial;
  background-color: #1e6cc7;
  bottom: 10px;
}
.book_item.fourth {
  top: -130px;
  background-color: #8ded7a;
  height: 130px;
}
.book_item.fourth:before {
  box-sizing: border-box;
  content: "";
  position: absolute;
  top: 46px;
  left: 0;
  background-color: #1e6cc7;
  width: 100%;
  height: 17.5px;
  border-top: 5px solid white;
  border-bottom: 5px solid white;
}
.book_item.fifth {
  top: -100px;
  background-color: #c7c71e;
  height: 100px;
}
.book_item.sixth {
  top: -140px;
  background-color: #38ec14;
  height: 140px;
}
.book_item.sixth:before {
  box-sizing: border-box;
  content: "";
  position: absolute;
  bottom: 31px;
  left: 0px;
  width: 100%;
  height: 5px;
  background-color: rgb(0, 0, 0);
}
.book_item.sixth:after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  bottom: 10px;
  left: 9px;
  background-color: #1e6cc7;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 5px solid white;
}
.book_item:nth-child(2) {
  animation-delay: 416.6666666667ms;
}
.book_item:nth-child(3) {
  animation-delay: 833.3333333333ms;
}
.book_item:nth-child(4) {
  animation-delay: 1250ms;
}
.book_item:nth-child(5) {
  animation-delay: 1666.6666666667ms;
}
.book_item:nth-child(6) {
  animation-delay: 2083.3333333333ms;
}

.shelf {
  width: 350px;
  height: 5px;
  margin: 0 auto;
  position: relative;
}
.shelf:before, .shelf:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #1e6cc7;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 30%, transparent 0);
  background-size: 10px 10px;
  background-position: 0 -2.5px;
  top: 200%;
  left: 5%;
  animation: move calc(250ms) linear infinite;
}
.shelf:after {
  top: 400%; 
  left: 7.5%;
}

@keyframes move {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: 10px;
  }
}
@keyframes travel {
  0% {
    opacity: 0;
    transform: translateX(300px) rotateZ(0deg) scaleY(1);
  }
  6.5% {
    transform: translateX(279.5px) rotateZ(0deg) scaleY(1.1);
  }
  8.8% {
    transform: translateX(273.6px) rotateZ(0deg) scaleY(1);
  }
  10% {
    opacity: 1;
    transform: translateX(270px) rotateZ(0deg);
  }
  17.6% {
    transform: translateX(247.2px) rotateZ(-30deg);
  }
  45% {
    transform: translateX(165px) rotateZ(-30deg);
  }
  49.5% {
    transform: translateX(151.5px) rotateZ(-45deg);
  }
  61.5% {
    transform: translateX(115.5px) rotateZ(-45deg);
  }
  67% {
    transform: translateX(99px) rotateZ(-60deg);
  }
  76% {
    transform: translateX(72px) rotateZ(-60deg);
  }
  83.5% {
    opacity: 1;
    transform: translateX(49.5px) rotateZ(-90deg);
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translateX(0px) rotateZ(-90deg);
  }
}

/*# sourceMappingURL=styles.css.map */
