/*
* Responsive Tables
*/


/* Generic Styling, for Desktops/Laptops 
================================================== */

table.class-times {
	width: 100%;
	border-collapse: collapse;
	color: #4572b5;
}
/* Zebra striping */
.class-times tr:nth-of-type(odd) {
	background: #e7f0fe;
}
.class-times th {
	background: #4572b5;
	color: white;
	font-weight: bold;
}
.class-times td, .class-times th {
	padding: 6px;
	border: 1px solid #b0c5e6;
	text-align: left;
}

/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media only screen and (max-width: 479px) {
/* Force table to not be like tables anymore */
table.class-times, .class-times thead, .class-times tbody, .class-times th, .class-times td, .class-times tr {
	display: block;
}
/* Hide table headers (but not display: none;, for accessibility) */
.class-times thead tr {
	position: absolute;
	top: -9999px;
	left: -9999px;
}
.class-times tr {
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: none;
	border-left-style: solid;
	border-top-color: #b0c5e6;
	border-right-color: #b0c5e6;
	border-bottom-color: #b0c5e6;
	border-left-color: #b0c5e6;
}
.class-times td {
	/* Behave  like a "row" */
	border: none;
	border-bottom: 1px solid #b0c5e6;
	position: relative;
	padding-left: 50%;
}
.class-times td:before {
	/* Now like a table header */
	position: absolute;
	/* Top/left values mimic padding */
	top: 6px;
	left: 6px;
	width: 45%;
	padding-right: 10px;
	white-space: nowrap;
}
/*
	Label the data
	*/
.class-times td:nth-of-type(1):before {
	content: "Class";
	font-weight: bold;
}
.class-times td:nth-of-type(2):before {
	content: "Age Group";
	font-weight: bold;
}
.class-times td:nth-of-type(3):before {
	content: "Start";
	font-weight: bold;
}
.class-times td:nth-of-type(4):before {
	content: "Finish";
	font-weight: bold;
}
}
