/* Css resets */
* {
	padding:0;
	margin:0;
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	box-sizing:border-box;
}
ul {
	list-style: none;
}
img {
	max-width: 100%;
	height: auto;
}
body {
	font-family: 'cambria', serif;
}
h1,h2,h2,h3,h4,h5 {
	margin:0.3em 0 0.5em 0;
}
/* End css resets */

/* Css default */
.navbar {
	background-color: #333;
}
.navbar a {
	display: inline-block;
	padding: 10px 30px;
	color:#fff;
	text-decoration: none;
	font-family: sans-serif;
}
.navbar a.current {
	background-color: #222;
}
@media (min-width:768px){
	.container {
		width:1200px;
		min-height: 550px;
	}
}
.container {
	margin:auto;
	margin-top:10px;
	overflow: hidden;
	padding:10px;
}
.back {
	bottom:0;
	left: 0;
	right: 0;
	position: relative;
}
.back a {
	color:#eee;
	background-color: #333;
	padding:7px 10px;
	display: block;
	margin:5px 10px;
	text-decoration: none;
}
.back a:last-child {
	float: right;
}
.back a:first-child {
	float: left;
}

/* End css default */


/* CSS for Zebra Table in index.html */
.zebra-table {
	width: 100%;
	border-collapse: collapse;
	box-shadow: 0 2px 3px 1px #ddd;
	overflow: hidden;
	border:10px solid #fff;
}
	.zebra-table th,.zebra-table td{
		vertical-align: top;
		padding:10px 7px;
		text-align: left;
		margin:0;
	}
		.zebra-table tbody tr:nth-child(odd) { /* Make table like zebra */
			background:#eee;
		}

/* End CSS for Zebra Table in index.html */

/* CSS for Rainbow Table in index1.html */
.rainbow-table {
	width: 100%;
	border-collapse: collapse;
	box-shadow: 0 2px 3px 1px #ddd;
	overflow: hidden;
	border:10px solid #fff;
}
.rainbow-table th,.rainbow-table td{
	vertical-align: top;
	padding:10px 7px;
	text-align: left;
	margin:0;
}
.rainbow-table tbody {
	color: #fff;
}
	/* Make table like rainbow */
	.rainbow-table tbody tr:nth-child(4n+1) { /* 4n is 4 colours */
		background:#cc3333; /* red */
	}
	.rainbow-table tbody tr:nth-child(4n+2) { 
		background:#cccc33; /* yellow */
	}
	.rainbow-table tbody tr:nth-child(4n+3) { 
		background:#33cc33; /* green */
	}
	.rainbow-table tbody tr:nth-child(4n+4) { 
		background:#3333cc; /* blue */
	}

/* End CSS for Rainbow Table in index1.html */

/* CSS for Highlighted Row in index2.html */
.highlighted-row {
	width: 100%;
	border-collapse: collapse;
	box-shadow: 0 2px 3px 1px #ddd;
	overflow: hidden;
	border:10px solid #fff;
}
.highlighted-row th,.highlighted-row td{
	vertical-align: top;
	padding:10px 7px;
	text-align: left;
	margin:0;
}
	/* Make row highlighted */
	.highlighted-row tbody tr:nth-child(2) { 
		background:#cc3333; /* red */
		color:#fff;
	}

/* End CSS for Highlighted Row in index2.html */

/* CSS for Highlighted Column in index3.html */
.highlighted-column {
	width: 100%;
	border-collapse: collapse;
	box-shadow: 0 2px 3px 1px #ddd;
	overflow: hidden;
	border:10px solid #fff;
}
	.highlighted-column th,.highlighted-column td{
		vertical-align: top;
		padding:10px 7px;
		text-align: center;
		margin:0;
	}
		.highlighted-column tr td:nth-child(2),.highlighted-column tr th:nth-child(2)  { /* Make column highlighted */
			background:#333333;
			color: #fff;
		}
/* End CSS for Highlighted Column in index3.html */

/* CSS for Fixed Table Header in index4.html */
.fixed-th {
	width:100%;
	border-collapse: collapse;
	box-shadow: 0 2px 3px 1px #ddd;
	table-layout: fixed;
	border:10px solid #fff;
}
	.fixed-th thead {
		background-color: #333;
		color:#fff;
		display: block;
	}
	/* make it scrolled */
	.fixed-th tbody {
		display: block;
	  	overflow-y: auto;
	  	width: 100%;
	  	max-height: 300px;
	  	position: relative;
	}

	/* end make it scrolled */

			.fixed-th th,.fixed-th td{
				width:5%;
				vertical-align: top;
				padding:10px 7px;
				text-align: center;
				margin:0;
			}
			.fixed-th th + th, .fixed-th td + td {
				border-left:1px solid #ddd;
			}
			.fixed-th tr th:nth-child(1), .fixed-th tr td:nth-child(1) {
				min-width:0%;
			}
			.fixed-th tr th:nth-child(2), .fixed-th tr td:nth-child(2) {
				width:30%;
			}
			.fixed-th tr th:nth-child(3), .fixed-th tr td:nth-child(3) {
				width:90%;
			}
			.fixed-th tr th:nth-child(4), .fixed-th tr td:nth-child(4) {
				width:90%;
			}
			.fixed-th tr th:nth-child(5), .fixed-th tr td:nth-child(5) {
				width:90%;
			}
			.fixed-th tr th:nth-child(6), .fixed-th tr td:nth-child(6) {
				width:200px;
			}
			.fixed-th tr th:nth-child(7), .fixed-th tr td:nth-child(7) {
				width:200px;
			}

/* End CSS for Fixed Table Header in index4.html */
