table { 
	width: 100%; 
	border-collapse: collapse; 
    background: #041c32;
    	border: 1px solid #1b558e; 
	}

/* Zebra striping */
tr:nth-of-type(odd) { 
	background: #041c32; 
	}

tr:nth-of-type(even) { 
	background: #062949; 
	}

th { 
	background: #1b558e; 
	color: #041c32; 
	font-weight: bold; 
        font-size: 1.2rem;
	}

tr:hover {color:#ffc000; background-color:#000;}
tr.selected {color:#000; background-color:#ffc000;}
tr.selected:hover {color:#000; background-color:#ffcc00;}

td, th { 
	padding: 0.5rem; 
	text-align: left; 
	}

td { 
    font-size: 1.2rem;
min-height: 15px;
	}


@media only screen and (min-width: 992px) {

th:nth-of-type(1) {width:8rem;}
th:nth-of-type(2) {width:22rem;}
th:nth-of-type(3) {width:20rem;}
th:nth-of-type(4) {width:10rem;}
th:nth-of-type(5) {width:auto;}
}
	
    



/* 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: 760px),(min-device-width: 768px) and (max-device-width: 1024px)  {
        
        table {
                	border: 1px solid #1b558e; 
        }
	
		/* Force table to not be like tables anymore */
		table, thead, tbody, th, td, tr { 
			display: block; 
		}
        
        td, th {padding: 0.3rem;}
		
		/* Hide table headers (but not display: none;, for accessibility) */
		thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		
		tr {border: none;}
		
		td { 
			/* Behave  like a "row" */
			border: none;
			position: relative;
			padding-left: 30%; 
		}
		
		td:before { 
			/* Now like a table header */
			position: absolute;
			/* Top/left values mimic padding */
			top: 0.3rem;
			left: 1rem;
			width: 65%; 
			padding-right: 10px; 
			white-space: nowrap;
            color: #8eb7e0;
            font-weight: bold;
		}
		
		/*
		Label the data
		*/
		td:nth-of-type(1):before { content: "Date"; }
		td:nth-of-type(2):before { content: "Venue"; }
		td:nth-of-type(3):before { content: "City"; }
		td:nth-of-type(4):before { content: "Country"; }
		td:nth-of-type(5):before { content: "Comments"; }
	}
	
	/* Smartphones (portrait and landscape) ----------- */
	@media only screen
	and (min-device-width : 320px)
	and (max-device-width : 480px) {
		body { 
			padding: 0; 
			margin: 0; 
			 }
		}
	
	/* iPads (portrait and landscape) ----------- */
	@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
		body { 
			width: 495px; 
		}
}


