@import url('scrollbars.css');
@import url('loading.css');
@import url('toolbar.css');
@import url('index.css');
.rtl,
.form-group {
	direction: rtl;
}

#body_wrapper {
	width: 100vw;
	height: 100vh;
	margin: 0;
	padding: 0;
	overflow: visible;
}

.book_container_width {
	width: calc(100vw - 20px);
	margin: 0 auto;
	white-space: nowrap;
}


/* show_page_title */

#flipbook .content_page.show_page_title0 .page_title {
	display: none;
}

/* hide footnotes etc */

#flipbook .content_page a[href^="#"] {
	display: none;
}


#flipbook .page_title {
	height: 3vh;
	font-size: 3vh;
	line-height: 3vh;
}

#flipbook .page_content {
	height: calc( 100% - 56px);
	position: relative;
	min-width: 200px;
	padding: 0 44px 40px;
}

body:not(.textselect) #flipbook .page_content,
body:not(.textselect) #flipbook .page_content * {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	cursor: default;
}

body.textselect #flipbook .page_content {
	cursor: auto;
}

#flipbook .page_content,
#flipbook .content_page,
#flipbook .page_content_wrapper {
	cursor: default;
	overflow: hidden;
	height: 100%;
}

#flipbook .page_content.scrollable {
	overflow-y: scroll;
}

#flipbook .page_content h1,
#flipbook .page_content h2,
#flipbook .page_content h3,
#flipbook .page_content h4,
#flipbook .page_content h5,
#flipbook .page_content h6,
#flipbook .page_content p,
#flipbook .page_content li {
	font-weight: normal;
	/*font-size: 1.87vh;
	line-height: 2.4vh;*/
	margin-top: 0;
	margin-bottom: 0;
	white-space: normal;
}

#flipbook .page_content img {
	max-height: 20vh;
	max-width: 38vw;
}

#flipbook .page_content ul {
	list-style: square inside url('data:image/gif;base64,R0lGODlhBQAKAIABAAAAAP///yH5BAEAAAEALAAAAAAFAAoAAAIIjI+ZwKwPUQEAOw==');
}

body {
	overflow: hidden;
}

#flipbook {
	width: 100%;
	height: 100%;
}

#flipbook .page {
	vertical-align: middle;
	background-color: white;
	/*font-size: 1.2vh;*/
	text-align: center;
	-width: 50%;
	-height: calc(100vh - 70px);
	direction: rtl;
}

#flipbook .hard {
	color: #eee;
	box-shadow: inset 0 0 5px #666;
	font-weight: bold;
	line-height: 10vh;
	font-size: 5vh;
}

#flipbook .hard h1 {
	line-height: 20vh;
	font-size: 10vh;
}

#flipbook .page_wrap,
#flipbook .page_outer_wrap {
	height: 100%;
}


/* For page patterns see custom/style.css and https://www.transparenttextures.com and http://lea.verou.me/css3patterns */

.display-double.desktop #flipbook.middle_gradient .page:not(.hard).odd {
	background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 90%, rgba(250, 250, 250, 0.5) 94%, #999 100%);
	box-shadow: inset 0 0 5px #666;
	border-left: 1px solid #ccc;
}

.display-double.desktop #flipbook.middle_gradient .page:not(.hard).even {
	background-image: linear-gradient(to left, rgba(255, 255, 255, 0) 90%, rgba(250, 250, 250, 0.5) 94%, #999 100%);
	box-shadow: inset 0 0 5px #666;
}

#flipbook .page_number_wrapper {
	text-align: center;
	position: absolute;
	width: 100%;
	bottom: 5px;
	left: 0;
	opacity: 1;
	transition: opacity 500ms;
}

#flipbook .scrolled .page_number_wrapper,
#flipbook .page_number_wrapper:hover {
	opacity: 0;
}

#flipbook .page_number {
	display: inline;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 20px;
	padding: 1px 5px;
	color: #777;
	font-size: 1.1em;
}

#flipbook .first_content_line,
#flipbook .first_content_line * {
	font-weight: bold;
	font-size: 20px;
	line-height: 22px;
}

#flipbook .first_content_line {
	margin-bottom: 15px !important;
}

.pages_depth_element {
	display: none;
}

.display-double .pages_depth_element {
	display: inline-block;
	height: 100%;
	padding: 0;
	transition: width 350ms, margin 350ms;
	z-index: 100;
	background-color: fff;
	background-size: 2px;
}

#flipbook_parent {
	margin: 0;
	z-index: 1000;
	overflow: hidden;
	position: relative;
}

#book_container>div {
	display: inline-block;
	float: left;
}

