/*CSS Reset*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, figure, footer, header, hgroup, menu, nav, section, menu,
time, mark, audio, video {
margin:0;
padding:0;
border:0;
outline:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}

article, aside, figure, footer, header,
hgroup, nav, section { display:block; }

nav ul { list-style:none; }

blockquote, q { quotes:none; }

blockquote:before, blockquote:after,
q:before, q:after { content:''; content:none; }

a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }

ins { background-color:#ff9; color:#000; text-decoration:none; }

mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold; }

del { text-decoration: line-through; }

abbr[title], dfn[title] { border-bottom:1px dotted #000; cursor:help; }

/* tables still need cellspacing="0" in the markup */
table { border-collapse:collapse; border-spacing:0; }

hr { display:block; height:1px; border:0; border-top:1px solid #ccc; margin:1em 0; padding:0; }
body {overflow:scroll-y;}
input, select { vertical-align:middle; }
/* END RESET CSS */

/* Begin app CSS */

/* We are currently working off the base MAX width of 600px, MAX height of 800px, MIN width of 195px and MIN height of 260 px and Font-Size of 16px*/

/* Main Wrapper */
#pop-up-wrapper {
	-webkit-user-select: none; /* Chrome/Safari */        
	/*-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* IE10+ */

	/* Rules below not implemented in browsers yet */
	-o-user-select: none;
	user-select: none;
	font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
	position: relative;
	width: 500px;
	height: 500px;
	padding: 0px;
	z-index: 2;
	overflow: hidden;
	transition: opacity 0.25s;
	-moz-transition: opacity 0.25s;
	-webkit-transition: opacity 0.25s;
	-o-transition: opacity 0.25s;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	border: 1px solid #4E4E4E;
}

.pop-up-wrapper-hidden {
	opacity: 0;
	-moz-opacity: 0;
}

.pop-up-wrapper-visible {
	opacity: 1;
	-moz-opacity: 1;
}


/* Top Bar and its Children*/
#top-bar {
	position: absolute;
	display: block;
	min-width: 195px;
	max-width: 600px;
	max-height: 36px;
	width: 100% !important;
	height: 4.50% !important; /*36px;*/
	overflow: hidden;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-box-shadow: 0px 2px 5px 2px rgba(0, 0, 0, 0.4);
	-moz-box-shadow: 0px 2px 5px 2px rgba(0, 0, 0, 0.4);
	box-shadow: 0px 2px 5px 2px rgba(0, 0, 0, 0.4);
	z-index: 200;
	background-image: -webkit-linear-gradient(bottom, rgb(200, 200, 200), rgb(225, 225, 225)); /* Safari 5.1+, Mobile Safari, Chrome 10+ */
   	background-image: -moz-linear-gradient(bottom, rgb(200, 200, 200), rgb(225, 225, 225)); /* Firefox 3.6+ */
   	background-image: -ms-linear-gradient(bottom, rgb(200, 200, 200), rgb(225, 225, 225)); /* IE 10+ */
   	background-image: -o-linear-gradient(bottom, rgb(200, 200, 200), rgb(225, 225, 225)); /* Opera 11.10+ */
	transition: transform 0.25s;
	-moz-transition: -moz-transform 0.25s;
	-webkit-transition: -webkit-transform 0.25s;
	-o-transition: -o-transform 0.25s;
}

.top-bar-hidden {
	top: -4.50%; /*36px;*/
	transform: translate3d(0, 0, 0);
	-ms-transform: translate3d(0, 0, 0); /* IE 9 */
	-moz-transform: translate3d(0, 0, 0); /* Firefox */
	-webkit-transform: translate3d(0, 0, 0); /* Safari and Chrome */
	-o-transform: translate3d(0, 0, 0); /* Opera */
}

.top-bar-visible {
	transform: translate3d(0, 100%, 0);
	-ms-transform: translate3d(0, 100%, 0); /* IE 9 */
	-moz-transform: translate3d(0, 100%, 0); /* Firefox */
	-webkit-transform: translate3d(0, 100%, 0); /* Safari and Chrome */
	-o-transform: translate3d(0, 100%, 0); /* Opera */
}

.top-bar-text {
	position: relative;
	display: inline-block;
	margin-left: 3.3333333%; /*20px;*/
	line-height: 170%; /*32px;*/
	max-height: 100%;
	height: 100% !important;
	font-size: 100%; /*20px;*/
	color: rgb(76, 76, 76);
	text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.6);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#book-title {
	font-weight: bold;
	width: 70%;
	max-width: 480px !important;
}

#page-count {
	float: right;
	margin-right: 3.3333333%; /*20px;*/
	font-size: 75%;
	padding-top: 1.3%;
	width: 20%;
}


