/* Main */

.main-content {
	position:relative;
}

.main-content .page img, #previous-next {
	width:100%;
	height:auto;
	max-width:500px; /* Dynamic; based on width of image file */
}

.main-content .page {
	display:none;
	text-align:center;
	position:relative;
	width:auto;
}

.document-title {
	font-family:'dejavu_sansbold', arial, sans-serif;
	line-height:1.5em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.document-title:hover {
	white-space:normal;
	overflow: visible;
}

#pages {
	-webkit-box-shadow: 7px 7px 7px -4px rgba(0,0,0,0.62);
	-moz-box-shadow: 7px 7px 7px -4px rgba(0,0,0,0.62);
	box-shadow: 7px 7px 7px -4px rgba(0,0,0,0.62);
}

#page-viewport {
	width:auto;
	max-width:500px;
	margin:0 auto;
	z-index:2;
	line-height:0;
}

/* Page dropdown */

#page-dropdown-container {
	float:right;
	display:none;
}

#page-dropdown, #page-dropdown option {
	padding:0 2px;
}

/* Previous and Next */

#previous-next {
	margin:5px auto 0 auto;
	display:none; /* Shown by script if needed */
}

#previous, #next {
	width:49%;
	display:inline-block;
	font-weight:bold;
	vertical-align:top;
	cursor:pointer;
}

#previous {
	text-align:left;
}

#next {
	text-align:right;
}

/* Progress */

#progress-container {
	position:absolute;
	top:50%;
	left:50%;
	background-color:black;
	padding:10px;
	border:1px solid white;
	width:100px;
	transform: translate(-50%, -50%);
	z-index:10;
	color:white;
	text-align:center;
}

#progress-container img {
	margin-right:4px;
	opacity:.8;
}

/* Caption/About */

#about-dialog {
	display:none;
	position:absolute;
	width:280px;
	height:280px;
	top: 50%;
	left: 50%;
	margin-left:-151px;
	margin-top:-140px;
	background-color:#fff;
	z-index:3;
	color:#000;
	font-size:14px;
	padding:10px;
	border-radius:5px;
	border:1px solid #666;
}

#about-dialog a:hover, #about-dialog a:active {
	color:#ED7140;
}

#about-dialog h1 {
	font-size:20px;
	text-align:center;
	margin-bottom:10px;
}

#about-dialog .disclaimer {
	margin-top:10px;
	font-size:11px;
}

#about-close {
	position:absolute;
	bottom:10px;
	left:120px;
	text-align:center;
}

#about-close a, #about-close a:hover, #about-close a:active {
	color:#000;
	text-decoration:none;
}

/* Page Error */
		
#page-error {
	color:#d21;
	font-size:14px;
	font-family:'Arial', sans-serif;
	font-weight:bold;
	display:none;
	line-height:200px;
}

#page-error a {
	color:#d21;
}

/* Footer */

.footer {
	text-align:center;
	font-family:'Arial', sans-serif;
	font-size:12px;
}