body {
	margin: 0px;
	padding: 0px;
	overflow: hidden;
}
#wrapper {
	background: #dfdfdf;
}
#replicaPageView {
	overflow: hidden;
}
#replicaPageView #header {
	z-index: 2000;
	width: 100%;
}
#pageBack, #pageForward {
	z-index: 1900;
}
.invisible {
	visibility: hidden;
}
.nodisplay {
	display: none;
}
#gestureCatcher {
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: 2900;
}
#zoomHolder {
	position: absolute;
	height: 100%;
	width: 100%;
	overflow: auto;
	z-index: 3000;
	display: none;
	background-color: rgba(0,0,0,0);
}
#zoomHolder.active {
	display: block;
}
#zoomHolder img.lowRes,
#zoomHolder img.highRes {
	position: absolute;
	display: block;
	width: 100%;
	max-width: 100%;
	max-height: none;
	z-index: 300;
}
#zoomHolder img.lowRes {
	z-index: 100;
}
#zoomHolder img.highRes {
	z-index: 200;
}
#zoomCloser {
	position: fixed;
	bottom: 0px;
	right: 0px;
	padding: 15px;
	opacity: 0.8;
	color: #BFBFBF;
	font-family: sans-serif;
	font-weight: bold;
	font-size: 50px;
	z-index: 10000;
	display:none;
}
#zoomCloser.active {
	display: block;
}
#replica_swipeview {
	z-index: 500;
}

.replica-swipeview-wrapper {
	padding-top: 50px;
	max-height: none;
	box-sizing: border-box;
	-webkit-overflow-scrolling: touch;
}

.floatingCirclesG {
	position: absolute !important;
	margin-left: auto;
	margin-right: auto;
	left:0;
	right:0;
	top: 30%;
}
/* hide circles in replica view - don't really work correctly... */
#replicaPageView .floatingCirclesG {
	display: none;
}

/* mobile webreader replica view */
#replica_swipeview #swipeview-slider > div,
#replica_swipeview #swipeview-slider .pages,
#replica_swipeview #swipeview-slider .pages .page1,
#replica_swipeview #swipeview-slider .pages .page2 {
	display: inline-block;
	text-align: center;
	font-size: 0;	/* handle inline-block side-effects */
	width: 100%;
	height: 100%;
}
#replica_swipeview #swipeview-slider > div {
	overflow: auto;
}
#replica_swipeview #swipeview-slider .pages {
	overflow: hidden;
}
#replica_swipeview #swipeview-slider .pages .page1,
#replica_swipeview #swipeview-slider .pages .page2 {
	position: relative;
	overflow: auto;
}
/* only set overflow:hidden in desktop view */
#replicaPageView.desktop-view #replica_swipeview #swipeview-slider .pages .page1,
#replicaPageView.desktop-view #replica_swipeview #swipeview-slider .pages .page2 {
	overflow: hidden;
}

#replica_swipeview #swipeview-slider img.page-image {
	width: 100%;
	height: auto;
	max-width: none;
	max-height: none;
	overflow: hidden;
	display: inline-block;
}
#replica_swipeview.orientation-portrait #swipeview-slider img.page-image {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
}
#replica_swipeview .swipeview-loading img.page-image {
	display: none;
}
#replicaPageView[data-displayed-pages='2'] #swipeview-slider .pages .page1,
#replicaPageView[data-displayed-pages='2'] #swipeview-slider .pages .page2 {
	width: 50%;
}
#replicaPageView[data-displayed-pages='2'] #swipeview-slider .pages .page1 {
	text-align: right;
}
#replicaPageView[data-displayed-pages='2'] #swipeview-slider .pages .page2 {
	text-align: left;
}

#replicaPageView[data-displayed-pages='2'] #swipeview-slider > div[data-page-position='first-single'] .pages .page2,
#replicaPageView[data-displayed-pages='2'] #swipeview-slider > div[data-page-position='last-single'] .pages .page1 {
	text-align: center;
	width: 100%;
}
#replicaPageView[data-displayed-pages='2'] #swipeview-slider > div[data-page-position='first-single'] .pages .page1,
#replicaPageView[data-displayed-pages='2'] #swipeview-slider > div[data-page-position='last-single'] .pages .page2 {
	display: none;
}

#zoomHolder .popupWrapper,
#replica_swipeview #swipeview-slider .pages .popupWrapper {
	position: absolute;
	z-index: 500;
}
#zoomHolder .popupWrapper .popup,
#replica_swipeview #swipeview-slider .pages .popupWrapper .popup {
	width: 100%;
	height: 100%;
}
#zoomHolder .popupWrapper img.popup-close-button,
#replica_swipeview #swipeview-slider .pages .popupWrapper img.popup-close-button {
	position: absolute;
	top: 0px;
	right: 0px;
	display: block;
	max-width: none;
	max-height: none;
}
#replica_swipeview #swipeview-slider .pages .popupWrapper .popup.linked {
	cursor: pointer;
}

