.book{
	width: 220px;
	height: 320px;
	position: relative;
	transform-style:preserve-3d;
	transform-origin:50% 50%;
	transition:all .3s linear;
	transform:none;
	animation: don 3s linear;
	margin-right: 10px;
	margin-bottom: 5px;
	float:left;

}

.clearfix{
	clear: none;
}




.face1{
	position: absolute;
	width: 100%;
	height: 100%;
	transform: rotateY(0deg) translateZ(20px);
	border:3px solid #464646;

}

.face2{
	position: absolute;
	width: 40px;
	height: 100%;
	transform: rotateY(270deg) translateZ(20px);
	border:1px solid #464646;

}

.face3{
	position: absolute;
	width: 100%;
	height: 100%;
	transform: translateZ(-20px) rotateY(180deg);
	border:3px solid #464646;
}



.cover1{
	position: absolute;
	width: 40px;
	height: calc(100% - 10px);
	background: url(../image/book/bookside.jpg);
	transform: rotateY(90deg) translateZ(195px);
	margin-top: 5px;
	border:1px solid #464646;
}

.cover2{
	position: absolute;
	height: 40px;
	width: calc(100% - 5px);
	background: url(../image/book/bookside2.jpg);
	transform: rotateX(90deg) translateZ(15px);
	border:1px solid #464646;
	
}

.cover3{
	position: absolute;
	height: 40px;
	width: calc(100% - 5px);
	background: url(../image/book/bookside2.jpg);
	transform: rotateX(90deg) translateZ(-295px);
	border:1px solid #464646;
	
}

#face1{background: url(../image/book/mayday1.jpg);background-size: 100% 100%;}
#face2{background: url(../image/book/mayday2.jpg);background-size: 100% 100%;}
#face3{background: url(../image/book/mayday3.jpg);background-size: 100% 100%;}
#face4{background: url(../image/book/extraterrestrial1.jpg);background-size: 100% 100%;}
#face5{background: url(../image/book/extraterrestrial2.jpg);background-size: 100% 100%;}
#face6{background: url(../image/book/extraterrestrial3.jpg);background-size: 100% 100%;}
#face7{background: url(../image/book/mega1.jpg);background-size: 100% 100%;}
#face8{background: url(../image/book/mega2.jpg);background-size: 100% 100%;}
#face9{background: url(../image/book/mega3.jpg);background-size: 100% 100%;}
#face10{background: url(../image/book/zen1.jpg);background-size: 100% 100%;}
#face11{background: url(../image/book/zen2.jpg);background-size: 100% 100%;}
#face12{background: url(../image/book/zen3.jpg);background-size: 100% 100%;}
#face13{background: url(../image/book/weare1.jpg);background-size: 100% 100%;}
#face14{background: url(../image/book/weare2.jpg);background-size: 100% 100%;}
#face15{background: url(../image/book/weare3.jpg);background-size: 100% 100%;}
#face16{background: url(../image/book/soul1.jpg);background-size: 100% 100%;}
#face17{background: url(../image/book/soul2.jpg);background-size: 100% 100%;}
#face18{background: url(../image/book/soul3.jpg);background-size: 100% 100%;}
#face19{background: url(../image/book/eq1.jpg);background-size: 100% 100%;}
#face20{background: url(../image/book/eq2.jpg);background-size: 100% 100%;}
#face21{background: url(../image/book/eq3.jpg);background-size: 100% 100%;}
#face22{background: url(../image/book/deep1.jpg);background-size: 100% 100%;}
#face23{background: url(../image/book/deep2.jpg);background-size: 100% 100%;}
#face24{background: url(../image/book/deep3.jpg);background-size: 100% 100%;}
#face25{background: url(../image/book/gravity1.jpg);background-size: 100% 100%;}
#face26{background: url(../image/book/gravity2.jpg);background-size: 100% 100%;}
#face27{background: url(../image/book/gravity3.jpg);background-size: 100% 100%;}
#face28{background: url(../image/book/tele1.jpg);background-size: 100% 100%;}
#face29{background: url(../image/book/tele2.jpg);background-size: 100% 100%;}
#face30{background: url(../image/book/tele3.jpg);background-size: 100% 100%;}
#face31{background: url(../image/book/math1.jpg);background-size: 100% 100%;}
#face32{background: url(../image/book/math2.jpg);background-size: 100% 100%;}
#face33{background: url(../image/book/math3.jpg);background-size: 100% 100%;}
#face34{background: url(../image/book/weirdmaths1.jpg);background-size: 100% 100%;}
#face35{background: url(../image/book/weirdmaths2.jpg);background-size: 100% 100%;}
#face36{background: url(../image/book/weirdmaths3.jpg);background-size: 100% 100%;}


@keyframes don{
	to{transform:rotate3d(1,1,1,360deg);}
}

.flip, a.buybook{
	
	position: absolute;
	cursor: pointer;
	width: 40px;
	height: 40px;
	border-radius: 5px;
	right: 5px;	
	top:5px;
	border:1px solid #fff;
	
}

.flip{
	background: url("../image/flip2.png") crimson;
	background-size: 90% 90%;
	background-repeat: no-repeat;
	background-position: center center;
	right: 50px;	

}

.flip:hover{
	cursor: pointer;
}

