.ebooks {
  display: grid;
  grid-template-columns: repeat(1, 1fr);

  gap: 1rem;
}

.ebooks .ebook {
  position: relative;
  display: flex;
  flex-flow: column;

  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

.ebooks .ebook .imagem {
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;

  width: 100%;
  height: 325px;

  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.ebooks .ebook .descricao {
  display: flex;
  flex-flow: column wrap;
  flex: 1 0 auto;

  padding: 1rem;
}

.ebooks .ebook .acoes {
  padding: 1rem;
}

#ebook .first img {
  width: 100%;
  max-width: calc(100vw / 3);
}

#ebook .second img {
  width: 100%;
  max-width: 120px;
  height: 64px;
}

@media (min-width: 992px) {
  .ebooks {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1400px) {
  .ebooks {
    grid-template-columns: repeat(4, 1fr);
  }
}

@-moz-keyframes spin {
  100% { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
  100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
  100% {
      -webkit-transform: rotate(360deg);
      transform:rotate(360deg);
  }
}
