.book-link {
  padding: 32px;
}

.book-cover {
  padding: 8px;
}

.book-link:hover a {
  color: #fff;
}

.pdfs-name {
  font-size: 1.8rem;
  text-align: right;
  color: #faed27;
  max-height: 175px;
  overflow: hidden;
}

.pdfs-author {
  font-size: 1.5rem;
  text-align: right;
  color: #eee;
  padding: 8px;
  position: absolute;
  bottom: 30px;
  right: 0;
  max-height: 80px;
  overflow: hidden;
}

.pdfs-time {
  font-size: 0.9rem;
  color: #888;
  padding: 8px;
  position: absolute;
  bottom: 0;
  left: 0;
}

.book-link a:hover {
  text-decoration: none;
}

/* 3d book start */
.book-container {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
}

@keyframes initAnimation {
  0% {
    transform: rotateY(0deg);
  }

  50% {
    transform: rotateY(-30deg);
  }

  100% {
    transform: rotateY(0deg);
  }
}

.book {
  width: 200px;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: 1s ease;
  animation: 1s ease 0s 1 initAnimation;
}

.book-container:hover .book,
.book-container:focus .book {
  transform: rotateY(-30deg);
}

.book> :first-child {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 300px;
  transform: translateZ(25px);
  background-color: #01060f;
  border-radius: 0 2px 2px 0;
  box-shadow: 5px 5px 20px #666;
}

.book::before {
  position: absolute;
  content: ' ';
  background-color: blue;
  left: 0;
  top: 3px;
  width: 48px;
  height: 294px;
  transform: translateX(172px) rotateY(90deg);
  background: linear-gradient(90deg,
      #fff 0%,
      #f9f9f9 5%,
      #fff 10%,
      #f9f9f9 15%,
      #fff 20%,
      #f9f9f9 25%,
      #fff 30%,
      #f9f9f9 35%,
      #fff 40%,
      #f9f9f9 45%,
      #fff 50%,
      #f9f9f9 55%,
      #fff 60%,
      #f9f9f9 65%,
      #fff 70%,
      #f9f9f9 75%,
      #fff 80%,
      #f9f9f9 85%,
      #fff 90%,
      #f9f9f9 95%,
      #fff 100%);
}

.book::after {
  position: absolute;
  top: 0;
  left: 0;
  content: ' ';
  width: 200px;
  height: 300px;
  transform: translateZ(-25px);
  background-color: #01060f;
  border-radius: 0 2px 2px 0;
  box-shadow: -10px 0 50px 10px #666;
}

/* 3d book end */

div.fb-page {
  position: sticky;
  top: 10px;
}

/* Custom colors */

.book.book-color-1> :first-child {
  background-color: #062357;
}
.book.book-color-1::after {
  background-color: #062357;
}

.book.book-color-2> :first-child {
  background-color: #570623;
}
.book.book-color-2::after {
  background-color: #570623;
}

.book.book-color-3> :first-child {
  background-color: #3a0657;
}
.book.book-color-3::after {
  background-color: #3a0657;
}

.book.book-color-4> :first-child {
  background-color: #03271a;
}
.book.book-color-4::after {
  background-color: #03271a;
}

.book.book-color-5> :first-child {
  background-color: #270310;
}
.book.book-color-5::after {
  background-color: #270310;
}

.book.book-color-6> :first-child {
  background-color: #3f051a;
}
.book.book-color-6::after {
  background-color: #3f051a;
}

.book.book-color-7> :first-child {
  background-color: #051a3f;
}
.book.book-color-7::after {
  background-color: #051a3f;
}

.book.book-color-8> :first-child {
  background-color: #053f2a;
}
.book.book-color-8::after {
  background-color: #053f2a;
}

.book.book-color-9> :first-child {
  background-color: #05373f;
}
.book.book-color-9::after {
  background-color: #05373f;
}
