*{margin:0; padding:0;}

html, body {
	width:100%;
	height:100%;
	overflow:hidden;
	background-color:#222;
	-webkit-text-size-adjust:100%;
}

a,img,input {
	selector-dummy: expression(this.hideFocus=true);
}

.pointer {
	cursor:pointer;
}

header {
	position:fixed;
	width:100%;
	height:55px;
	color:white;
	background-color:#d3b670;
	text-align:center;
	z-index:9;
}

footer {
	position:fixed;
	bottom:0px;
	width:100%;
	height:34px;
	background-color:black;
	color:white;
	text-align:center;
	display:table;
	z-index:3;
	clear:both;
}

#book-header {
	width:100%;
	height:100%;
	vertical-align:middle;
}

#projpass-area {
	left:0;
	top:0;
	width:100%;
	height:100%;
	position:fixed;
	z-index:10;
}

#projpass-bg {
	left:0;
	top:0;
	width:100%;
	height:100%;
	position:fixed;
	z-index:0;
	background-color:black;
	opacity:.8;
}

#projpass-page {
	padding:40px 0 0 0;
	position:fixed;
	width:400px;
	height:100px;
	border:1px solid gray;
	background-color:white;
	z-index:1;
	text-align:center;
	opacity:1;
}

#projpass-page input {
	border:1px solid #ccc;
	width:250px;
	height:50px;
	font-size:1.2em;
	padding:0 5px;
}

#projpass-page #projpass-btn {
	border:1px solid lightblue;
	font-size:.9em;
	font-weight:bold;
	padding:14px 10px;
	margin-left:10px;
	cursor:pointer;
	background-color:lightblue;
	border-radius:2px;
	letter-spacing:3px;
}

#list-btn{
	float:left;
	margin-left:10px;
	font-weight:bold;
	font-size:1em;
	letter-spacing:3px;
}

#list-btn:hover{
	color:black;
}

#menu {
	float:right;
	margin-right:5px;
}

#menu li {
	display:inline;
	font-weight:bold;
	font-size:.9em;
	letter-spacing:1px;
}

#menu li:hover{
	color:black;
}

#book-footer {
	width:100%;
	height:100%;
	vertical-align:middle;
	text-align:center;
	flex-direction: row;
	justify-content: space-around;
}

footer p,footer div {
	padding:3px 0px;
	font-size:15px;
}

footer input {
	border:0px;
	width:40px;
	height:24px;
	text-align:center;
	font-family:"Tahoma";
	font-size:1em;
}

footer #totalPage {
	padding:5px 0px;
	margin-right:10px;
	font-family:"Tahoma";
	font-size:1em;
}

#atss {
	width:60px;
	height:24px;
}

#move-btn {
	cursor:pointer;
}

#prev-btn, #next-btn {
	opacity:0.5;
	cursor:pointer;
	position:fixed;
	width:40px;
	height:100%;
	overflow:hidden;
	margin-top:-60px;
	z-index:2;
	display:flex;
	align-items:center;
	
	-moz-transition:opacity 0.2s ease;
	-webkit-transition:opacity 0.2s ease;
	transition:opacity 0.2s ease;
}

#prev-btn:hover, #next-btn:hover, #markpage-btn:hover, #tprev-btn:hover, #tnext-btn:hover{
	opacity:1;
}

#prev-btn{
	background-position:left;
	left:5px;
}

#next-btn{
	background-position:right;
	right:5px;
}

#markpage-btn{
	opacity:0.5;
	cursor:pointer;
	position:fixed;
	top:55px;
	right:5px;
	z-index:7;
	
	-moz-transition:opacity 0.2s ease;
	-webkit-transition:opacity 0.2s ease;
	transition:opacity 0.2s ease;
}

#tprev-btn, #tnext-btn {
	opacity:0.5;
	cursor:pointer;
	position:fixed;
	width:34px;
	height:44px;
	overflow:hidden;
	bottom:0;
	margin-bottom:-22px;
	z-index:4;
	
	-moz-transition:opacity 0.2s ease;
	-webkit-transition:opacity 0.2s ease;
	transition:opacity 0.2s ease;
}