/* Image Wrapper and its Children */
#image-wrapper {
	position: absolute;
	width: auto;
	height: auto;
	white-space: nowrap;
}

.reader {
	float: left;
}


/* Next and Previous Buttons and their Children */
div#next-button-object{
background: url('../images/arrow-next-blk-thin.svg') no-repeat 50% 50%;
}

div#previous-button-object{

background: url('../images/arrow-prev-blk-thin.svg') no-repeat 50% 50%;
}

#next-button, #previous-button {
	opacity: 0;
	-moz-opacity: 0;
	position: absolute;
	min-width: 5%; /*30px;*/
	min-height: 3.75%; /*30px;*/
	z-index: 150;
	transition: opacity 0.25s;
	-moz-transition: opacity 0.25s;
	-webkit-transition: opacity 0.25s;
	-o-transition: opacity 0.25s;
	/*background: black;*/
}

#next-button-object, #previous-button-object {
	position: absolute;
	top: 50%;
	margin-top: -13.625%; /*-109px;*/
	height: 27.25%; /*218px;*/
	width: 20%; /*120px;*/
	line-height: 1000%; /*108em;*/
	text-align: center;
	font-size: 100%; /*26px;*/
}

#next-button-object {
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
	right: 0px;
	-moz-box-shadow: -3px 0px 5px 2px rgba(0, 0, 0, 0.4);
  	-webkit-box-shadow: -3px 0px 5px 2px rgba(0, 0, 0, 0.4);
  	box-shadow: -3px 0px 5px 2px rgba(0, 0, 0, 0.4);
}

#previous-button-object {
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	left: 0px;
	-moz-box-shadow: 3px 0px 5px 2px rgba(0, 0, 0, 0.4);
  	-webkit-box-shadow: 3px 0px 5px 2px rgba(0, 0, 0, 0.4);
  	box-shadow: 3px 0px 5px 1px rgba(0, 0, 0, 0.4);
}

.enabled-button-object {
	background-color: rgba(51, 51, 51, 0.6);
	color: white;
	font-weight: bold;
}

.disabled-button-object {
	background-color: rgba(200, 200, 200, 0.6);
	color: gray;
	font-weight: lighter;
}

/* Bottom Bar and its Children */
#bottom-bar {
	position: absolute;
	display: block;
	vertical-align: middle;
	width: 100%;
	height: 4.25%; /*34px;*/
	min-width: 195px;
	max-width: 600px;
	max-height: 34px;
	-webkit-box-shadow: 0px -2px 5px 2px rgba(0, 0, 0, 0.4);
	-moz-box-shadow: 0px -2px 5px 2px rgba(0, 0, 0, 0.4);
	box-shadow: 0px -2px 5px 2px rgba(0, 0, 0, 0.4);
	left: 0px;
	z-index: 200;
	transition: transform 0.25s;
	-moz-transition: -moz-transform 0.25s;
	-webkit-transition: -webkit-transform 0.25s;
	-o-transition: -o-transform 0.25s;
}

.bottom-bar-hidden {
	bottom: -4.25%; /*-35px;*/
	transform: translate3d(0, 0, 0);
	-ms-transform: translate3d(0, 0, 0); /* IE 9 */
	-moz-transform: translate3d(0, 0, 0); /* Firefox */
	-webkit-transform: translate3d(0, 0, 0); /* Safari and Chrome */
	-o-transform: translate3d(0, 0, 0); /* Opera */
}

.bottom-bar-visible {
	transform: translate3d(0, -100%, 0); /*translate3d(0, -35px, 0);*/
	-ms-transform: translate3d(0, -100%, 0); /*translate3d(0, -35px, 0);*/ /* IE 9 */
	-moz-transform: translate3d(0, -100%, 0); /*translate3d(0, -35px, 0);*//* Firefox */
	-webkit-transform: translate3d(0, -100%, 0); /*translate3d(0, -35px, 0);*/ /* Safari and Chrome */
	-o-transform: translate3d(0, -100%, 0); /*translate3d(0, -35px, 0);*/ /* Opera */
}

.dark-gray-gradient {
	background-image: -webkit-linear-gradient(top, rgb(150, 150, 150) 30%, rgb(200, 200, 200) 100%); /* Safari 5.1+, Mobile Safari, Chrome 10+ */
   	background-image: -moz-linear-gradient(top, rgb(150, 150, 150) 30%, rgb(200, 200, 200) 100%); /* Firefox 3.6+ */
   	background-image: -ms-linear-gradient(top, rgb(150, 150, 150) 30%, rgb(200, 200, 200) 100%); /* IE 10+ */
   	background-image: -o-linear-gradient(top, rgb(150, 150, 150) 30%, rgb(200, 200, 200) 100%); /* Opera 11.10+ */
}

