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

.hide {display:none}
#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;
	z-index: 1000;;
}

.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{top:4vh;position:relative;}
.bookmark_ribbon{display: none !important}
.nav-pills .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: 4vh;
		height: 87vh !important;
	}
}


@media only screen and (max-width: 500px) {
	#tb-top{display: none}
	#tb-bottom {height: 36px;left:50% !important; transform: translateX(-50%);width:300px;bottom:5px !important}
	#tb-bottom ul {width:100%;text-align: center}
	#body #tb-item-nav-pagenum{padding: 3px 5px}
}
.search-frame.mobile.slide-left{bottom:0}
.search-frame.mobile{
    right: 0 !important;
    top: auto;
    bottom: -101px;
    z-index: 2000;
    width: 100%;
    border: 0;    
    padding: 0;        
}


.search-frame.mobile .tabs .tab{
    float:right;
    width: 30%;
    text-align: center;
    padding: 10px 0;    
}

.search-frame.mobile .tabs .tab.close-tab {width: 10%}
.search-frame.mobile .tabs .tab.active {
    background: #2e6da4;
    color: #fff;
}

.search-frame.mobile .tabs .tab.close-tab .fa {color:#2e6da4;font-size:20px;}

.search-frame.mobile .tab-page {
    box-sizing: border-box;   
    width: 100%;
    padding: 10px 2.5%;
    display: none;
}

.search-frame.mobile .tab-page.active {display: inline-block}


.search-frame.mobile .free-seach {width:90%}
.search-frame.mobile.show-search-bar .free-seach {width:50%}
.search-frame.mobile .tb-padding .tb-item {padding: 3px 5px !important;}
.search-frame.mobile #searchBar {padding-top:0}



	.search-frame {
		direction: rtl;
		background: #FFF; 
		width:300px;
		min-height:100px;
		border:2px solid #2e6da4;
		border-width: 2px 0px 2px 2px; 
		position:fixed;
		top:4vh;
		transition: all;
		transition-duration: .5s;
		padding: 40px 20px 20px 20px;
		right:-300px;
		z-index:1000;		
	}

	.search-frame input.form-control {
		float:right;
		width: 70%;
	}
	.search-frame .btn {
		float:right;
		top:0
	}
	.search-frame .close-search-frame { 
		position:absolute;
		top: 13px;
		right: 10px;
		font-size:20px;
		cursor: pointer;
		color: #fff;
		z-index:2
	}
	#searchBar{display:inline-block;padding-top:5px;}
	.search-frame h2 {
		background:#2e6da4;
		width:100%;
		color: #FFF;
		padding: 10px 0;
		margin: 0;
		width:100%;
		position: absolute;
		top:0;
		left:0;
		font-size:22px;
		text-align: center;
	}

	.search-frame button{top:3px;position:relative}
	
	html body .search-frame  .tb-nav{position: static !important;margin-top:5px !important;}

	.search-frame .item {
		width:100%;
		display: inline-block;
		margin: 4px 0;
		padding-right: 10%;
		box-sizing: border-box;
	}

	.search-frame button {}
	.slide-left {
		right:0;
	}

	.ui-front{z-index: 2001 !important;}
	

        .addthis_inline_share_toolbox {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: -31px;
        }
        
        
        
.sharethis-inline-share-buttons {
	position:fixed;
	top:50%;
	transform: translateY(-50%);
	transition: all .5s !important;	
	left:-50px;
	; 
}
.sharethis-inline-share-buttons.show{left:10px;}
.sharethis-inline-share-buttons .st-btn {clear:both;display: block !important;
	width: 50px !important;
    margin-top: 5px !important
}

.addthis_inline_share_toolbox.hide{display: none}

@media (max-width:500px) {
    .display-single #flipbook .page_top_content:after{margin-left:5%}
}

.buttom-stuf{width:100%;text-align: center;position: absolute;top:4px}
.buttom-stuf .fa{font-size:20px;margin:0 3px;color:#2e6da4;cursor:pointer} 
.buttom-stuf .fa-question-circle{display:none}
.buttom-stuf .fa-question-circle[remark]{display: inline-block;}
.swal2-content p{margin-bottom:0}

.page_content h1{font-size:16px;line-height: 1.42857143;}
.page_content br{display: none;}

.page_content.scrollable{width:calc(100% - 43px)}

.swal2-html-container *{font-size: 18px !important;}
.swal2-html-container{height:200px;overflow: auto;}