body {
	background-color: #808080;
	background: url("bgs/bg0.jpg");
	background-attachment: fixed;
	background-size: cover;
	margin: 0;
	padding: 0;
	text-align: center; /* Center the table on IE5. */
	overflow-y: scroll; /* Always show scrollbar so the layout doesnt move when change page. */
}

body:after {
	background: url("bgs/bg0.jpg");
	content:"";
	position:fixed; /* stretch a fixed position to the whole screen */
	height:100vh; /* fix for mobile browser address bar appearing disappearing */
	top:0;
	left:0;
	right:0;
	z-index:-1;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

td.content {
	background-color: transparent !important;
	width: 100%;
}

div.content {
	background: #FFF; /* Using -color fails in IE */
	background: rgba(255, 255, 255, 0.75);
	padding: 20px 20px;
	margin: 20px 20px 0px 20px;
	border: 1px solid #D3D3D3;
	-webkit-box-shadow: 0px 5px 20px -8px rgba(0, 0, 0, 0.75);
	-moz-box-shadow: 0px 5px 20px -8px rgba(0, 0, 0, 0.75);
	box-shadow: 0px 5px 20px -8px rgba(0, 0, 0, 0.75);
}

.lte6 div.content { /* make background work on IE5 */
	background: #FFF;
}

.has_menu_sub div.content {
	margin-left: 0px;
}

div.content:after {
	/* This ensures the floating menu in small mode does not escape content box */
	content: '';
	display: block;
	visibility: hidden;
	clear: both;
	width: 100%;
}

table.maintable {
	width: 100%;
	max-width: 1024px;
	margin: 0 auto;
	padding: 0;
	border: none;
	text-align: left;
}

.lte7 table.maintable { /* this is a hack for max-width in IE5-6 */
	width: auto !important;
	width: 1024px;
}

.ie7 table.maintable { /* max-width equivalent for IE7 */
	width: expression(document.body.clientWidth > 1024 ? "1024px" : "auto");
}

.maintable .title {
	padding: 20px;
	padding-bottom: 0;
	text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}

tr.maintable, td.maintable {
	padding: 0;
	margin: 0;
	border: none;
}

tr.maintable {
	background: transparent;
}

.title h1 {
	color: white;
	font-size: 30px;
	line-height: 40px;
	padding: 0;
	margin: 0;
	margin-bottom: 20px;
}

.title a {
	text-decoration: none;
	color: white;
}

.maintable div.menu, div.menu_sub {
	background-color: #526eae;
	text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.menu .active, .menu_sub .active {
	background-color: #90a2cb !important;
}

.menu_subsub .active {
	background-color: #8092bb !important;
}

td.menu {
	height: 40px; /* important for affix */
}

.menu a:hover, .menu_sub a:hover {
	background-color: #617bb5;
}

.menu a:focus, .menu_sub a:focus {
	text-decoration: underline;
}

.menu a, .menu_sub a {
	color: white;
	text-decoration: none;
	outline: 0;
	display: -moz-inline-box;
	display: inline-block;
	-webkit-transition: background-color .25s ease-in-out;
	-moz-transition: background-color .25s ease-in-out;
	transition: background-color .25s ease-in-out;
}

.maintable div.menu {
	height: 40px;
	padding: 0px 20px;
	font-size: 18px;
	line-height: 20px;
	overflow: hidden;
	-webkit-box-shadow: 0px 5px 20px -8px rgba(0, 0, 0, 0.75);
	-moz-box-shadow: 0px 5px 20px -8px rgba(0, 0, 0, 0.75);
	box-shadow: 0px 5px 20px -8px rgba(0, 0, 0, 0.75);
}

.menu a {
	height: 20px;
	line-height: 20px;
	padding: 10px 10px;
}

td.maintable:first-child {
	/* fixes webkit submenu td sizing */
	width: 1px; /* also breaks IE7 */
}

.ie7 td.maintable:first-child {
	width: auto; /* fix for IE7 */
}

.has_menu_sub td.menu_sub {
	padding: 20px;
}

.has_menu_sub div.menu_sub {
	border: 1px solid #90a2cb;
	-webkit-box-shadow: 0px 5px 20px -8px rgba(0, 0, 0, 0.75);
	-moz-box-shadow: 0px 5px 20px -8px rgba(0, 0, 0, 0.75);
	box-shadow: 0px 5px 20px -8px rgba(0, 0, 0, 0.75);
	max-width: 160px;
}

.menu_sub a {
	width: 150px;
	padding: 5px;
	word-wrap: break-word;
}

.lte6 .menu_sub a {
	width: 160px;
}

.menu span, .menu_subsub span {
	display: none;
}

.menu_subsub {
	border-left: 3px solid #90a2cb;
	background-color: gray;
	position: relative;
}

@supports (pointer-events: none) {
	.menu_subsub:before {
		content: '';
		display: block;
		box-shadow: inset 2px 2px 20px -6px rgba(0, 0, 0, 0.75);
		position: absolute;
		top: 0px;
		left: 0px;
		right: 10px;
		height: 100%;
		width: 100%;
		z-index: 1;
		pointer-events: none;
	}
	
	x:-o-prefocus, .menu_subsub:before {
		/* This disables the inset shadow for opera 12, so it doesn't steal clicks. */
		display: none;
	}
}

.menu_subsub a {
	width: 137px;
	padding-left: 15px;
}

.lte6 .menu_subsub a {
	width: 157px;
}

.copyright {
	color: white;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

@media screen and (max-width: 720px) {
	td.content {
		display: block;
	}
	
	.has_menu_sub td.menu_sub {
		display: block;
		padding: 0;
	}
	
	.has_menu_sub div.content {
		margin-left: 20px;
	}
	
	.menu {
		position: relative;
		z-index: 2;
	}
	
	.has_menu_sub div.menu_sub {
		position: relative;
		z-index: 1;
		margin: 0;
		border: none;
		width: 100%;
		text-align: center;
		max-width: none;
	}
	
	.maintable td:first-child {
		/* undo webkit fix it will mess with menu_sub size */
		width: auto;
	}
	
	.menu_sub br, .menu_sub span {
		display: none;
	}
	
	.menu_sub a {
		display: inline-block;
		width: auto;
	}
	
	div.menu_sub:before {
		content: '';
		display: block;
		visibility: hidden;
		width: 0px;
		height: 0px;
		float: left;
		margin-bottom: 70px;
	}
	
	.menu_subsub {
		border: 1px solid #D3D3D3;
		position: relative;
		float: left;
		clear: left;
		margin: 0px 10px 0px 40px;
		text-align: left;
	}
	
	.menu_subsub a {
		display: block;
		width: initial;
		padding: 5px 5px;
	}
}

@media screen and (min-width: 1024px) {
	.menu {
		border-radius: 5px;
	}
}

@media screen and (min-width: 1044px) {
	div.menu_sub {
		margin-left: 0px;
	}

	div.content {
		margin-right: 0px;
	}

	.no_menu_sub div.content {
		margin-left: 0px;
	}
}

/*********************************************
 * Affix related stuff                       *
 *********************************************/

@media screen and (min-height: 480px) {
	.affixed div.menu {
		position: fixed;
		top: 0px;
		left: 0px;
		width: 100%;
		border-radius: 0;
		z-index: 100;
	}

	@media screen and (min-width: 721px) {
		.has_menu_sub td.menu_sub:before {
			content: '';
			display: block;
			min-width: 162px;
		}

		.affixed div.menu_sub {
			position: fixed;
			top: 60px;
			z-index: 100;
		}
	}

	/* Title in affixed navbar */
	@media screen and (min-width: 640px) {
		.affixed .title {
			height: 60px;
		}
		
		.affixed .title h1 {
			position: fixed;
			top: 0px;
			right: 20px;
			z-index: 101;
		}
	}
}

/*********************************************
 * End page layout, start styles for content *
 *********************************************/

.warning {
	color: red;
}

.success {
	color: green;
}

/* Fix some inconcistencies across browsers and generally make things look a little nicer */

hr {
	border: none;
	border-top: 1px solid #B3B3B3;
}

h1 {
	margin: 0;
	padding: 5px 0 2px 0;
}

h2 {
	margin: 0;
	padding: 10px 0 2px 0;
}

h3 {
	margin: 0;
	padding: 10px 0 2px 0;
}

p, ul, ol, pre, blockquote {
	margin: 5px 0;
	padding: 5px 0;
}

ul, ol {
	padding-left: 25px;
	margin-bottom: 15px;
}

pre, blockquote {
	background: white;
	border: 1px solid #D3D3D3;
	border-left: 4px solid limegreen;
	padding: 5px;
	padding-left: 10px;
	-webkit-box-shadow: 2px 2px 4px -2px rgba(0, 0, 0, 0.75);
	-moz-box-shadow: 2px 2px 4px -2px rgba(0, 0, 0, 0.75);
	box-shadow: 2px 2px 4px -2px rgba(0, 0, 0, 0.75);
}

pre {
	white-space: pre-wrap;       /* Since CSS 2.1 */
	white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
	white-space: -pre-wrap;      /* Opera 4-6 */
	white-space: -o-pre-wrap;    /* Opera 7 */
	word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

table {
	border-spacing: 0;
}

/* Tables */
.table {
	background-color: #F1F1F1;
	-webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16),0 2px 10px 0 rgba(0, 0, 0, 0.12);
	-moz-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16),0 2px 10px 0 rgba(0, 0, 0, 0.12);
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16),0 2px 10px 0 rgba(0, 0, 0, 0.12);
	border-collapse: collapse;
	border-left: 4px solid #4CAF50;
}

.table tr {
	-webkit-transition: background-color .25s ease-in-out;
	-moz-transition: background-color .25s ease-in-out;
	transition: background-color .25s ease-in-out;	
}

.table tr:nth-child(1) {
	background-color: #D3D3D3 !important;
}

.table tr:nth-child(2n) {
	background-color: #E1E1E1;
}

.table tr:last-of-type {
	border-bottom: none;
}

.table tr:hover {
	background-color: #FFFFFF;
}

.table td, .table th {
	border: 1px solid #C1C1C1;
	border-left: none;
	padding: 5px;
}

.table th {
	font-weight: bold;
}

.table tr[href], .table td[href] {
	color: #4c4cae;
}

.table th[href] {
	color: #2f2f6a;
}

/* Images */
.imginline {
	background-color: #f1f1f1;
	-webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16),0 2px 10px 0 rgba(0, 0, 0, 0.12);
	-moz-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16),0 2px 10px 0 rgba(0, 0, 0, 0.12);
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16),0 2px 10px 0 rgba(0, 0, 0, 0.12);
	border: 1px solid #C1C1C1;
	/* Positioning */
	float: left;
	margin: 0px 10px 10px 0px;
	border: 1px solid gray;
}

/* For aligning easily */
.aleft   { text-align: left; }
.aright  { text-align: right; }
.acenter { text-align: center; }