.light-gray-gradient {
	background-image: -webkit-linear-gradient(top, rgb(200, 200, 200), rgb(225, 225, 225)); /* Safari 5.1+, Mobile Safari, Chrome 10+ */
   	background-image: -moz-linear-gradient(top, rgb(200, 200, 200), rgb(225, 225, 225)); /* Firefox 3.6+ */
   	background-image: -ms-linear-gradient(top, rgb(200, 200, 200), rgb(225, 225, 225)); /* IE 10+ */
   	background-image: -o-linear-gradient(top, rgb(200, 200, 200), rgb(225, 225, 225)); /* Opera 11.10+ */
}

#buy-button, #share-button {
	position: relative;
	display: inline-block;
	height: 61.764706%; /*21px;*/ /*To compensate for borders and padding */
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	width: 11.333333%; /*68px;*/
	font-size: 65%; /*13px;*/
	padding: 0.16666667% 0; /*1px 0px;*/
	border: solid 1px #A5A4A5;
	color: white;
	text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.6);
	border-radius: 20px;
	background-color: transparent;
	text-align: center;
	margin-top: 1.1666667%; /*7px;*/
	overflow: hidden;
   	font-weight: bold;
}

#buy-button:hover, #share-button:hover {
	color: gray;
	text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.6);
}

#buy-button{
	margin-left: 3.3333333%; /*20px;*/
}

#share-button {
	margin-left: 1.6666667%; /*10px;*/
}

.bevel-div {
	height: 50%;
	width: 97%;
	background-color: rgba(255, 255, 255, 0.2);
	position: absolute;
	top: 0px;
	left: 2%;
	border-bottom-left-radius: 50% 50%;
	border-bottom-right-radius: 50% 50%;
	border-top-left-radius: 15% 48%;
	border-top-right-radius: 15% 48%;
}

/* facebook CSS Hack >_> */
.fb-like {
	/*revising hack
	height:25px;
	float: right;
	margin-top: 1.1666667%; 
	margin-right: 3.333%;
	overflow:hidden;
	*/
}
#like-container {
height:25px;
overflow:hidden;
float: right;
margin-top: 1.1666667%; /*7px;*/
margin-right: 3.333%;
overflow:hidden;	
}
.fb-like > span {
  overflow: hidden;
}

.fb_edge_widget_with_comment span.fb_edge_comment_widget iframe.fb_ltr {
  display: none !important;
}

.fb_edge_comment_widget {
    margin-left: -350px;
    margin-top: -220px;
}

.nub {
	display: none;
	opacity: 0;
	-moz-opacity: 0;
}

/* Top and Bottom "Active" Areas */

#top-active-area, #bottom-active-area {
	background-color: transparent;
	position: absolute;
	width: 100%;
	z-index: 175;
}

#top-active-area {
	top: 0px;
	min-height: 4.5%; /*36px;*/
	/*background-color: blue;*/
}

#bottom-active-area {
	bottom: 0px;
	min-height: 4.25%; /*34px;*/
	/*background: green;*/
}

/* Share Pop-up */
#share-pop-up {
	position: absolute;
	width: 96%; /*576px;*/
	left: 2%;
	height: 17.125%; /*137px;*/
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	font-size: 64.8%; /*0.81em;*/
	border-radius: 5px;
	-moz-box-shadow: 0px 0px 6px 3px rgba(0, 0, 0, 0.4);
  	-webkit-box-shadow: 0px 0px 6px 3px rgba(0, 0, 0, 0.4);
  	box-shadow: 0px 0px 6px 3px rgba(0, 0, 0, 0.4);
	background-color: white;
	text-align: center;
	margin-top: 1.1666667%; /*7px;*/
	overflow: visible;
	transition: opacity 0.25s;
	-moz-transition: opacity 0.25s;
	-webkit-transition: opacity 0.25s;
	-o-transition: opacity 0.25s;
	bottom: 6.625%; /*53px;*/
}

.share-pop-up-hidden {
	z-index: 150;
	opacity: 0;
	-moz-opacity: 0;
	transform: translate3d(0, 0, 0);
	-ms-transform: translate3d(0, 0, 0); /* IE 9 */
	-moz-transform: translate3d(0, 0, 0); /* Firefox */
	-webkit-transform: translate3d(0, 0, 0); /* Safari and Chrome */
	-o-transform: translate3d(0, 0, 0); /* Opera */
}

.share-pop-up-visible {
	z-index: 200;
	opacity: 1;
	-moz-opacity: 1;
}

#share-small-button, #share-large-button, #share-clipboard-button {
	position: relative;
	margin-top: 1.7361111%; /*10px;*/
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	padding: 0.64722222% 0.86805556%; /*2px 5px;*/
	padding-bottom: 0px;
	border: 1px solid #A5A4A5;
	font-weight: bold;
	height: 15.328467%; /*21px;*/
	width: 46.5277778%; /*69px;*/
	font-size: 100%; /*.94em;*/
	display: inline-block;
}

