html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}

html {
	background: #f8f8f8;
}

/* Loading Screen */
#LoadingScreen {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: #666;
	z-index: 99999;
}

#LoadingScreenContent {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#LoadingLogo {
	width: 500px;
	height: 588px;
	text-align: center;
	margin: 0 auto 100px auto;
}

#LoadingText {
	font-family: Arial, Verdana, sans-serif;
	font-weight: 600;
	color: #e6e5e4;
	font-size: 30px;
	text-align: center;
	margin-bottom: 10px;
}

#ProgressBar {
	width: 500px;
	max-width: 90%;
	height: 20px;
	border: solid 2px #e6e5e4;
	background: #999;
	border-radius: 3px;
	margin: 0 auto;
}

#Progress {
	width: 0;
	height: 20px;
	background: #1a2742;
}

/* Actual Book */
#Wrapper {
	width: 100%;
	height: 100%;
	max-width: 2000px;
	max-height: 1235px;
	margin: 0 auto;
	display: table;
	overflow: hidden;
	-moz-box-shadow: 0 0 10px #000;
	-webkit-box-shadow: 0 0 10px #000;
	box-shadow: 0 0 10px #000;
}

#LeftCol {
	display: table-cell;
	width: 21.45%;
	background: url(../images/toc-bg.jpg) 0 0 no-repeat;
	margin: 0;
	padding: 0;
	vertical-align: top;
	position: relative;
}

#TOC {
	position: absolute;
	width: auto;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 50px 20px 20px 40px;
	overflow-y: auto;
	scrollbar-color: #244080 #f9fcfb;
	scrollbar-width: thin;
	/* border-right: solid 1px #eee; */
}

#TOC #Logo {
	margin-bottom: 20px;
	padding-right: 50px;
	text-align: center;
}

#TOC #Logo img {
	max-width: 100%;
}

#TOC .Header {
	margin-bottom: 10px;
}

#TOC .Header a {
	font-family: Arial, Verdana, sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	color: #244080;
	font-size: 25px;
	text-decoration: none;
}

#TOC .Subhead {
	margin-bottom: 9px;
}

#TOC .Subhead a {
	font-family: Arial, Verdana, sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	color: #244080;
	font-size: 20px;
	text-decoration: none;
}

#TOC .Page {
	margin-left: 24px;
	margin-bottom: 8px;
}

#TOC .Page a {
	font-family: Arial, Verdana, sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	color: #6c6c6c;
	font-size: 14px;
	text-decoration: none;
}

#TOC .Header a:hover,
#TOC .Subhead a:hover,
#TOC .Page a:hover {
	opacity: 0.7;
}

#TOC .LastPage {
	margin-bottom: 12px;
}

#RightCol {
	display: table-cell;
	width: 78.55%;
	margin: 0;
	padding: 0;
	background: #cbccce;
}

#Book {
	width: auto;
	min-height: 74.82%;
	margin: 0;
	padding: 0;
	font-size: 0;
	z-index: 1;
	position: relative;
}

#BookContents {
	position: relative;
	width: 100%;
	height: 100%;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

#Book img {
	width: 100%;
	height: auto;
}

#Book .flickity-prev-next-button {
	width: 30px;
	height: 30px;
	box-shadow: 0 0 0 1px #244080;
	background: #fff;
	bottom: 10px;
}

#Book .flickity-button-icon {
	fill: #244080;
}

#Book .flickity-button:focus {
	box-shadow: 0 0 0 3px #244080;
}

#BookZoom {
	position: absolute;
	bottom: 20px;
	left: 50%;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
	z-index: 2;
}

#BookZoom a {
	font-family: Arial, Verdana, sans-serif;
	font-size: 14px;
	color: #fff;
	text-decoration: none;
	padding: 10px 15px;
	border-radius: 5px;
	background: rgba(0, 0, 0, .5);
}

#BookZoom a:hover {
	opacity: 0.7;
}

#Thumbnails {
	width: auto;
	min-height: 25.18%;
	background: #244080;
	margin: 0;
	position: relative;
}

#ThumbnailsContent {
	position: absolute;
	width: calc(100% - 140px);
	height: 100%;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 0 70px;
}

