.cardBook {
  font-family: "Open Sans", sans-serif;
  position: relative;
  height: 600px;
  width: 400px;
  background: #fff;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  cursor: pointer;
  box-shadow: 10px 0 20px rgba(0, 0, 0, 0.4),
    inset 300px 0 50px rgba(0, 0, 0, 0.4);
  transform: perspective(2000px) rotateZ(10deg);
  transform-style: preserve-3d;
  transition: all 1s ease;
}

.coverBook {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #3c1d6c;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  transform-origin: left;
  transform-style: preserve-3d;
  transition: all 1s ease;
}

.coverBook img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
}

.coverBook img:nth-child(1) {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* --Verso da capa do livro--
.coverBook img:nth-child(2) {
    transform: rotateY(180deg);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}*/

.cardBook:hover {
  transform: perspective(2000px) rotatez(0);
  box-shadow: 10px 0 20px rgba(0, 0, 0, 0.4),
    inset 20px 0 50px rgba(0, 0, 0, 0.4);
}

.cardBook:hover .coverBook {
  transform: rotateY(-135deg);
  box-shadow: 10px 0 20px rgba(0, 0, 0, 0.4);
}

.contentBook {
  width: 100%;
  height: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

.contentBook h2 {
  margin-bottom: 1rem;
}

@media (max-width: 1199px) {
  .cardBook {
    height: 550px !important;
    width: 350px !important;
  }
}

@media (max-width: 575px) {
  .cardBook,
  .contentBook {
    height: 300px !important;
    width: 200px !important;
    font-size: 8px;
  }
}
