a {
  text-decoration: none;
}

.container {
  width: 100%;
  /*height: 85vh;*/
  display: flex;
  justify-content: center;
  align-items: center;
  align: auto;
  text-align: center;
}


.book {
  width: 225px;
  height: 350px;
  position:relative;
  text-align: center;
  margin:2%;
}

.book-cover {
  position: absolute;
  z-index:1;
  width: 100%;
  height: 100%;
  transform-origin: 0 50%;
  -webkit-transform-origin: 0 50%;
  background: #111;
  background-size:cover;
  border-radius: 3px;
  box-shadow: 
    inset 4px 1px 3px #ffffff60,
    inset 0 -1px 2px #00000080;
  transition: all .5s ease-in-out;
  -webkit-transition: all .5s ease-in-out;
}

.cover1 {
  background: url('../img/books/ICU.jpg');
}

.cover2 {
  background: url('../img/books/SR.jpg');
}

.cover3 {
  background: url('../img/books/LL.jpg');
}

.book .book-cover {
  background-size: 100% 100%;
}


.effect {
  width: 20px;
  height: 100%;
  margin-left: 10px;
  border-left: 2px solid #00000010;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  transition: all .5s ease;
}

.light {
  width: 99%;
  height: 100%;
  position: absolute;
  border-radius: 3px; 
  /*background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 100%);*/
  background-color: #ffffff;
  top: 0;
  right:0;
  opacity: .1;
  transition: all .5s ease;
  -webkit-transition: all .5s ease;
}

.book:hover { cursor:pointer; }

.book:hover .book-cover {
  transform: perspective(2000px) rotateY(-130deg);
  -webkit-transform: perspective(2000px) rotateY(-130deg);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  box-shadow: 
    inset 4px 1px 3px #ffffff60,
    inset 0 -1px 2px #00000080,
    10px 0px 10px -5px #00000030
}

.book:hover .effect {
  width: 40px;
 /** margin-left:13px;
  opacity: 0.5; **/
}

.book:hover .light {
  opacity: 1;
  width: 99%;
}

.book-inside{
  width: calc(100% - 2px);
  height:96%;
  position:relative;
  top: 2%;
  border: 1px solid grey;
  border-radius:3px;
  background: white;
  box-shadow: 
  10px 40px 40px -10px #00000030,
  inset -2px 0 0 grey,
  inset -3px 0 0 #dbdbdb,
  inset -4px 0 0 white,
  inset -5px 0 0 #dbdbdb,
  inset -6px 0 0 white,
  inset -7px 0 0 #dbdbdb,
  inset -8px 0 0 white,
  inset -9px 0 0 #dbdbdb;
}

.title {
  text-transform: uppercase;
  padding-top: 30px;
  font-size:22px;
  width: 100%;
  color: #5c90f6;
  text-align: center;
 /* position: absolute;*/
  /*top:-30px;*/
  height: 1px;
  display: flex;
  /*align-items: flex-end;*/
  opacity: 0;
  transition: all 1s ease-in-out;
  -webkit-transition: all 1s ease-in-out;
}

.title p {
  width: 100%;
  margin:0;
  line-height:1.3;
}


.btn {
  position:relative;
  background: #aaa;
  color: #fff;
  font-weight: bold;
  padding: 15px 30px;
  font-size: 16px;
  letter-spacing:1px;
  border-radius: 50px;
  bottom: -50px;
  display: inline-block;
  opacity: 0;
  transition: all 1s ease-in-out;
  -webkit-transition: all 1s ease-in-out;
}

.book:hover .btn, .book:hover .title {
  opacity: 1;
}

#book3a {
	display: none;
}
#book3b {
        display: block;
}

@media screen and (max-width: 520px) {

	.container {
		text-align: center;
    		width: 360px;
		display: block;
		margin: auto;
		padding-bottom: 10px;
	}
	.book {
		margin: auto;
		margin-top: 10px;
	}
	#book3b {
		display: none;
	}
	#book3a {
                display: block;
        }
}