#Thumbnails .Thumb-cell {
	padding: 20px 8px 0 8px;
	width: calc(33.33333% - 16px);
}

#Thumbnails .Thumb-cell img {
	max-width: 100%;
	max-height: 100%;
	-moz-box-shadow: 0 0 5px #666;
	-webkit-box-shadow: 0 0 5px #666;
	box-shadow: 0 0 5px #666;
}

#Thumbnails .flickity-prev-next-button {
	width: 40px;
	height: 40px;
	box-shadow: 0 0 0 1px #244080;
	background: #fff;
	top: 50%;
	transform: translateY(-50%);
}

#Thumbnails .flickity-button-icon {
	fill: #244080;
}

#Thumbnails .flickity-button:focus {
	box-shadow: 0 0 0 3px #244080;
}

#Thumbnails .flickity-viewport {
	height: 100% !important;
}

@media only screen and (max-width: 1850px) {
	#TOC #Logo {
		margin-bottom: 20px;
	}

	#TOC {
		padding: 40px 10px 10px 30px;
	}

	#TOC .Header {
		margin-bottom: 8px;
	}

	#TOC .Header a {
		font-size: 22px;
	}

	#TOC .Subhead {
		margin-bottom: 8px;
	}

	#TOC .Subhead a {
		font-size: 18px;
	}

	#TOC .Page {
		margin-left: 16px;
		margin-bottom: 7px;
	}

	#TOC .LastPage {
		margin-bottom: 11px;
	}

	#TOC .Page a {
		font-size: 13px;
	}
}

@media only screen and (max-width: 1650px) {
	#TOC #Logo {
		margin-bottom: 15px;
	}

	#TOC {
		padding: 30px 10px 10px 20px;
	}

	#TOC .Header a {
		font-size: 20px;
	}

	#TOC .Subhead a {
		font-size: 16px;
	}

	#TOC .Page a {
		font-size: 12px;
	}
}

@media only screen and (max-width: 1350px) {
	#BookZoom a {
		font-size: 12px;
		padding: 8px 12px;
		border-radius: 3px;
	}
}

@media only screen and (max-width: 1400px) {
	#TOC #Logo {
		margin-bottom: 10px;
		padding-right: 20px;
	}

	#TOC #Logo img {
		width: 90%;
	}

	#TOC {
		padding: 30px 5px 5px 20px;
	}

	#TOC .Header {
		margin-bottom: 7px;
	}

	#TOC .Header a {
		font-size: 18px;
	}

	#TOC .Subhead {
		margin-bottom: 7px;
	}

	#TOC .Subhead a {
		font-size: 15px;
	}

	#TOC .Page {
		margin-left: 12px;
		margin-bottom: 5px;
	}

	#TOC .LastPage {
		margin-bottom: 10px;
	}

	#TOC .Page a {
		font-size: 11px;
	}

	#Book .flickity-prev-next-button {
		width: 20px;
		height: 20px;
	}

	#Thumbnails .flickity-prev-next-button {
		width: 30px;
		height: 30px;
	}

	.flickity-prev-next-button.previous {
		left: 13px !important;
	}

	.flickity-prev-next-button.next {
		right: 13px !important;
	}

	#ThumbnailsContent {
		width: calc(100% - 100px);
		padding: 0 50px;
	}
}

@media only screen and (max-width: 1200px) {
	#BookZoom a {
		padding: 6px 10px;
	}

	#TOC #Logo {
		margin-bottom: 10px;
		padding-right: 10px;
	}

	#TOC #Logo img {
		width: 90%;
	}

	#TOC {
		padding: 20px 5px 10px 10px;
	}

	#TOC .Header {
		margin-bottom: 6px;
	}

	#TOC .Header a {
		font-size: 16px;
	}

	#TOC .Subhead {
		margin-bottom: 6px;
	}

	#TOC .Subhead a {
		font-size: 14px;
	}

	#TOC .Page {
		margin-left: 10px;
		margin-bottom: 5px;
	}

	#TOC .LastPage {
		margin-bottom: 8px;
	}

	#TOC .Page a {
		font-size: 10px;
	}
}

@media only screen and (max-width: 1000px) {
	#LeftCol,
	#Thumbnails {
		display: none;
	}

	#Book {
		min-height: 100%;
	}
}