html, body {
    max-height:100%; 
    padding:0; 
    margin:0;
}

body {
    background-color: #323232;
}

/* Scrollbar */
::-webkit-scrollbar { width: 15px; height: 15px;}
::-webkit-scrollbar-track-piece { 
	background-color: #666;
}
::-webkit-scrollbar-thumb { 
	background-color: #999; 
	border-radius: 10px;
}
::-webkit-scrollbar-corner { 
	background-color: black;
}

body{
  	scrollbar-face-color: #999;
  	scrollbar-3dlight-color: black;
  	scrollbar-highlight-color: #777;
  	scrollbar-shadow-color:black;
  	scrollbar-track-color: #666;
  	scrollbar-arrow-color: black;
  	scrollbar-darkshadow-color: #222;
}

#viewerContainer {
	position:absolute; 
	top:0; 
	bottom:0; 
	left:0; 
	right:0;
	padding-top:60px;
}

#headerPanel {
	width: 100%;
	height: 59px;
	background-color: #505050;
	margin-top: -60px;
	border-bottom: 1px solid black;
	position: relative;
	text-align: center;
}

#fileInfo {
	float: left;
	color: white;
	font-size: 16px;
	line-height: 60px;
	margin-left: 20px;
	height: 100%;
	vertical-align: middle;
	position: relative;
}

#fileInfo img {
	vertical-align: text-bottom;
}

.popupContainer {
	position: absolute;
	border: 4px solid black;
	border-radius: 5px;
	background-color: #505050;
	font-size: 16px;
	color: white;
	line-height: 20px;
	text-align: left;
	z-index: 10;
}

.popupContainer span {
	white-space: nowrap;
}

#fileInfoPopup {
	padding: 10px;
	left: 5px;
	top: 40px;
}

.headerButton {
	float: right;
	display: block;
	width: 60px;
	height: 100%;
	border-left: 1px solid black;
	position: relative;
}

.headerButton:hover {
	background-color: #222;
}

.buttonImg {
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
}

#downloadFileButton .buttonImg {
	margin-top: -15px;
	margin-left: -12px;
	width: 24px;
	height: 30px;
	background-image: url(/img/arrows_white.png);
	background-position: -24px 0;
}

#listFileButton {
	position: relative;
}

#listFileButton .buttonImg {
	margin-top: -15px;
	margin-left: -15px;
	width: 30px;
	height: 30px;
	background-image: url(/img/list_icon.png);
}

#fileList {
	top: 50px;
	right: 5px;
	max-height: 100px;
	_height: 100px;
	min-width: 200px;
	overflow-y: auto;
	padding: 0;
}

#fileList a, #fileList span {
	color: white;
	display: block;
	padding: 0 15px;
	white-space: nowrap;
}

#fileList span {
	color: yellow;
}

#fileList a:hover {
	background-color: #333;
}

#switchPanel {
	margin: 0 auto;
	width: 200px;
	height: 100%;
	color: white;
	font-size: 18px;
	line-height: 60px;
	vertical-align: middle;
}

#switchPanel a {
	text-decoration: none;
	font-weight: bold;
	color: white;
}

.inactiveLink {
	color: #666 !important;
	cursor: default !important;
}

#contentViewport {
	width: 100%;
	max-height: 100%;
	overflow: auto;
	position:relative;
	text-align: center;
}

#contentDiv {
	display: inline-block;
	*zoom: 1;
    *display: inline;
	text-align: center;
	user-select: none;
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: -moz-none;
    -webkit-user-select: none;
}

@media print {
  #contentDiv {
    display: none;
  }
}

.pageContainer {
	background-color: white;
	border: 1px solid black; 
    margin: 0 auto 5px;
}

.pageContainer iframe {
	border-style: none;
	width: 100%;
	height: 100%;
}

#controlPanel {
	width: 300px;
	position: fixed;
	left: 50%;
	margin-left: -150px;
	height: 50px;
	border-radius: 5px;
	background-color: #505050;
	bottom: 20px;
	text-align: center;
	z-index: 10;
}

#controlButtonsContainer {
	height: 100%;
	display: inline-block;
}

.controlButton {
	float: left;
	width: 50px;
	height: 50px;
	position: relative;
}

.controlButton:hover {
	background-color: #222;
}

#zoomOutButton .buttonImg {
	margin-top: -15px;
	margin-left: -15px;
	width: 30px;
	height: 30px;
	background-image: url(/img/zoomicons.png);
}

#zoomInButton .buttonImg {
	margin-top: -15px;
	margin-left: -15px;
	width: 30px;
	height: 30px;
	background-image: url(/img/zoomicons.png);
	background-position: 30px 0;
}

.inactiveZoomButton {
	background-color: #505050 !important;
}

#zoomInButton.inactiveZoomButton .buttonImg {
	background-position: 30px 30px !important;
}

#zoomOutButton.inactiveZoomButton .buttonImg {
	background-position: 0px 30px !important;
}

#pageUpButton {
	margin-left: 15px;
}

#pageUpButton, #pageDownButton {
	float: left;
	margin-top: 12px;
	width: 26px;
	height: 26px;
	text-align: center;
	vertical-align: middle;
	line-height: 26px;
	color: white;
	font-size: 10px;
	cursor: default;
}

.inactiveControlButton {
	color: #888 !important;
	background-color: #505050 !important;
}

#pageUpButton:hover, #pageDownButton:hover {
	background-color: #222;
}

#pageInfo {
	float: left;
	display: inline-block;
	color: white;
	line-height: 50px;
	vertical-align: middle;
	padding: 0 5px;
	font-weight: bold;
	font-size: 16px;
}

#pageNumber {
	font-size: 16px;
	width: 30px;
	text-align: right;
}

#loadingScreenContainer, #errorContainer {
	margin: 150px auto;
	text-align: center;
	width: 500px;
	font-weight: bold;
}

#loadingScreenContainer {
	color: white;
	font-size: 35px;
}

#errorMsg {
	color: red;
	font-size: 30px;
}