#share-small-button {
	border-top-left-radius: 20px;
	border-bottom-left-radius: 20px;
	float: left;
	margin-left: 3.4722222%; /*20px;*/
}

#share-large-button {
	border-top-right-radius: 20px;
	border-bottom-right-radius: 20px;
	float: left;
}

.share-size-button-light-text {
	color: white;
	text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.6);
}

.share-size-button-dark-text {
	color: gray;
	text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.6);
}

#share-script {
	-webkit-user-select: text; /* Chrome/Safari */        
	-moz-user-select:text;/*-moz-user-select: auto; *//* Firefox */
	-ms-user-select: text; /* IE10+ */
	-o-user-select: text;
	user-select: text;
	position: relative;
	display: block;
	margin-top: 3.4722222%; /*45px;*/
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	padding: 0% 3.4722222%; /*0px 20px;*/
	padding-top: 0.86805556; /*5px;*/
	overflow: auto;
	text-align: left;
	height: 80%;
	width: 100%;
	word-wrap: break-word;
	font-size: 120%;
}

#box-pointy-thing {
	position: absolute;
	top: 94.160584%; /*129px;*/
	-moz-box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.4);
  	-webkit-box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.4);
  	box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.4);
	height: 10.948905%; /*15px;*/
	width: 2.6041667%; /*15px;*/
	transform: rotate3d(0, 0, 1, 45deg);
	-ms-transform: rotate3d(0, 0, 1, 45deg); /* IE 9 */
	-moz-transform: rotate3d(0, 0, 1, 45deg); /* Firefox */
	-webkit-transform: rotate3d(0, 0, 1, 45deg); /* Safari and Chrome */
	-o-transform: rotate3d(0, 0, 1, 45deg); /* Opera */
	background-image: -webkit-linear-gradient(135deg, white, white 50%, transparent 51%); /* Safari 5.1+, Mobile Safari, Chrome 10+ */
   	background-image: -moz-linear-gradient(135deg, white, white 50%, transparent 51%); /* Firefox 3.6+ */
   	background-image: -ms-linear-gradient(135deg, white, white 50%, transparent 51%); /* IE 10+ */
   	background-image: -o-linear-gradient(135deg, white, white 50%, transparent 51%); /* Opera 11.10+ */
}

/* Shiny Layer */
#shiny-layer {
	position: absolute;
	/*top: -20%;*/
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	/*height: 140%;*/
	z-index: 500;
	background-image: -webkit-linear-gradient(-26deg, transparent, transparent 44%, rgba(255, 255, 255, 0.3) 55%, rgba(255, 255, 255, 0.3) 57%, transparent 57%); /* Safari 5.1+, Mobile Safari, Chrome 10+ */
   	background-image: -moz-linear-gradient(-26deg, transparent, transparent 44%, rgba(255, 255, 255, 0.3) 55%, rgba(255, 255, 255, 0.3) 57%, transparent 57%); /* Firefox 3.6+ */
   	background-image: -ms-linear-gradient(-26deg, transparent, transparent 44%, rgba(255, 255, 255, 0.3) 55%, rgba(255, 255, 255, 0.3) 57%, transparent 57%); /* IE 10+ */
   	background-image: -o-linear-gradient(-26deg, transparent, transparent 44%, rgba(255, 255, 255, 0.3) 55%, rgba(255, 255, 255, 0.3) 57%, transparent 57%); /* Opera 11.10+ */
   	transition: transform 0.5s linear;
	-moz-transition: -moz-transform 0.55s linear;
	-webkit-transition: -webkit-transform 0.5s linear;
	-o-transition: -o-transform 0.5s linear;
}

/* Reader Background */
#pop-up-bg {
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0px;
	top: 0px;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1;
	opacity: 0.7;
	-moz-opacity: 0.7;
}

/* Reader Error Div */
#error-wrapper {
	position: relative;
	display: block;
	vertical-align: middle;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	width: 100%;
	height: 100% !important;
	text-align: center;
	color: white;
	text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.6);
	overflow: hidden;
}

#error-title {
	font-weight: bold;
	font-size: 200%;
	width: 100% !important;
	margin-top: 40%;
}

#error-text {
	font-size: 150%;
	padding: 0 4%;
	margin-top: 3.3333333%; /*20px*/
	width: 92%;
}
.fb_edge_widget_with_comment {overflow:hidden;}
.fb_iframe_widget span {overflow:hidden;}
.fb_edge_widget_with_comment span.fb_edge_comment_widget iframe.fb_ltr {
  display: none !important;
}