#replicaPageView.permanent-menu #replica_swipeview,
#replicaPageView.permanent-menu #pageForward {
	margin-right: 320px;	/* value taken from #replicaTOC width */
}

#replicaPageView #wrapper {
	width: 100%;
	height: auto;
}
#replicaPageView #replicaTOCList {
	padding-bottom: 60px;
	overflow-y: auto;
}

#replicaTOC #searchResults {
	top: 50px;
}
#replicaTOC #searchResults .search-entry {
	cursor: pointer;
	overflow-y: hidden;
}
#replicaTOC #searchResults .search-entry.small {
	padding: 0px;
	height: 110px;
}

#replicaTOC #searchResults .search-entry .search-entry-contents,
#replicaTOC #searchResults .search-entry .search-entry-image {
	overflow: hidden;
}
#replicaTOC #searchResults .search-entry .search-entry-image {
	float: right;
	max-width: 25%;
	height: 90px;
	padding: 3px 0px 3px 8px;
}
#replicaTOC #searchResults .search-entry .search-entry-contents {
	height: 95px;
	margin: 8px 0px 8px 8px;
	overflow: hidden
}
#replicaTOC #searchResults .search-entry .search-entry-contents .search-entry-title .seach-entry-doc-title {
	font-family: 'Helvetica Neue', 'Tahoma', 'Segoe UI', 'Calibri', Helvetica, sans-serif;
	font-size: 16px;
	color: #000000;
	font-weight: normal;
	line-height: 19px;
}
#replicaTOC #searchResults .search-entry .search-entry-contents .search-entry-details{
	font-family: HelveticaNeue-Light, 'Helvetica Neue', 'Tahoma', 'Segoe UI', 'Calibri', Helvetica, sans-serif;
	font-size: 14px;
	color: #333333;
	line-height: 19px;
	margin-top: 2px;
	font-weight: normal;
}

#replicaTOC #tocSearch {
	text-align: left;
	overflow: hidden;
}
#replicaTOC #searchCurtain {
	top: 50px;
}

#replicaPageView.showLinks #footer #showLinksButton {
	background-color: #e6e6e6;
}

/* styles for overlay container block on a page (all links/popups contained in a block) */
/* height and width defined on overlay-container creation in js */
#replicaPageView .overlay-container,
#zoomHolder .overlay-container {
	position: absolute;
	z-index: 300;
	left: 0;
	top: 0;
}
/* height and width defined on link creation in js */
#replicaPageView .page-link-block,
#zoomHolder .page-link-block {
	position: absolute;
	display: block;
	cursor: pointer;
}
#zoomHolder .page-link-block a.page-link,
#replicaPageView .page-link-block a.page-link {
	display: block;
	height: 100%;
	width: 100%;
}
/* link highlight; used for "flashing" links on page load */
#replicaPageView .page-link-block a.page-link.link-highlight,
#zoomHolder .page-link-block a.page-link.link-highlight {
	background-color: #ffff00;
	opacity: 0.3;
}
/* don't display underline on mobile zoom; may be turned on for desktop (see comments at bottom of file) */
#zoomHolder .page-link-block .page-link-underline,
#replicaPageView .page-link-block .page-link-underline {
	display: none;
}

