html {
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'IM Fell English', Arial, Helvetica, sans-serif;
}

html.splash,
html.preliminaries {
	background: #000 url(images/curtains.jpg) no-repeat center center;
	background-size: cover;
	background-attachment: fixed;
}

html.draw,
html.reading {
	background: #000 url(images/wood.jpg) no-repeat center center;
	background-size: cover;
	background-attachment: fixed;
}

a {
	color: #700;
	outline: none;
	text-decoration: none;
}

h1 {
	font-size: 2.5em;
	font-size: 2.5rem;
	line-height: 1.4;
	margin: 0 0 0.5em 0;
	margin: 0 0 0.5rem 0;
}

h2 {
	font-size: 1.5em;
	font-size: 1.5rem;
	line-height: 1.4;
	margin: 0 0 0.5em 0;
	margin: 0 0 0.5rem 0;
}

h3 {
	font-size: 1.2em;
	font-size: 1.2rem;
	line-height: 1.4;
	margin: 0 0 0.5em 0;
	margin: 0 0 0.5rem 0;
}

p {
	font-size: 1.2em;
	font-size: 1.2rem;
	line-height: 1.4;
	margin: 0 0 1.4em 0;
	margin: 0 0 1.4rem 0;
}

.logo img {
	width: 50% !important;
	height: auto;
	margin-left: 25%;
}

.page {
	width: 100%;
	max-width: 800px;
	margin: 20px auto;
	padding-top: 20px;
	border-radius: 11px;
	box-shadow: 10px 10px 50px #000;
	background: #fff url(images/parchment.jpg) no-repeat center center;
	background-size: cover;
}

.preliminaries .page {
	background-size: auto;
	background-position: top center;
	background-repeat: repeat-y;
}

.toggle-content a.sample-reading {
	cursor: -moz-zoom-in;
	cursor: -webkit-zoom-in;
	cursor: zoom-in;
}

.toggle-content a.sample-reading img {
	float: right;
	width: 25%;
	height: auto;
	margin-left: 3%;
	margin-bottom: 10px;
	border: 2px solid #000;
	box-shadow: 3px 3px 15px #000;
}

.page h1,
.page h2,
.page h3,
.page p {
	text-shadow: 0 0 9px rgba(255,255,255,0.5);
}

.splash img,
.preliminaries img {
	width: 100%;
	height: auto;
}

.splash .content,
.preliminaries .content {
	padding: 20px;
	position: relative;
}

.splash .buttons,
.preliminaries .buttons {
	margin-top: -120px;
}

.splash .buttons a,
.preliminaries .buttons a {
	display: block;
	width: 50%;
	float: left;
	margin-bottom: 50px;
}

.preliminaries .buttons a {
	float: none;
	margin-left: 25%;
}

.draw .content {
	width: 100%;
	max-width: 800px;
	margin: 20px auto;
}

.draw .card-back {
	width: 16%;
	height: 200px;
	float: left;
	margin: 0 2% 20px 2%;
	text-align: center;
}

.draw .card-back img {
	height: 100%;
	width: 100%;
	margin: 0 auto;
}

.draw .card-back .orientation-2 {
	-moz-transform: scaleX(-1);
	-o-transform: scaleX(-1);
	-webkit-transform: scaleX(-1);
	transform: scaleX(-1);
	filter: FlipH;
	-ms-filter: "FlipH";
}

.draw .card-back .orientation-3 {
	-webkit-transform: rotate(180deg);
	-moz-transform: rotate(180deg);
	-o-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	transform: rotate(180deg);
}

.draw .card-back .orientation-4 {
	-moz-transform: scaleY(-1);
	-o-transform: scaleY(-1);
	-webkit-transform: scaleY(-1);
	transform: scaleY(-1);
	filter: FlipV;
	-ms-filter: "FlipV";
}

.personae,
.script {
	padding: 20px;
}

.personae .character {
	width: 20%;
	height: 200px;
	float: left;
	text-align: center;
}

.personae .character img {
	height: 100%;
	width: auto;
	margin: 0 auto;
	max-width: 100%;
}

.personae .character a {
	cursor: -moz-zoom-in;
	cursor: -webkit-zoom-in;
	cursor: zoom-in;
}

.script .direction {
	margin: 15px 0;
	width: 90%;
	margin-left: 10%;
}

.script .character {
	width: 90%;
	margin-left: 10%;
}

.script .name.text {
	font-size: 32px;
	font-weight: 700;
	font-variant: small-caps;
}

.script img {
	width: 100%;
	height: auto;
	margin: 3px 0;
}

img.mfp-img {
	background: white;
	padding: 5px;
	margin: 40px auto;
	border-radius: 5px;
}

.reference {
	color: #700;
	padding: 0 0.2em;
	vertical-align: super;
	font-size: 0.7em;
	position: relative;
	top: 3px;
	cursor: pointer;
}

.toggle a,
.subtoggle a {
	color: inherit;
}

.toggle-content {
	padding-left: 1.5em;
}

.toggle-off,
.subtoggle-off {
	display: none;
}

.shim {
	clear: both;
}

.margin-bottom {
	margin: 0 0 1.4em 0;
	margin: 0 0 1.4rem 0;
}

.copyright {
	text-align: center;
	padding-bottom: 20px;
}

.qtip-reference {
	font-size: 14px;
	font-size: 0.9rem;
	line-height: 1.4;
	background-color: #ffecc6;
	border-color: #c3a862;
	color: #000;
}

img.float-left {
	width: auto;
	height: auto;
	float: left;
	margin-right: 20px;
	margin-bottom: 5px;
}

::selection {
	background: #000;
	color: #fff;
	text-shadow: none;
}

::-moz-selection {
	background: #000;
	color: #fff;
	text-shadow: none;
}

@media screen and (max-width: 640px) {
	.splash .buttons,
	.preliminaries .buttons {
		margin-top: -80px;
	}
	.personae .character {
		height: 150px;
	}
	.script .name {
		font-size: 24px;
	}
}

@media screen and (max-width: 480px) {
	.personae .character {
		height: 100px;
	}
	.script .direction {
		margin: 5px 0;
	}
	.script .name {
		font-size: 16px;
	}
	.script img {
		margin: 2px 0;
	}
}