#tprev-btn{
	background-position:left top;
	left:5px;
}

#tnext-btn{
	background-position:right top;
	right:5px;
}

#sound-area {
	opacity:.5;
	position:fixed;
	top:75px;
	left:50%;
	z-index:5;
	margin-top:5px;
	margin-left: -150px;
}

#sound-area #splayer {
	width: 300px;
	height:30px;
	margin-top:-40px;
}

#media-area {
	left:0;
	top:0;
	width:100%;
	height:100%;
	position:fixed;
	z-index:9;
	margin-top:55px;
}

#media-area #media-bg {
	position:fixed;
	z-index:0;
	width:100%;
	height:100%;
	background-color:black;
	overflow:hidden;
	opacity:.5;
}

#media-area #media-box {
	position:fixed;
	z-index:2;
	text-align:center;
	padding:20px;
	background-color:white;
}

#media-area #media-box p {
	text-align:right;
}

#media-area #media-box p img {
	cursor:pointer;
}

#preload {
	position:fixed;
	z-index:0;
	top:50%;
	left:50%;
	margin-left:-60px;
	margin-top:-10px;
	color:yellow;
	font-weight:bolder;
}

#eb-list {
	position:fixed;
	top:0;
	left:-200px;
	background-color:black;
	border-right:1px solid black;
	color:white;
	width:200px;
	height:100%;
	z-index:10;
	font-family:"Tahoma";
	font-size:.8em;
}

#eb-list h4 {
	width:100%;
	color:white;
	text-align:center;
	padding:5px 0;
	border-bottom:1px solid #777;
}

#eb-list #navigation{
	line-height:1.2em;
	overflow-x:auto;
	overflow-y:auto;
}

#eb-list #navigation li{
	cursor:pointer;
}

#eb-list #navigation span:hover{
	color:red;
}

#pages {
	position:relative;
	background-color:#222;
	visibility:hidden;
	margin-top:55px;
}

#pages .pagestyle {
	float:left;
	overflow:hidden;
	display:table;
}

#pages #page {
	overflow:auto;
	background-color:white;
}

#zoom-area {
	left:0;
	top:55px;
	width:100%;
	height:100%;
	position:fixed;
	z-index:8;
	display:table;
}

#zoom-bg {
	width:100%;
	height:100%;
	position:fixed;
	background-color:white;
	overflow:hidden;
	z-index:0;
	opacity:1;
}

#zoom-page {
	width:100%;
	height:100%;
	position:fixed;
	z-index:1;
	display:table-cell;
	vertical-align:middle;
	text-align:center;
}

#zpage {
	background-color:white;
	text-align:left;
}

#thumbnail-area, #mark-area {
	position:fixed;
	bottom:0;
	left:0;
	background-color:black;
	color:white;
	width:100%;
	z-index:4;
	overflow:hidden;
	text-align:left;
}

#thumbnail-area .tpagestyle, #mark-area .tpagestyle {
	display:inline-block;
	vertical-align:top;
	margin:5px 2px;
	padding:1px;
	border:1px solid white;
	text-align:center;
	font-family:"Tahoma";
	font-size:.9em;
}

#thumbnail-area img, #mark-area img {
	border:1px solid white;
	cursor:pointer;
}

#search-area {
	width:250px;
	height:300px;
	position:fixed;
	z-index:19;
	top:55px;
	background:#eee;
	padding:15px;
	border:1px solid #ddd;
	border-top:0;
	right:20px;
}

#search-area input {
	border:1px solid #ccc;
	width:200px;
	font-size:1em;
	padding:5px;
}

#search-area #searchlist-btn {
	cursor:pointer;
}

#search-area #slist {
	 height:250px;
	 border:1px solid #ccc;
	 margin-top:10px;
	 background:white;
	 overflow:auto;
	 padding:5px;
	 text-align:left;
}

#search-area #slist ul {
	font-size:.9em;
	font-family:Tahoma;
}

#search-area #slist li{
	padding-bottom:3px;
	cursor:pointer;
}