/* default for mobile */
#replicaPageView #footer,
#replicaPageView #leaderboardAdBlock,
#replicaPageView .leaderboard-ad,
#replicaPageView .toc-ad {
	display: none;
}
/* Display options for larger screen size */
@media screen and (min-width: 1025px) {
	#replica_swipeview #swipeview-slider img.page-image {
		height: 100%;
	}

	#mobileWebreaderMenuFooter {
		display: block;
		z-index: 2100;
		bottom: 0;
	}

	#replicaPageView #pageForward i.swipeRight,
	#replicaPageView #pageBack i.swipeLeft {
		background: rgba(0, 0, 0, 0.3) none repeat scroll 0 0;
		color: #fff;
		cursor: pointer;
		display: block;
		font-size: 48px;
		height: 48px;
		line-height: 50px;
		overflow: hidden;
		padding: 4px 2px 0;
		position: absolute;
		top: 50%;
		width: 30px;
		background-clip: padding-box;
	}
	#replicaPageView #pageForward i.swipeRight {
		border-radius: 5px 0 0 5px;
		float: right;
		right: 0;
	}
	#replicaPageView #pageBack i.swipeLeft {
		border-radius: 0 5px 5px 0;
		float: left;
		left: 0;
	}
	#replicaPageView #pageForward .horizontalSwipeArrow,
	#replicaPageView #pageBack .horizontalSwipeArrow {
		display: none !important;	/* override javascript fadein/fadeout */
	}

	#replicaPageView #wrapper {
		width: 100%;
		height: 100vh;
	}
	#replicaPageView #footer {
		display: block;
		position: absolute;
		bottom: 0px;
		left: 0px;
		right: 0px;
		z-index: 2000;
		height: 48px;
		width: 100%;
		border-top: 1px solid #CCCCCC;
		background-color: #FFFFFF;
	}

	#replicaPageView #footer #page-display-buttons {
		position: absolute;
		top: 9px;
		right: 320px;	/* value taken from #replicaTOC width */
	}

	#replicaPageView #footer #replica-search-wrapper {
		display: inline-block;
		position: relative;
		padding: 2px 6px;
		margin-right: 10px;
		background-color: #FFFFFF;
		color: #4679cc;
		border: none;
		font-size: 14px;
		text-align: center;
		border-radius: 4px;
		-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
		background-clip: padding-box;
		cursor: pointer;
	}
	#replicaPageView #footer #replica-search-wrapper #replica-search {
		font-size: 14px;
	}

	#replicaPageView #footer #showLinksButton {
		display: inline-block;
		position: relative;
		padding: 2px 6px;
		margin-right: 10px;
		background-color: #FFFFFF;
		color: #4679cc;
		border: none;
		font-size: 20px;
		text-align: center;
		border-radius: 4px;
		-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
		background-clip: padding-box;
		cursor: pointer;
	}
	#replicaPageView #footer #showLinksButton i:after {
		font-family: 'Helvetica Neue', 'Tahoma', 'Segoe UI', 'Calibri', Helvetica, sans-serif;
		font-size: 14px;
		content: "Show Links";
	}

	#replicaPageView #footer #zoomPageControl {
		display: inline-block;
		text-align: center;
		vertical-align: top;
		-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
		background-clip: padding-box;
		cursor: pointer;
		margin-right: 10px;
		border: 1px solid #ccccff;
		padding: 2px 4px;
		border-radius: 2px;
	}
	#replicaPageView #footer #zoomPageControl .decreaseZoom,
	#replicaPageView #footer #zoomPageControl .increaseZoom {
		display: inline-block;
		background-color: #FFFFFF;
		color: #4679cc;
		font-family: 'Helvetica Neue', 'Tahoma', 'Segoe UI', 'Calibri', Helvetica, sans-serif;
		font-size: 18px;
		border: 1px solid #4679cc;
		border-radius: 1px;
		height: 15px;
		width: 15px;
		line-height: 13px;
		margin: 0px 3px;
		text-align: center;
		vertical-align: middle;
	}
	/* explicitly set height/width/margin/padding for IE support */
	#replicaPageView #footer #zoomPageControl .zoomPageSlider {
		display: inline-block;
		vertical-align: middle;
		width: 120px;
		height: 21px;
		margin: 2px;
		padding: 0px;
	}

	#replicaPageView.showLinks #footer #showLinksButton {
		background-color: #e6e6e6;
	}

	#replicaPageView a.page-link {
		cursor: pointer;
	}
	#replicaPageView.showLinks a.page-link,
	#replicaPageView a.page-link:hover {
		background-color: #ffff00;
		opacity: 0.3;
	}

	#replicaPageView #pageButton {
		display: inline-block;
	}

	#replicaPageView #replicaTOC {
		top: 49px;
		bottom: 49px;
		margin: 0px auto;
	}
	#replicaPageView #replicaTOC #contentsWrapper {
	}
	#replicaPageView #replicaTOC .pdfDownload {
		display: block;
		width: auto;
		margin: 8px;
		border-radius: 5px;
	}
	#replicaPageView #replicaTOCList {
		position: absolute;
		left: 0px;
		right: 0px;
		top: 100px;
		bottom: 0px;
		padding: 0px 3%;
		width: 100%;
	}
	#replicaPageView #replicaTOCList.toc-ad-display {
		margin-bottom: 260px;	/* default space for ad */
	}

	#replicaPageView #leaderboardAdBlock {
		position: fixed;
		top: 50px;
		width: 100%;
		height: 90px;  /* default height of leaderboard ad */
		padding: 1px 0px;
		background-color: transparent;
	}
	#replicaPageView .leaderboard-ad {
		position: relative;
		display: block;
		margin: 0 auto;
		padding: 0;
		/* default width/height of ad */
		width: 728px;
		height: 90px;
	}

	#replicaPageView .toc-ad {
		position: absolute;
		display: block;
		bottom: 0px;
		/* default width/height of ad: 300x250 */
		width: 100%; /* have iframe fit width of toc; ad will be centered in iframe */
		height: 250px;
	}

	/* by default, turned off; see comments at bottom of file to turn on in custom */
	#replicaPageView .page-link-block .page-link-underline {
		display: none;
		border-bottom: 1px solid #0000FF; /* default, 1px solid when turned on; color overridden by issue editor setting */
	}

	#replica_swipeview #swipeview-slider > div {
		visibility: hidden;
	}
	#replica_swipeview #swipeview-slider > div.swipeview-active {
		visibility: visible;
	}


}


/*
	To turn on link underline for desktop, (reading underline color from issue editor),
	copy the following lines to one of:
		<ticket_directory>/templates/styles/article_swipeview_custom.less
		<collection_directory>/metadata/templates/styles/article_swipeview_custom.less

@media screen and (min-width: 1025px) {
	#replicaPageView .page-link-block .page-link-underline {
		display: block;
	}
}

*/
