/*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; }

input, select { vertical-align:middle; }
/* END RESET CSS */

/* Begin app CSS */


/* Main Wrapper */
#pop-up-wrapper {
	font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
	position: relative;
	width: 500px;
	height: 500px;
	padding: 0px;
	overflow: hidden;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	border: 1px solid #4E4E4E;
}

.pop-up-wrapper-hidden {
	opacity: 0;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter:alpha(opacity=0);
}

.pop-up-wrapper-visible {
	opacity: 1;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter:alpha(opacity=100);
}


/* Top Bar and its Children*/
#top-bar {
	position: absolute;
	display: table;
	width: 100%;
	min-width: 416px;
	max-width: 568px;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	height: 36px;
	z-index: 200;
	background-color: #C8C8C8;
	opacity: 1;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter:alpha(opacity=100);
}

.top-bar-hidden {
	top:-37px;
}

.top-bar-visible {
	top: 0px;
}

#book-title {
	line-height: 2em;
	margin-left: 20px;
	display: inline;
	font-size: 0.94em;
	color: #4C4C4C;
	font-weight: bold;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	float: left;
}

#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;
	overflow: hidden;
	width: auto;
	height: auto;
	white-space: nowrap;
	min-height: 0px;
}

.reader {
	display: inline-block;
	/*float: left;*/
	z-index: 100;
	min-height: 0px;
}


/* Next and Previous Buttons and their Children */
#next-button, #previous-button {
	opacity: 0;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter:alpha(opacity=0);
	position: absolute;
	min-width: 30px;
	min-height: 30px;
	z-index: 150;
	color: white;
}

#next-button-object, #previous-button-object {
	position: absolute;
	top: 50%;
	margin-top: -109px;
	height: 218px;
	width: 51px;
	background-color: #333333;
	opacity: 0.6;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
	filter:alpha(opacity=30);
	line-height: 6.8em;
	text-align: center;
	font-size: 2em;
	font-weight: bold;
}

#next-button-object {

	right: 0px;
	
	background-image: url('../images/arrow-next-blk-thin.png');

	background-repeat:no-repeat;
	background-position: 50% 50%;
	
}

#previous-button-object {

	
	left: 0px;
	background-image: url('../images/arrow-prev-blk-thin.png');
	background-repeat:no-repeat;
	background-position: 50% 50%;
	
	
}

/* Bottom Bar and its Children */
#bottom-bar {
	position: absolute;
	overflow: visible !important;
	display: block;
	vertical-align: middle;
	width: 100%;
	min-width: 416px;
	max-width: 568px;
	height: 34px;
	max-height: 34px;
	left: 0px;
	z-index: 200;
	opacity: 1;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter:alpha(opacity=100);
}

.bottom-bar-hidden {
	bottom: -35px;
}

.bottom-bar-visible {
	bottom: 0px;
}

.dark-gray-gradient {
	background-color: #969696;
}

.light-gray-gradient {
	background-color: #C6C6C6;
}

#buy-button, #share-button {
	position: relative;
	display: inline-block;
	height: 21px; /*To compensate for borders and padding */
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	width: 68px;
	font-size: 0.81em;
	padding: 1px 0px;
	border: solid 1px #A5A4A5;
	color: white;
	background-color: #AAAAAA;
	text-align: center;
	margin-top: 7px;
	overflow: hidden;
   	font-weight: bold;
}

#buy-button:hover, #share-button:hover {
	color: gray;
}

#buy-button{
	margin-left: 20px;
}

#share-button {
	margin-left: 10px;
}

.bevel-div {
	display: none;
}

/* facebook CSS Hack >_> */
.fb-like {
	float: right;
	margin-top: 7px;
	margin-right: 3.333%;
}

#like-container {
height:25px;
overflow:hidden;
float: right;
margin-top: 7px;/*7px;*/
margin-right: 3.333%;
overflow:hidden;
}

.fb_edge_comment_widget {
    /*margin-left: -350px;*/
    margin-top: -240px;
    z-index: 10000 !important;
}

.nub {
	display: none;
	opacity: 0;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter:alpha(opacity=0);
}

/* Top and Bottom "Active" Areas */

#top-active-area, #bottom-active-area {
	background: url('../images/b.gif');
	position: absolute;
	width: 100%;
	z-index: 175;
}

#top-active-area {
	top: 0px;
	min-height: 36px !important;
}

#bottom-active-area {
	bottom: 0px;
	min-height: 34px !important;
}

/* Share Pop-up */
#share-pop-up {
	position: absolute;
	width: 96%;
	left: 2%;
	height: 137px;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	font-size: 0.81em;
	background-color: #AAAAAA;
	text-align: center;
	margin-top: 7px;
	overflow: visible;
}

.share-pop-up-hidden {
	bottom: 43px;
	z-index: 150;
	opacity: 0;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter:alpha(opacity=0);
}

.share-pop-up-visible {
	z-index: 200;
	opacity: 1;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter:alpha(opacity=100);
}

#share-small-button, #share-large-button, #share-clipboard-button {
	position: relative;
	margin-top: 10px;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	padding: 2px 5px;
	padding-bottom: 0px;
	border: 1px solid #A5A4A5;
	color: white;
	font-weight: bold;
	height: 21px;
	width: 69px;
	font-size: 0.94em;
	display: inline-block;
}

#share-small-button {
	float: left;
	margin-left: 10px;
}

#share-large-button {
	float: left;
}

#share-script {
	position: relative;
	display: block;
	margin-top: 45px;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	padding: 0px 20px;
	padding-top: 5px;
	overflow: scroll;
	text-align: left;
	height: 60%;
	width: 100%;
	word-wrap: break-word;
}

#box-pointy-thing {
	position: absolute;
	display: none;
}

/* Shiny Layer */
#shiny-layer {
	position: absolute;
	display: none;
}

/* Reader Background */
#pop-up-bg {
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0px;
	top: 0px;
	background-color: #000000;
	z-index: -1;
	opacity: 0.4;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
	filter:alpha(opacity=40);
}

