body {
	font-family: 'Helvetica Neue', Helvetica, sans-serif;
	font-size: 18px;
	color: #555;
	margin: 0px;
	padding: 0px;
	background: url('../resources/bg.png');
	background-size: 14px 14px;
}

.color1 {
	color: rgb(28,42,117);
}
.bgcolor1 {
	background: rgb(28,42,117);
}
.color2 {
	color: rgb(234, 32, 53);
}
.bgcolor2 {
	background: rgb(234, 32, 53);
}

header, #tabletNavHeader {
	/* proper full height is 45px */

	box-shadow: 0px 0px 5px #000;
	/*
	background: rgb(235,236,237);
	border-bottom: 1px solid #aaa;
	height: 40px;
	border-top: 1px solid white;
	*/
	border-bottom: 1px solid #000;
	background: url('../resources/header.png') repeat-x;
	background-size: 44px 37px;
	padding: 5px 0px;
	height: 27px;
	z-index: 1;
	position: fixed;
	top:0px;
	text-align: center;
}
header {
	width: 100%;
}
header img {
	max-height: 30px;
	margin: 0px auto;
	display: block;
}
#headerLabel, #guideHeaderLabel {
	font-size: 20px;
	font-weight: bold;
	color: white;
	text-shadow: -1px 1px 3px black;
	overflow: hidden;
}

#menuButton {
	position: absolute;
	top: 4px;
	right: 4px;
	padding: 5px 7px 3px 7px;
	background: rgb(229,43,67);
	border-radius: 5px;
	color: white;
	box-shadow: inset 0px 1px 2px rgba(0,0,0,0.5), 0px 1px 0px rgba(255,255,255,0.6);
	font-size: 15px;
}

nav {
	top: 38px;
	position: fixed;
	left: 0px;
	right: 0px;
	text-align: center;

	background: rgb(83,197, 239) url('../resources/menu-bg.png');
	background-size: 14px 14px;

	box-shadow: 0px 2px 5px rgba(0,0,0,0.5);
	z-index: 2;

}
nav > * {
	color: white;
	text-shadow: 0px 0px 5px black;
	display: inline-block;
	width: 95px;
	vertical-align: top;
	text-align: center;
	padding: 2px;
	margin: 1px 0px 2px;
	border-radius: 5px;
	font-size: 17px;
}
nav img {
	height: 60px;
	display: block;
	margin: 0 auto;
}
nav a, header a {
	text-decoration: none;
}
nav .selected {
	background: rgba(255,255,255,0.3);
}
#backButton, #guideBackButton {
	position: absolute;
	top: 4px;
	left: 4px;
	background: url('../resources/backButton.png') no-repeat;
	background-size: 100% 29px;
	height: 29px;
	color: white;
	font-size: 13px;
	padding: 7px 5px 0px 10px;
	min-width: 50px;
}
.button-left, .button-mid, .button-right {
	display: inline-block;
	height: 30px;
	vertical-align: top;
}
.button-left {
	background: url('../resources/button-left.png') no-repeat top left;
	width: 13px;
}
.button-mid {
	background: url('../resources/button-mid.png');
	font-family: Helvetica;
	font-size: 12px;
	line-height: 30px;
	font-weight: bold;
	/*
	color: white;
	text-shadow: 0px -1px 1px rgba(0,0,0,0.5);
	*/
	color: #555;
	text-shadow: 0px 1px 1px white;
	padding: 0px 7px 0px 4px;
	height: 30px;

}
.button-right {
	background: url('../resources/button-right.png') no-repeat top left;
	width: 5px;
}


#navWrapper {
	position: fixed;
	top: 38px;
	bottom: 0px;
	width: 100%;
	overflow: hidden;
	/*
	background: #ccc;
	border: 1px solid red;
	*/
}

#tabsWrapper {
	background: rgb(245,246,247);
}

/* used to embed tables, diagrams, etc, that need to be shown fullscreen*/
.showFullscreen {
	display: none;
}
a.showAlgorithm {
	background: rgb(255,255,255); /* Old browsers */
	background: -moz-linear-gradient(top,  rgb(255,255,255) 0%, rgb(241,241,241) 45%, rgb(225,225,225) 55%, rgb(206,206,206) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(255,255,255)), color-stop(45%,rgb(241,241,241)), color-stop(55%,rgb(225,225,225)), color-stop(100%,rgb(206,206,206))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgb(255,255,255) 0%,rgb(241,241,241) 45%,rgb(225,225,225) 55%,rgb(206,206,206) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgb(255,255,255) 0%,rgb(241,241,241) 45%,rgb(225,225,225) 55%,rgb(206,206,206) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgb(255,255,255) 0%,rgb(241,241,241) 45%,rgb(225,225,225) 55%,rgb(206,206,206) 100%); /* IE10+ */
	background: linear-gradient(to bottom,  rgb(255,255,255) 0%,rgb(241,241,241) 45%,rgb(225,225,225) 55%,rgb(206,206,206) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#cecece',GradientType=0 ); /* IE6-9 */

	display: block;
	padding: 5px 0px 5px 50px;
	border-radius: 10px;
	border: 1px solid #888;
	position: relative;
	text-decoration: none;
	color: #666;
	font-size: 1.3em;
	text-shadow: 0px 1px 1px white;
}
a.showAlgorithm > img {
	height: 75%;
	position: absolute;
	left: 5px;
	top: 5px;
}
#fullscreen {
	display: none;
	background: white;
	z-index: 3; /* header=1, nav=2 */
}
#fullscreenbody table {
	min-width: 600px;
}
#fullscreenbody {
	/*top: 40px;*/
	position: absolute;
	padding: 40px 20px;
}

