@charset "UTF-8";
/* CSS Document
   (c) Ivimeds 2011 */

body {
	font-size:0.7em;
}


/*=================================== HEADER SCALING ============================ */

#title {
	min-height:50px;
}

#title h1{
	font-size:1.3em;
}

#subtitle {
	background-color:#555;
}

#subtitle h2 {
	clear:both;
	padding:5px;
	font-size: 1.1em;
	font-weight: normal;
}

#logo img {
	margin:2px 2px 0 0;
	max-width:100px;
	max-height:45px;
}


/*=================================== NAVIGATION STYLES ============================ */

.nav-buttons {
	height:36px;
	clear:both;
	background-color:#555;
}

.nav-buttons * {
	float:left;
	margin: 5px 0 5px 5px;
	padding:0;
	font-weight:bold;
	-webkit-border-radius:5px;
	-webkit-box-shadow: 0 2px 3px #000;
	text-shadow: 0 -1px 0 #000;
	display:-webkit-box;
	-webkit-box-orient:horizontal;
	-webkit-box-pack:center;
	-webkit-box-align:center;
	color:#fff;
	text-decoration:none;
	height: 26px;
	background: -webkit-gradient(
	linear,
	left top,
	left bottom,
	color-stop(0, rgb(0,140, 190)),
	color-stop(0.49, rgb(0,121,165)),
	color-stop(0.51, rgb(0,90,122)),
	color-stop(1, rgb(0, 60 ,82))
	);
}

.nav-buttons span {
	opacity:0.6;
	background: -webkit-gradient(
	linear,
	left bottom,
	left top,
	color-stop(0, rgb(0,0,0)),
	color-stop(1, rgb(120,120,120))
	);
}

.nav-previous-button {
	width:90px;
}

.nav-next-button {
	width:70px;
}

.nav-button {
	width:70px;
	cursor: pointer;
}

.score-button {
	width:60px;
	cursor: pointer;
}

.close-button {
	font-weight:bold;
	position:absolute;
	top:4px;
	right: 5px;
	width:50px;
	height:24px;
	margin: 6px;
	color:#fff;
	border-top:1px solid #ddd;
	text-shadow:0 -1px #000;
	display:-webkit-box;
	-webkit-box-orient:horizontal;
	-webkit-box-align:center;
	-webkit-box-pack:center;
	-webkit-box-shadow:0 2px 3px #000;
	border-radius: 5px;
	background: -webkit-gradient(
	linear,
	left top,
	left bottom,
	color-stop(0, rgb(0,140, 190)),
	color-stop(0.49, rgb(0,121,165)),
	color-stop(0.51, rgb(0,90,122)),
	color-stop(1, rgb(0, 60 ,82))
	);
	cursor: pointer;
}

#navtree, #score {
	display: none;
}

#navtree.open, #score.open {
	display: block;
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	background-color:#666;
}

#navtree.open * { /* hide all by default... */
	display: none;
	font-weight:bold;
	list-style:none;
	margin:0;
	padding:0;
}

#navtree.open>div.close-button { /* ...except for close button */
	display: -webkit-box;
}

#navtree.open .nav-chapter-ancestor { /* reveal selected chapter's direct ancestors */
	display: block;
}

#navtree.open .nav-chapter { /* reveal selected chapter */
	display: block;
}

#navtree.nav-chapter { /* reveal selected chapter if root */
	display: block;
}

#navtree.open .nav-chapter>* { /* reveal selected chapter's content list */
	display: block;
}

#navtree.nav-chapter>* { /* reveal selected chapter's content list if root */
	display: block;
}

#navtree.open .nav-chapter>*.page * { /* reveal contents of selected chapter's pages */
	display: block;
}

#navtree.open .nav-chapter>*>*.chapter-title { /* reveal subchapter titles of selected chapter */
	display: block;
}

#navtree.nav-chapter>div:nth-of-type(2) { /* add space when selected chapter is root */
	margin-top: 32px;
}

#navtree.open .chapter-title {
	padding:7px 20px 7px 17px;
	color:#fff;
	font-size: 1.1em;
	background: url('img/closedChapterIcon.png') no-repeat 97% 50%;
	background-color:#4c4c4c;
	cursor: pointer;
	border-top:solid #888 1px;
	border-bottom:solid #222 1px;
}

#navtree.open .nav-chapter-title { /* reveal selected chapter's title */
	display: block;
	border:none;
	padding:12px 40px 12px 20px;
	line-height:14px;
	font-size:1.3em;
	font-weight:bold;
	background-image: url('img/backIcon.png');
	background-repeat: no-repeat;
	background-position: 7px 52%;
	background-color:#333;
	-webkit-box-shadow:0 3px 4px rgba(0,0,0,1);
}

#navtree.open a, #navtree.open span {
	color:#fff;
	text-decoration:none;
	background:url('img/pageIcon.png') no-repeat;
	background-position:19px 50%;
	padding:8px 7px 8px 34px;
}

#navtree.open a {
	opacity:0.5;
}

#navtree.open .page {
	border-top:solid #888 1px;
	border-bottom:solid #444 1px;
}

#navtree.open ul li:first-child {
	border-top:none;
}

#navtree.open ul li.current-page {
	color:#fff;
	font-weight:bold;
	border:none;
	-webkit-box-shadow:inset 0px 0px 5px rgba(0,0,0,0.9);
	background-color:#008ec1;
}


/*================================== CONTENT STYLES ============================== */

#content, #subheader {
	display:block;
	padding: 10px 5px 0 5px;
}

#content {
	padding-top: 10px;
}

#content.closed {
	display: none;
}

footer {
	background-color:#aaa;
	clear:both;
}

figure { 
	display:-webkit-box;
	-webkit-box-orient:vertical;
	-webkit-box-pack:center;
	-webkit-box-align:center;
}

figure>*:first-child { /* img, video, object or audio */
	-webkit-box-shadow: 0px 3px 4px rgba(0,0,0,0.4);
}

figure>figcaption {
	padding-top: 10px;
}

#score {
	background: -webkit-gradient(
	linear,
	left top,
	left bottom,
	color-stop(0, rgb(40,40,40)),
	color-stop(1, rgb(90,90,90))
	);
}

#scoredetails {
	display:-webkit-box;
	-webkit-box-orient:vertical;
	-webkit-box-align:center;
	-webkit-box-pack:center;
	border:1px solid #fff;
	border-radius:4px;
	margin:50px 10px;
	color:#fff;
	background: -webkit-gradient(
	linear,
	left top,
	left bottom,
	color-stop(0, rgb(0,140, 190)),
	color-stop(0.49, rgb(0,121,165)),
	color-stop(0.51, rgb(0,90,122)),
	color-stop(1, rgb(0, 60 ,82))
	);
	height:100px;
	font-weight:bold;
	padding:10px;
	text-shadow:0 1px 1px #000;
	-webkit-box-shadow:0 2px 3px #000;
}

#score h6 {
	font-size:1.2em;
	font-style:bold;
}

#score p {
	margin-top: 5px;
}
