/* fancy gallery book */

body {
	width: 100%;
	max-height: 100%;
	height: 800px;
	margin: 0;
	background: #6782bf;
}

.transition,
.smooth {
	-webkit-transition: 0.5s ease-in-out;
	-moz-transition: 0.5s ease-in-out;
	-ms-transition: 0.5s ease-in-out;
	-o-transition: 0.5s ease-in-out;
	transition: 0.5s ease-in-out;
}

.book-table {
	position: relative;
    width: 100%;
    max-width: 1300px;
    height: 800px;
    margin: 10px auto;
    background: url('images/book-table.jpg');
    background-size: cover;
    border-radius: 10px;
    box-shadow: 5px 5px 60px rgba(0,0,0,0.5);
}

.autoStartBox {
    width: 100%;
    text-align: center;
    font-size: 30px;
    line-height: 80px;
    font-weight: 800;
    text-transform: uppercase;
    /*color: #808080;*/
    color: #fff;
    text-shadow: 3px 3px 5px #000;
	background: #acacac8c;
	border-radius: 10px 10px 0 0;
	box-shadow: 0px 10px 10px #acacac8c;
}

#autoStartBtn {
    color: #f22;
    cursor: pointer;
    border: 4px solid;
    padding: 3px 15px 5px 11px;
    background: #e2e2e2;
}

#autoStartBtn.active {
	color: #0f6;
}

#autoStartBtn:hover {
	color: #ececec;
	/*border-color: #c4c4c4;*/
}

.galleryBook-box {
    width: 95%;
    margin: 30px auto;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.bookHalf {
    width: 50%;
    float: left;
    text-align: center;
    height: 600px;
    position: relative;
}

.bookPage {
	background: #c4c4c4 url('images/etc2.jpg');
	box-shadow: 5px 5px 30px rgba(0,0,0,0.8);
	position: absolute;
	height: 100%;
	width: 100%;
}

.bookPage .pageText {
    margin-top: 20px;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 3px 3px 5px #000;
}

.bookPage .pageImg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 800px;
    max-width: 95% !important;
    max-height: 95%;
}

.bookHalf .left-page {
    transform: rotateY(0deg);
    transform-origin: right;
}

.bookHalf .left-page.up {
    transform: rotateY(90deg);
}

.bookHalf .right-page {
    transform: rotateY(0deg);
    transform-origin: left;
}

.bookHalf .right-page.up {
    transform: rotateY(-90deg);
}

.pageFlipTime {
	-webkit-transition: all 1.5s ease-in-out;
	-moz-transition: all 1.5s ease-in-out;
	-o-transition: all 1.5s ease-in-out;
	transition: all 1.5s ease-in-out;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
}

.coverText {
    position: absolute;
    z-index: 5;
    color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 120px;
    text-transform: uppercase;
}

img.pageImg.coverArt {
    height: 103% !important;
    width: 103% !important;
    max-width: 103% !important;
    max-height: 103% !important;
    border: 3px solid #626262;
}

img.pageImg.coverArt.front,
.bookHalf .right-page {
    border-radius: 0 10px 10px 0;
}

img.pageImg.coverArt.back,
.bookHalf .left-page {
    border-radius: 10px 0 0 10px;
}

.arrowBar {
    width: 100%;
    position: absolute;
	bottom: 0;
	height: 60px;
	padding: 10px 0;
	background: #acacac8c;
	border-radius: 10px 10px 0 0;
	box-shadow: 0px -10px 10px #acacac8c;
}

.arrowBar.autoPlayOn {
	display: none;
}

.barHalf {
	width: 50%;
	float: left;
	height: 100%;
	cursor: pointer;
}

.barHalf.rtSide {
	float: right;
}

#arrowLeft {
	background: url('images/arrowLeft.png') no-repeat center center;
	background-size: contain;
}

#arrowLeft:hover {
	background: url('images/arrowLeft-hover.png') no-repeat center center;
	background-size: contain;
}

#arrowRight {
	background: url('images/arrowRight.png') no-repeat center center;
	background-size: contain;
}

#arrowRight:hover {
	background: url('images/arrowRight-hover.png') no-repeat center center;
	background-size: contain;
}

#arrowLeft.inactive,
#arrowRight.inactive {
   display: none;
}

@media only screen and (max-width: 1025px) {
	.book-table {
	    height: 650px;
	}

	.bookHalf {
	    height: 450px;
	}
}

@media only screen and (max-width: 767px) {
	.book-table {
	    height: 575px;
	}

	.autoStartBox {
	    font-size: 26px;
	    padding-top: 10px;
	}

	.bookHalf {
	    height: 375px;
	}
}

@media only screen and (max-width: 600px) {
	.book-table {
	    height: 500px;
	}

	.bookHalf {
	    height: 300px;
	}

	.bookPage .pageText {
	    font-size: 18px;
	    line-height: 22px;
	}
}

@media only screen and (max-width: 480px) {
	.book-table {
	    height: 460px;
	}

	.autoStartBox {
	    line-height: 45px;
	}

	.bookHalf {
	    height: 250px;
	}

	.bookPage .pageText {
	    font-size: 15px;
	    line-height: 17px;
	}
}

/* fancy gallery book end */