.bookshelf_loader {
  margin: 100px 0;
  transform: scale(0.33, 0.33);
}

.books_list {
  margin: 0 auto;
  width: 300px;
  padding: 0;
}

.book_item {
  position: absolute;
  top: -120px;
  box-sizing: border-box;
  list-style: none;
  width: 40px;
  height: 120px;
  opacity: 0;
  background-color: transparent;
  border: 3px solid #c8102e;
  transform-origin: bottom left;
  transform: translateX(300px);
  animation: travel 2500ms linear infinite;
}

.book_item.first {
  top: -140px;
  height: 140px;
}

.book_item.first:before,
.book_item.first:after {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #c8102e;
}

.book_item.first:after {
  top: initial;
  bottom: 10px;
}

.book_item.second:before,
.book_item.fifth:before,
.book_item.second:after,
.book_item.fifth:after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 10.5px;
  border-top: 3px solid #c8102e;
  border-bottom: 3px solid #c8102e;
}

.book_item.second:after,
.book_item.fifth:after {
  top: initial;
  bottom: 10px;
}

.book_item.third:before,
.book_item.third:after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  top: 10px;
  left: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid #c8102e;
}

.book_item.third:after {
  top: initial;
  bottom: 10px;
}

.book_item.fourth {
  top: -130px;
  height: 130px;
}

.book_item.fourth:before {
  box-sizing: border-box;
  content: "";
  position: absolute;
  top: 46px;
  left: 0;
  width: 100%;
  height: 10.5px;
  border-top: 3px solid #c8102e;
  border-bottom: 3px solid #c8102e;
}

.book_item.fifth {
  top: -100px;
  height: 100px;
}

.book_item.sixth {
  top: -140px;
  height: 140px;
}

.book_item.sixth:before {
  box-sizing: border-box;
  content: "";
  position: absolute;
  bottom: 31px;
  left: 0px;
  width: 100%;
  height: 3px;
  background-color: #c8102e;
}

.book_item.sixth:after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  bottom: 10px;
  left: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid #c8102e;
}

.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;
}

@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);
  }
}

.bookshelf_loader_full {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.66);
}

.books_list_full {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  height: 150px;
  margin: auto;
  display: box;
  display: -o-box;
  display: -ms-box;
  display: -webkit-box;
  display: -moz-box;
  display: flex;
  display: -o-flex;
  display: -ms-flex;
  display: -webkit-flex;
  display: -moz-flex;
  flex-flow: row wrap;
  -o-flex-flow: row wrap;
  -ms-flex-flow: row wrap;
  -webkit-flex-flow: row wrap;
  -moz-flex-flow: row wrap;
}