.flip:before{
	content: "Rotate Tool";
	position: absolute;
	background: #fff;
	padding: 10px;
	border:2px solid #666;
	color:#464646;
	box-shadow: none;
	font-size: 15px;
	text-shadow: none;
	border-radius: 5px;
	left:-17px;
	top:-69px;
	text-align: center;
	transform: scale(0);
	transition:all .2s ease;
	z-index: 99999;

}

.flip:after{
	content: "";
	position: absolute;
	width: 0; 
  	height: 0; 
  	border-left: 5px solid transparent;
  	border-right: 5px solid transparent;
    border-top: 5px solid #fff;
    top:-7px;
    left: 13px;
    transform:  scaleY(0);
    transform-origin: bottom center;
    transition:all .1s ease;
    z-index: 999999;

}

.flip:hover:before{
	transform:  scale(1);
}

.flip:hover:after{
	transform:  scaleY(1);
}

a.buybook{
	background: url("../image/buybook.png") crimson;
	background-size: 90% 90%;
	background-repeat: no-repeat;
	background-position: center center;
	
}

.range-wrapper{
	padding: 10px;
	width:220px;
	position: relative;
	float: right;
	display: table;
	overflow: none;
	
}


@media (max-width: 970px){

.clearfix{
	clear: both;
}

.book{
	float:none;
	display: table;
    margin: 0 auto 10px auto;
}

.range-wrapper{
	float:none;
	margin: 0 auto 10px auto;
}

}

@media (max-width: 755px){

.clearfix{
	clear: none;
}

.book{
	float:left;
	display: table;
  	margin-right: 10px;
	margin-bottom: 5px;
}

.range-wrapper{
	float:right;
	margin-right: 10px;
	margin-bottom: 5px;
}

}

@media (max-width: 550px){

.clearfix{
	clear: both;
}

.book{
	float:none;
	display: table;
    margin: 0 auto 10px auto;
}

.range-wrapper{
	float:none;
	margin: 0 auto 10px auto;
}

}

ul#pages{
	list-style: none;
	display: flex;
	padding: 10px;
	margin-top:10px;
	position: relative;
}

ul#pages li{
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: #464646;

}

ul#pages li a{
	margin:5px;
	padding: 5px 10px;
	border:1px solid #fff;
	color: #fff;
	background: #464646;
	text-decoration: none;
	box-shadow: 1px 1px 4px 0px #000;
	border-radius: 5px;
	position: relative;
	
}

ul#pages li a:hover{
	background: #fff;
	color: #464646; 
}

ul#pages li a.active-page,ul#pages li a.active-page:hover{
	color: #fff;
	background: crimson;
}

.book-page-link:before{
	
	white-space: pre;
	position: absolute;
	left:0;
	top:-106px;
	background: #fff;
	color:#464646;
	padding: 10px;
	border-radius: 5px;
	font-size: 14px;
	border:1px solid #464646;
	transform: scale(0);
	transition:all .2s ease;

}

.book-page-link:after{
	content: "";
	position: absolute;
	width: 0; 
  	height: 0; 
  	border-left: 5px solid transparent;
  	border-right: 5px solid transparent;
    border-top: 5px solid #464646;
    top:-8px;
    left: 9px;
    transform:  scaleY(0);
    transform-origin: bottom center;
    transition:all .1s ease;

}

.book-page-link:hover:before{
	transform: scale(1);
}

.book-page-link:hover:after{
	transform:  scaleY(1);
}

#book-page-link1:before{
	content: "Weird Maths \A Mayday! \A The Extraterrestrial Encyclopedia \A Megacatastrophes! \A Zen Physics";
}

#book-page-link2:before{
	content: "We Are Not Alone \A Soul Search \A Equations of Eternity \A Deep Time";
}

#book-page-link3:before{
	content: "Gravity's Arc \A Teleportation \A Maths Encyclopedia \A List of other books";
}

#choose-book{
	width: 100%;
	display: block;
	padding: 10px;
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: #fff;
	background: url(../image/down.png) #464646;
	background-size: 32px 32px;
	background-repeat: no-repeat;
	background-position: calc(100% - 10px) center;
	border:1px solid #464646;
	cursor: pointer;
}

ul#choose-book-list{
	list-style: none;
	display: block;
	border:1px solid #464646;
	border-top:none;
	border-bottom: none;
	display: none;
}

ul#choose-book-list li a{
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: #464646;
	text-decoration: none;
	text-shadow: none;
	padding: 10px;
	display: block;
	border-bottom: 1px solid #464646;
	background:#fff;
	position: relative;
	padding-left: 45px;
	
}

ul#choose-book-list li a:hover{
	color: #fff;
	background: #464646;
}

.booklistpic{
	position: absolute;
	background: url(../image/menu/book.png);
	background-size:100% 100%;
	width: 24px;
	height: 24px;
	left:10px;
	top:9px;
}

ul#choose-book-list li a:hover .booklistpic{
	position: absolute;
	background: url(../image/menu2/book.png);
	background-size:100% 100%;
	width: 24px;
	height: 24px;
	left:10px;
	top:9px;
}


.otherbooklist img{
	width: 180px;
	height: 320px;
	float: none;
}

#other-books{
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

#book-page-link1:before{
	top: -125px;
}