.open-sans {
  font-family: "Open Sans";
}

.bg--pattern {
  background-image: url('/static/images/texture.jpg');
}

.w-45 {
  width: 45%;
}

@media screen and (min-width: 30em) {
  .w-45-ns { width: 45%; }
}

.bg-occrp-red {
  background-color: #982022;
}

.b--occrp-red {
  border-color: #982022;
}

.book {
  perspective: 250px;
}

@keyframes almost3d {
  from {
    box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.5);
    transform: translateY(0deg);
    transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease, border-width 0.24s ease;
    background-image: radial-gradient(circle at top right, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 70%);
  }

  to {
    box-shadow: 0px 2px 8px 2px rgba(0, 0, 0, 0.5);
    transform: rotateY(5deg) rotateX(2deg);
    background-image: radial-gradient(circle at top right, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 75%);
  }
}

.book .cover {
  transform-style: preserve-3d;
  width: 282px;
  height: 200px;
  background-color: #982022;
  border-radius: 3px 6px 6px 3px;
  border-right: 1px solid #e23d5e;
  border-bottom: 1px solid #e23d5e;
  position: relative;
  animation: 2s infinite alternate almost3d;
}
.book .cover:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  bottom: 0;
  border-radius: 3px 0 0 3px;
  background-color: #e23d5e;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 20%, rgba(255, 255, 255, 0.15) 50%, rgba(0, 0, 0, 0) 50%);
  content: '';
}
