/* TOC */

ul.toc a {
	outline: 0 none;
}
ul.toc li.hilite a {
	color: #c00;
}
/* defaults */

div.swipe_snap > div {
	margin: 0 auto;
	background: #fff;
	overflow: hidden;
}
div.swipe_snap ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}
div.swipe_snap li + li {
	position: relative;
}
div.swipe_snap li:last-child {
	position: static;
}
div.swipe_snap li img {
	border-width: 0;
	display: block;
	opacity: 0;
}
div.swipe_snap li a {
	display: block;
	color: inherit;
	overflow: visible;
	outline: 0 none;
}
div.swipe_snap li a + a {
	position: absolute;
	top: 0;
}
div.swipe_snap li a:last-child {
	z-index: 9;
}
div.swipe_snap li > strong {
	position: absolute;
	display: block;
	height: 0;
	color: #c00;
	font-family: Georgia, serif;
	text-align: center;
	overflow: visible;
}
div.swipe_snap li span {
	display: block;
}
div.swipe_snap li span a {
	font: 32px serif;
	text-align: center;
	text-decoration: none;
	background: #f3f3f3;
	opacity: 0;
}
div.swipe_snap li.select a,
div.swipe_snap li.select img,
div.swipe_snap li.focus a:first-child,
div.swipe_snap li.focus a:first-child img {
	opacity: 1;
}
div.swipe_snap li:last-child strong + span,
div.swipe_snap li:first-child strong + span {
	opacity: 0.7;
}
div.swipe_snap ~ p.page_number {
	text-align: center;
}
/* horizontal swipe */

div.horizontal li {
	vertical-align: top;
	display: table-cell;
}
div.horizontal li img {
	max-height: 100%;
}
div.horizontal li:first-child strong {
	right: 50%;
}
div.horizontal li:last-child strong {
	left: 50%;
}
/* to display scrollbar on desktop */

div.isMouse > div {
	border: 3px solid #f6f6f6;
}
div.isMouse.scrollbar.horizontal > div {
	overflow-x: auto;
}
div.isMouse.scrollbar.vertical > div {
	overflow-y: scroll;
}
/* vertical swipe */

div.vertical {
	position: relative;
}
div.vertical li img {
	max-width: 100%;
}
div.vertical li:first-child strong {
	top: 0;
}
div.vertical li:last-child strong {
	bottom: 0;
}
div.vertical li > strong sub {
	font-size: 1em;
}
/* prefixed css3 */

div.vertical li:last-child strong {
	-o-transform:	rotate(180deg);	-ms-transform:		rotate(180deg);
	-moz-transform:	rotate(180deg);	-webkit-transform:	rotate(180deg);
	transform:	rotate(180deg);
}
@media screen {
	div.enable li.swipe_out a img,
	div.enable li.swipe_out span a,
	div.enable li.swipe_out + li.fade.select a:first-child + a img {
		-moz-transition:	opacity 0.2s 0.7s;
		-webkit-transition:	opacity 0.2s 0.7s;	transition:	opacity 0.2s 0.7s;
	}
	div.enable li.select.fade a + a + a:last-child img,
	div.enable li.swipe_out + li.fade.focus a:first-child + a img {
		-moz-transition:	opacity 0.3s 0.9s;
		-webkit-transition:	opacity 0.3s 0.9s;	transition:	opacity 0.3s 0.9s;
	}
	div.enable li.select.fade span a,
	div.enable li.select.fade a:first-child + a img,
	div.enable li.select.fade.swipe_out a:first-child + a img,
	div.enable li.swipe_out + li.select.fade span a {
		-moz-transition:	opacity 0.5s;
		-webkit-transition:	opacity 0.5s;		transition:	opacity 0.5s;
	}
	li.select a + a + a:last-child img,
	li.swipe_out.select a + a + a:last-child img,
	li.swipe_out + li.select a:first-child + a img,
	li.swipe_out a img, li.swipe_out span a {
		-moz-transition:	opacity 0s 0.7s;
		-webkit-transition:	opacity 0s 0.7s;	transition:	opacity 0s 0.7s;
	}
	li.focus + li.swipe_out a:last-child img,
	li.swipe_out.select a:first-child + a img,
	li.swipe_out.select a:last-child img,
	li.swipe_out + li.select span a,
	li.swipe_out + li.focus span a,

/* standardize rewind */

	li.focus a:last-child img,
	li.swipe_out.focus span a,
	li.swipe_out.select span a,
	li.swipe_out.select + li span a,
	li.swipe_out.select + li.focus span a,
	li.swipe_out + li.select + li a + a:last-child img,
	li.select + li.swipe_out a img,
	div.enable li.swipe_out.select a:first-child img,
	div.enable li.swipe_out.focus a:first-child img,
	div.enable li.swipe_out.select + li span a,
	div.enable li.swipe_out.select span a,
	div.enable li.swipe_out.focus span a {
		-moz-transition:	opacity 0s;
		-webkit-transition:	opacity 0s;	transition:	opacity 0s;
	}
}