
*{
  margin:0;
  padding: 0;
  box-sizing: border-box;
}
.maintitle{
  font-size: 42px;
  font-family: 'Capriola', sans-serif;
  letter-spacing: 3px;
  font-weight: bolder;
  text-align: center;
  text-transform: capitalize;
  margin-top: 50px;
}
.quote{
  font-size: 20px;
  margin-top:30px;
  font-style: italic;
  width: 90%;
  margin: auto;
  
}


main p{
  text-align: center;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 2px;
  font-size: 1.1rem;
  
  
}

.references{
  font-size: .7rem;
}

main{
  
  height: 100%;
  width: 100%;
}
article{
  
  height: 100%;
  width: 100%;
  
}
main img{
  width:500px;
  height: 600px;
}

.allbooks{
  max-width: 1300px;
  margin: 30px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.book{
  position: relative;
  margin: 40px 30px;
  width: 500px;
  height: 600px;
  background: #fff;
  transform-style: preserve-3d;
  transform: perspective(2000px);
  transition: 1s;
  box-shadow: 10px 10px 10px rgba(0,0,0,.5);
  
}

.book:hover{
  z-index: 2;
  transform:perspective(2000px) rotate(-8deg);
  box-shadow: inset 40px 0 100px rgba(0,0,0,.5);
  
  
}
.book .front{
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid #000;
  box-sizing: border-box;
  transform-origin: left;
  z-index: 1;
  transition: 1s;
  
}
.book .front h2{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color:white;
  padding: 10px;
  font-size: 2.6rem;
  font-family: 'Capriola', sans-serif;
  letter-spacing: 3px;
  font-weight: bolder;
  text-align: center;
}
.book:hover .front{
  transform: rotateY(-135deg);
}
/*
.book:hover .front h2{
  display: none;
}
this is the only if you wanna make the title disappear
*/
.book .front img{
  position: absolute;
  top:0;
  left: 0;
  width:100%;
  height: 100%;
  object-fit: cover;
  
}
.book .inside{
  position: absolute;
  top:0;
  left: 0;
  box-sizing: border-box;
  padding: 20px;
  
}
.front1{
  background-image: url(../images/children-road.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.front2{
  background-image: url(../images/stairs-man.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.front3{
  background-image: url(../images/sparkler-res.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.front4{
  background-image: url(../images/references.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
@media(max-width:560px){
  main p{
    font-size: 0.8rem;
  }
  main .references{
    font-size: 0.65rem;
  }
}