/* fullscreen button is wrapped in a larger div (padding) to make bigger touch area. */
#closeFullscreen {
	position: absolute;
	display: block;
	top: 0px;
	left: 0px;
	padding: 0px 20px 70px 0px;
	/*
	border: 1px solid red;
	*/
	z-index:10;
	text-decoration: none;
}
#closeFullscreen > * {
	border-bottom-right-radius: 10px;
	background: #888;
	box-shadow: 1px 2px 5px rgba(0,0,0,0.3);
	color: white;
	padding: 2px 10px;
}

/* The iScroll rules  */
#tabletContentWrapper, #fullscreen {
	position: fixed;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	/*
	Use width vs left/right so that slide transitions don't stretch 
	width: 100%;

	note: this was the old way, but i think it's ok now since the scroller is what's animated;
	*/
	overflow: hidden;
}
#tabletContentWrapper, #navWrapper {
	z-index: 0; /* needed so that fullscreen sits over top of their scroll bars */
}
#tabletContentWrapper {
	display: none;
	background: url('../resources/tabletMainArea.png') no-repeat center 40%;
}
#navScroller, #tabletContentScroller, #scrollContents, #currentGuide {
	position: absolute; /* this is important otherwise the scroll goes too far down */
	width: 100%;
}
/* End of scrolling rules */