#pages_depth_l {
	background-image: linear-gradient(to left, rgba(99, 99, 77, 0) 0%, rgba(144, 144, 133, 0.8) 100%), linear-gradient(to left, #eee 50%, #ccc 50%);
	background-size: 100%, 2px;
	-box-shadow: 4px 0 10px 0px #fff inset;
	-webkit-clip-path: polygon(0% 1%, 100% 0%, 100% 100%, 0% 99%);
	clip-path: polygon(0% 1%, 100% 0%, 100% 100%, 0% 99%);
}

.ltr #pages_depth_l {
	margin-right: -5px;
}

.rtl #pages_depth_l {
	margin-left: -5px;
}

#pages_depth_r {
	background-image: linear-gradient(to right, rgba(99, 99, 77, 0) 0%, rgba(144, 144, 133, 0.8) 100%), linear-gradient(to left, #eee 50%, #ccc 50%);
	background-size: 100%, 2px;
	-box-shadow: -4px 0 10px 0px #fff inset;
	-webkit-clip-path: polygon(0% 0%, 100% 1%, 100% 99%, 0% 100%);
	clip-path: polygon(0% 0%, 100% 1%, 100% 99%, 0% 100%);
}

.ltr #pages_depth_r {
	margin-left: -5px;
}

.rtl #pages_depth_r {
	margin-right: -5px;
}


/* ON MOBILE DEVICES */

.mobile .book_container_width {
	width: calc(100vw - 10px);
}


/* do not use transparency and fancy backgrounds on mobile devices */

.display-double.mobile #flipbook.middle_gradient .odd {
	background-image: linear-gradient(to right, #fff 90%, #f9f9f9 94%, #999 100%);
	box-shadow: none;
}

.display-double.mobile #flipbook.middle_gradient .even {
	background-image: linear-gradient(to left, #fff 90%, #f9f9f9 94%, #999 100%);
	box-shadow: none;
}

.hr_read_more_clickable {
	cursor: pointer;
	text-decoration: underline;
}

#pages_depth_tooltip {
	position: fixed;
	display: block;
	background: #bbb;
	border-radius: 4px;
	color: #333;
	font-size: 15px;
	line-height: 15px;
	padding: 3px 10px;
	cursor: col-resize;
	cursor: crosshair;
}

.animation-spin {
	animation: spin 2s infinite linear;
}

.glyphicon,
.fa {
	font-weight: normal;
}

#id-sound-ban {
	opacity: 0.5;
	color: #f33;
	margin-top: -6px;
}

.media-print,
#print_container {
	display: none;
}

.print_footer {
	font-size:10px;
	color:#000;
	white-space: nowrap;
}

@media screen {
	.media-print,
	#print_container {
		display: none;
	}
}

@media print {
	.media-print ,
	#print_container {
		display: inline-block;
	}

	.first_content_line {
		font-size: 130%;
		font-weight: bold;
	}
	.page_top,
	.tb-nav
	/* body>*:not(#print_container) */
	{
		display: none;
	}
	#print_container {
		-webkit-print-color-adjust: exact;
	}
	#print_container>* {
		margin: 0;
		display: block;
		padding: 0;
	}
}

.music_pop {
	margin: 20px auto 0;
	display: block;
	overflow: hidden;
	width: 351px;
	height: 32px;
	position: relative;
	transform:scale(0.7);
}

.music_pop iframe {
	position: absolute;
	left: -36px;
	top: -12px;
	width: 386px;
	height: 56px;
	border: none;
}


/* trying to fix the bluring bug: */

.page_outer_wrap {
	/*transform: rotate(-0.01deg) translate3d(-1px, 1px, 990px);*/
}

#body .modal-backdrop {
	z-index: 2040;
}

#body .modal {
	z-index: 2050;
}

.line-through {
	text-decoration: line-through;
}

.bookmark_ribbon {
	content: "";
    position: absolute;
    display: block;
    border: 10px solid #000;
	width: 27px;
	cursor: pointer;
	z-index: 1;
}

.bookmark_ribbon.r {
    border-right-color: transparent;
}

.bookmark_ribbon.l {
    border-left-color: transparent;
}

#curpage_bookmark {
	left: 0;
	top: 5px;
	z-index: 1;
	width: 90px;
}
#curpage_bookmark:not(.active) {
	opacity:0.4;
}

#bookmarks {
	position: absolute;
}



#pages_depth_l, #pages_depth_r, .bookmark_ribbon{display: none !important}
.btn-primary{background-color: transparent;color:#2e6da4;border-width: 0;}
@media only screen and (min-width: 700px) {
	html .tb-bottom .btn-primary {
		margin: 0 10px;
		height:auto !important;width:auto !important;
		margin: 0 10px;
	}
	
	#flipbook {
		margin-top: 6vh;
		height: 87vh !important;
	}
}


@media only screen and (max-width: 500px) {
	#tb-top{display: none}
	#tb-bottom {height: 23px;}
	#body #tb-item-nav-pagenum{padding: 3px 5px}
}

