html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

* img{
  max-width:100%;
  height:auto;
}

body{
  font-family:sans-serif;
}

.container-books{
  max-width:1000px;
  margin:3rem auto;
  
}

.page-title{
  text-align:center;
}

.movies-container{
  display:flex;
  flex-wrap:wrap;
  align-items: center;
  justify-content: center;
}

.movie{
  width:33.33%;
  margin:1%;
  position:relative;
}


@media (max-width:450px){
  .movie{
    width:50%;
  }
}

@media (max-width:350px){
  .movie{
    width:100%;
  }
}

.book::after,
.book::before, .book img, .book {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.book {
  cursor: pointer;
  display: block;
  width: 165px;
  height: 242px;
  position: relative;
  background: white;
  z-index: 1;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 9px 9px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: box-shadow 0.3s linear;
}

.book img {
  width: inherit;
  height: inherit;
  transform-origin: right top;;
  transform: rotateY(100);
  transition: all 0.45s ease;
}

.book:hover {
  box-shadow: 0 4px 2px 0 rgba(0, 0, 0, 0.25), 0 15px 9px 0 rgba(0, 0, 0, 0.45);
}
.book:hover img {
  transform: rotateY(-25deg);
  box-shadow: 1px 1px 5px 5px rgba(0, 0, 0, 0.2);
}

.book::after,
.book::before {
  content: "";
  display: block;
  width: inherit;
  height: inherit;
  position: absolute;
  z-index: -1;
  top: 0;
  background: white;
  border: 1px solid #d9d9d9;
}

.book::before {
  left: 3px;
}

.book::after {
  left: 6px;
}