#scrollContents {
	width: 100%;
}
#scrollContents h2 {
	margin: 10px 5px 0px 5px;
	font-weight: 200;
	text-shadow: -1px 1px 0px white;
}
.listBanner {
	background: rgb(234,234,234); /* Old browsers */
	background: -moz-linear-gradient(top,  rgb(234,234,234) 0%, rgb(191,191,191) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(234,234,234)), color-stop(100%,rgb(191,191,191))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgb(234,234,234) 0%,rgb(191,191,191) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgb(234,234,234) 0%,rgb(191,191,191) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgb(234,234,234) 0%,rgb(191,191,191) 100%); /* IE10+ */
	background: linear-gradient(to bottom,  rgb(234,234,234) 0%,rgb(191,191,191) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eaeaea', endColorstr='#bfbfbf',GradientType=0 ); /* IE6-9 */

	color: #555;
	text-shadow: 0px 1px 0px white;
	font-size: 1.3em;
	padding: 2px 10px;
	position: relative;
	border-bottom: 1px solid #888;
	border-top: 1px solid #fff;
	/*
	margin-top: 20px;
	*/
}
.listBanner:first-child {
}
.bannerChild {
	border-bottom: 1px solid #aaa;
}
.bannerChild:last-child {
	border: none;
}
.listItem {
	background: white;
	border-radius: 5px;
	/*
	border: 1px solid #bbb;
	*/
	box-shadow: 0px 1px 3px #555;
	margin: 5px;
	
	padding: 10px;

	/* was used when trying the ipad card layout.. maybe still will use
	display: inline-block;
	*/

	vertical-align: top;
}
.topicItem {
	display: block;
	background: white;
	border-bottom: 1px solid #ccc;
	padding: 15px 23px 15px 10px;
	text-decoration: none;
	color: black;
	position: relative;
	height: 50px;
}
.listItemClicked {
	color: white !important;

	background: rgb(0,136,179); /* Old browsers */
	background: -moz-linear-gradient(top,  rgba(0,136,179,1) 0%, rgba(2,97,141,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,136,179,1)), color-stop(100%,rgba(2,97,141,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgba(0,136,179,1) 0%,rgba(2,97,141,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgba(0,136,179,1) 0%,rgba(2,97,141,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgba(0,136,179,1) 0%,rgba(2,97,141,1) 100%); /* IE10+ */
	background: linear-gradient(to bottom,  rgba(0,136,179,1) 0%,rgba(2,97,141,1) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0088b3', endColorstr='#02618d',GradientType=0 ); /* IE6-9 */

}
.listItemClicked * {
	color: #ddd !important;
}
.smallText {
	font-size: 0.9em;
	color: #aaa;
	margin-top: 5px;
}
.updatedText {
	font-size: 0.6em;
	padding-top: 10px;
	position: absolute;
	right: 10px;
	bottom: 2px;
}
#favouritesInstructions, #mostViewedInstructions {
	padding: 50px;
	line-height: 2em;
	font-size: 1.3em;
	text-shadow: -1px 1px 0px white;
	text-align: center;
	background: #fff;
	margin: 10px;
	border-radius: 10px;
}
/* ===== List Items ====== */
.titleText {
	font-size: 1.2em;
	color: black;
}
.favouritesIcon {
	float: right;
	height: 25px;
	width: 30px;
	padding: 10px;
	margin-right: -13px;
	margin-top: -13px;
}
.favouritesIcon img {
	height: 100%;
}
.topic {
	font-size: 0.9em;
	color: #aaa;
	margin-top: 5px;
}
.objective {
	font-size: 1em;
	margin-top: 5px;
	/*max-height: 61px;*/
	overflow: hidden;
}
img.more {
	height: 40px;
	position: absolute;
	top: 50%;
	margin-top: -20px;
	right: 5px;
}

#searchForm {
	background: rgb(245,245,245); /* Old browsers */
	background: -moz-linear-gradient(top,  rgba(245,245,245,1) 0%, rgba(221,221,221,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(245,245,245,1)), color-stop(100%,rgba(221,221,221,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgba(245,245,245,1) 0%,rgba(221,221,221,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgba(245,245,245,1) 0%,rgba(221,221,221,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgba(245,245,245,1) 0%,rgba(221,221,221,1) 100%); /* IE10+ */
	background: linear-gradient(to bottom,  rgba(245,245,245,1) 0%,rgba(221,221,221,1) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#dddddd',GradientType=0 ); /* IE6-9 */


	border-bottom: 1px solid #888;
	box-shadow: -2px 0px 5px #888;
	

	/* hack to fix phonegap webview keyboard issues */
	position: fixed;
	top:38px;
	left:0px;
	width: 100%;
	/*height: 75px;*/
	height: 49px;

	/* bottom shadow 
	box-shadow: 0px 0px 5px #aaa;
	*/
	z-index: 1;
}
#searchForm > input {
	border-radius: 15px;
	color: #333;
	padding: 2px 30px 2px 10px;
	border: 1px solid #aaa;
	box-shadow: inset 0px 1px 3px #aaa;
	font-size: 16px;
	position: absolute; /* needed to get the full width*/
	/*top: 29px;*/
	top: 3px;
	left: 5px;
	right: 5px;
}
.clearButton {
	width: 15px;
	height: 15px;
	padding: 12px;
	display: block;
}
#searchClearButton {
	position:absolute;
	top: -4px;
	/*top: 22px;*/
	right: 2px;
	display:none;
}
#searchIndicator {
	position: absolute;
	bottom: 3px;
	left: 16px;
	height: 15px;
}
#searchResultsCount {
	position: absolute;
	bottom: 0px;
	font-size: 0.9em;
	font-weight: bold;
	padding: 1px 16px;
	/*
	text-shadow: 0px -1px 0px #333;
	padding-top: 4px;
	margin-top: 30px;
	background: #999;
	border-bottom: 1px solid #444;
	border-top: 1px solid #ccc;
	*/
	color: #666;
}
.clearButton > img {
	width: 100%;
	/*
	Chrome was stretching the image... who knows...
	height: 100%;
	*/
}
.showSearch {
	margin-top: 51px;
	/*margin-top: 76px;*/
}


#guideLangToggle {
	text-align: center;
	padding: 2px;
	border-bottom: 1px solid #aaa;
	box-shadow: 0px 1px 0px white;
}
a.selectLang {
	display: inline-block;
	text-decoration: none;
	border-radius: 5px;
	padding: 0px 20px;
	color: #888;
	/*
	font-weight: bold;
	background: #ddd;
	*/
}

.selectedLang {
	color: white !important;
	background: #888 !important;
}

.tabBlock, .settingsGroup {
	padding: 20px;
	border-radius: 10px;
	margin: 10px;
	background: white;
}


/* for screens larger >= 640px */
@media screen and (min-width: 640px) {
	/* trying tablet.css instead, for now...
	.listItem {
		max-width: 285px;
		margin-left: 20px;
	}
	#currentGuide {
		padding: 20px 50px;
		font-size: 1em;
	}
	*/
}

a.zoomLink {
	position: relative;
	display: block;
}
.zoomableHeader {
	text-align: center;
	font-size: 20px;
	color: #aaa;
	border-bottom: 1px solid #aaa;
}
img.zoomTable, img.zoomImage {
	width: 40px;
	vertical-align: text-bottom;
}
img.zoomImage {
}
#disclaimer {
	text-align:center;
}
.longText {
	background:white;
	padding:10px;
}
.longText img {
	width:200px;
}

#infoTab a {
	display: block;
	margin: 40px 0px;
	text-decoration: none;
	border-bottom: 1px dotted;
	color: #222;
}


.guideInfoItemClass {
	border-bottom: 1px solid #ddd;
	font-size: 0.9em;
	margin-bottom: 7px;

}

.guideUpdateItem {
	margin: 5px 0px;
}
.guideUpdateItem .version {
	color: #2A79B1;	
	margin-left: 20px;
}

#debugConsole {
	position: fixed;
	height: 100px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	overflow-y: scroll;
	z-index: 10;
	background: rgba(0,0,0,0.8);
	color: white;
	padding: 5px;
	font-size: 10px;
	display: none;
}
.debugItem {
	border-top: 0.5px solid #222;
}