html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

.epapyrus-pageContainer {
	margin: 5px auto 5px auto;
	position: relative;
	background-clip: content-box;
	box-sizing: content-box;
}

.epapyrus-pageContainer:first-child {
	margin-top: 0px;
} 

.epapyrus-pageContainer:last-child {
	margin-bottom: 0px;
} 

.epapyrus-pageContainer-ebook {
	position: relative;
	background-clip: content-box;
	box-sizing: content-box;
}


div.epapyrus-page {
	display: inline-block;
	position: relative;
	background-color: white;
	vertical-align: middle;
}

div.epapyrus-page-ebook {
	position: relative;
	background-color: white;
	vertical-align: middle;
}

div.epapyrus-pageDivider {
	display: inline-block;
	width: 5px;
	background-color: #929292;
	height: 100%;
	vertical-align: middle;
}

@-moz-document url-prefix() {
	.epapyrus-text-reflow {
		width: 100%;
		height: 100%;
		resize: none;
		font-size: 20px;
		position: absolute;
		left: 0px;
	}
}
	
.epapyrus-text-reflow {
	width: 100%;
	height: 100%;
	resize: none;
	font-size: 20px;
}

#viewer .epapyrus-pageContainer .epapyrus-page canvas {
	position: absolute;
	left: 0px;
	top: 0px;
}

#viewer .epapyrus-pageContainer .epapyrus-page .epapyrus-annotation {
	position: absolute;
	left: 0px;
	top: 0px;
}

#viewer .epapyrus-pageContainer-ebook .epapyrus-page-ebook canvas {
	position: absolute;
	left: 0px;
	top: 0px;
}

#viewer .epapyrus-pageContainer-ebook .epapyrus-page-ebook .epapyrus-annotation {
	position: absolute;
	left: 0px;
	top: 0px;
}

#viewer .epapyrus-pageContainer-ebook .epapyrus-page-ebook .epapyrus-annotation .epapyrus-annot{
	display: none;
}
#viewer .epapyrus-pageContainer .epapyrus-page .epapyrus-canvas-svg {
	position: absolute;
	left: 0px;
	top: 0px;
}

div#epapyrus-rubberband {
	position: absolute;
	border: 2px dashed blue;
	cursor: crosshair;
	display: none;
}

.handtool-grab {
	cursor: url("../images/hand.gif"), move !important;
	cursor: -webkit-grab !important;
	cursor: -moz-grab !important;
	cursor: grab !important;
}

.handtool-grabbing {
	cursor: url("../images/hand.gif"), move !important;
	cursor: -webkit-grabbing !important;
	cursor: -moz-grabbing !important;
	cursor: grabbing !important;
}

.text-select {
	cursor : text;
}

div.epapyrus-print-area {
	display: none;
	position: absolute;
	top : 0px;
	left : 0px;
}
.fontSVG *{
	-webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.epapyrus-annot {
	cursor: pointer;
}
.epapyrus-pointer *{
	cursor: pointer !important;
}

.epapyrus-text-layer {
	cursor: text;
	color: transparent;
	white-space: pre;
	z-index: 6;
	-ms-transform-origin: 0% 0%;
	-webkit-transform-origin: 0% 0%;
	transform-origin: 0% 0%;
	line-height: 1;
}

.epapyrus-hyperlink {
	-webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.epapyrus-text-layer::selection {
	background: rgba(0,0,255, 0.3);
}
.epapyrus-text-layer::-moz-selection {
	background: rgba(0,0,255, 0.3);
}

.epapyrus-link-tool {
	border: 1px dashed #ff0000;
	position: absolute;
}

@page {
	size: portrait;
	margin: 0mm;
}
	
@media print {
	body * {
		display: none;
		background: transparent none;
	}
	div.epapyrus-print-area {
		display: block;
		page-break-after: always;
	}
	div.epapyrus-print-area div.epapyrus-print-page {
		display: block;
		width: 210mm;
		height: 297mm;
		line-height: 297mm;
		margin-left: 4mm;
		margin-right: 4mm;
		margin-top: 6mm;
		text-align: center;
	}
	div.epapyrus-print-area div.epapyrus-print-page img {
		display: block;
		vertical-align: middle;
	}

}

@-moz-document url-prefix() { 
	@media print {
		body * {
			display: none;
			background: transparent none;
		}
		div.epapyrus-print-area {
			display: block;
			page-break-after: always;
			margin: 0mm;
			padding: 0mm;
		}
		div.epapyrus-print-area div.epapyrus-print-page {
			display: block;
			width: 210mm;
			height: 297mm;
			line-height: 297mm;
			margin-left: 0mm;
			margin-right: 0mm;
			margin-top: 0mm;
		}
		div.epapyrus-print-area div.epapyrus-print-page * {
			width: 100%;
			vertical-align: middle;
		}
	}
}
