 
/* Table of Contents

	- Page structure
	- Nav
	- Footer
	- Basic elements
	- Links
	- Tables
	- Form elements
		- Placeholders
	- Font declarations
	- Media queries
	
*/


/*
Page structure
---------------------------------------------------------------------------------------------------- */


	* {
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
	}
	
	html,
	body {
		display: block;
		width: 100%;
		padding: 0;
		margin: 0;
	}

	body {
		text-align: center;
		
		font-family: 'Droid Serif', Georgia, 'Book Antiqua', 'Times New Roman', serif;
		font-size: 16px;
		background: url('img/cracks.png') top right no-repeat, #DFC179 url('img/bg.jpg') repeat;
		color: #333;
		margin: 0px;
		padding-bottom: 20px;
	}
	#main-container {
		position: relative;
		width: 960px;
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}
	#stats {
		width: 50%;
		position: relative;
		margin: 15px auto;
		padding: 0 20px 20px;
		border: 1px solid #aa8937; 
		background: rgba(255,255,255,.15);
	}
	#games-wrapper {
		text-align: center;
		position: relative;
		padding: 5px;
		width: 95%;
		margin: 0 auto;
	}
	
	.games-search-form {
		border: 1px solid #aa8937; 
		margin: 15px 0; 
		padding: 15px 0;
		background: rgba(255,255,255,.15);
	}
	#games{
		border: 1px solid #aa8937; 
		background: rgba(0,0,0,.05);
		text-align: left;
		padding: 20px 30px;
	}
	
		

/*
Nav
---------------------------------------------------------------------------------------------------- */

	#primary-nav {
		position: relative;
		text-align: center;
		width: 75%;
		margin-top: 15px;
		margin-bottom: 15px;
		margin-left: auto;
		margin-right: auto;
	}

	#next-prev-links {
		position: relative;
		text-align: center; 
		margin-left: auto; 
		margin-right: auto; 
		margin-top: 15px;
		margin-bottom: 15px;
	}
	
	
			

/*
Footer
---------------------------------------------------------------------------------------------------- */

	footer#about {
		width: 100%;
		margin-top: 40px;
		padding: 5px 20px;
		border: 1px solid #aa8937; 
		font-size: 14px; 
	}
	footer#about ol {
		text-align: left;
		list-style-type: decimal;
	}
	footer#about li {
		list-style-type: decimal;
	}
		
	
/*
Basic elements
---------------------------------------------------------------------------------------------------- */

	
	ul { 
		text-align: left;
		list-style-type: none;
	}
	
	li {
		padding: 2px;
		list-style-type: none;
	}
	
	#games ul {
		padding: 0;
		margin: 0;
	}
	
	h3 {
		position: relative;
	}
	
	h4 {
		font-weight: normal;
	}
	
	
	.divider {
		border-top: 1px solid #aa8937; 
		margin: 25px 0;
	}

	
/*
Links
---------------------------------------------------------------------------------------------------- */

	a:link {
		color: #A30F0A;
		text-decoration: none;
		text-transform: none;
	}
	a:active {
		color: #D1342E;
		text-decoration: none;
	}
	a:visited {
		color: #555;
		color: #A30F0A;
		text-decoration: none;
	}
	a:hover {
		color: D1342E;
		text-decoration: none;
	}	
	
	nav a.current {
		font-weight: bold;
	}

/*
Tables
---------------------------------------------------------------------------------------------------- */

	table {
		position: relative;
		text-align: center;
		border: 0;
		width: 75%;
		margin-left: auto;
		margin-right: auto;
		border-collapse: collapse;
	}
	th {
		font-weight: bold;
		background: rgba(0,0,0,.05);
	}
	thead {
		background: rgba(0,0,0,.05);
	}
	thead tr,
	thead tr:nth-of-type(odd) {
		background: transparent;
	}
	tr {
		background: rgba(0,0,0,.05);
	}
	tr:nth-of-type(odd){
		background: rgba(255,255,255,.15); 
	}
	td,th {
		border: 1px solid #aa8937; 
		padding: 8px 12px;
		vertical-align: middle;
	}

	tr.search {
		background-color: #f1e200;	/* yellow */
	}
	
	td.username {
		text-align: left;
		position: relative;
	}
	
	td.username .hot,
	td.username .cold {
		position: absolute;
		right: 10px;
		top: 2px;
	}
	td.username .burn {
		position: absolute;
		right: 10px;
		top: -10px;
	}
	td.username .flaming {
		float: right;
		max-height: 25px;
		max-width: 90px;
	}


/*
Form elements
---------------------------------------------------------------------------------------------------- */

	input[type='file'],
	input[type='text'] {
		
	}
	
	input[type='text'] {
		background: #FEFDFC;
		border: 0;
		padding: 6px 8px;
		max-width: 200px;
		
		/*
		border-radius: 7px;
		-webkit-border-radius: 7px;
		-moz-border-radius: 7px;
		*/
	} 
	
	input:focus,
	textarea:focus {
		outline: none;
	}

	input[type='submit'] {
		border: 0;
		padding: 0;
		margin: 0;
		
		color: #fefdfc;
		font-family: 'Times New Roman';
		display: inline-block;
		width: 106px;
		height: 28px;
		line-height: 1.2;
		font-size: 16px;
		text-align: center;
		background: #444 url('img/gray-button.jpg') no-repeat; 
		-webkit-box-shadow: 0px 1px 3px rgba(0,0,0,.4);
		-moz-box-shadow: 0px 1px 3px rgba(0,0,0,.4);
		box-shadow: 0px 1px 3px rgba(0,0,0,.4);
	} 
	input[type='submit']:hover {
		background-image: url('img/gray-button-hover.jpg');
		text-decoration: none;
	} 

	.textfield {
		font-size: 11px;
		color: #333333;
		background: #F7F7F7;
		border: 1px solid #CCCCCC;
		padding-left: 1px;
	}

	/* Red button
	input[type='submit'] {
		border: 0;
		background: #581006 url('img/red-button.jpg') no-repeat;
		width: 165px;
		height: 40px;
		line-height: 2.2;
		padding: 0;
		text-align: center;
		color: #f1e200;
		font-family: FrizQuadrata, "Book Antiqua", Georgia, serif;
		font-size: 17px;
		cursor: pointer;
		text-shadow: 0px 1px 0px rgba(0,0,0,0.8);
		box-shadow: none;		
	} 
	input[type='submit']:hover {
		background-image: url('img/red-button-hover.jpg');
	} 
	*/
	
	

/* Placeholders
--------------------------------------------- */

	::-webkit-input-placeholder {
		color: #aaa;
		font-style: italic;
	}

	:-moz-placeholder { /* Firefox 18- */
		color: #aaa;
		font-style: italic;
	}

	::-moz-placeholder {  /* Firefox 19+ */
		color: #aaa;
		font-style: italic;
	}

	:-ms-input-placeholder {  
		color: #aaa;
		font-style: italic;
	}	
	

	
	
/*
Font declarations
---------------------------------------------------------------------------------------------------- */

		
	@font-face {
		font-family: 'FrizQuadrata';
		src: url('fonts/frizqt_.eot');
		src: url('fonts/frizqt_.eot') format('embedded-opentype'),
			 url('fonts/frizqt_.woff') format('woff'),
			 url('fonts/frizqt_.ttf') format('truetype'),
			 url('fonts/frizqt_.svg#FrizQuadrataTTRegular') format('svg');
		font-weight: normal;
		font-style: normal;
	} 

	@font-face {
		font-family: 'Droid Serif';
		src: url('fonts/droidserif-webfont.eot');
		src: url('fonts/droidserif-webfont.eot?#iefix') format('embedded-opentype'),
			 url('fonts/droidserif-webfont.woff') format('woff'),
			 url('fonts/droidserif-webfont.ttf') format('truetype'),
			 url('fonts/droidserif-webfont.svg#droid_serifregular') format('svg');
		font-weight: normal;
		font-style: normal;

	}
	
	/* @import url(https://fonts.googleapis.com/css?family=Open+Sans); */
	

/*
Media queries
---------------------------------------------------------------------------------------------------- */


	/* iPad Landscape */
	@media only screen and (max-width: 1023px) {
		
		#main-container {
			margin: 0;
			padding: 20px 4% 0; 
			width: 100%;
		}
	
		table,
		#stats,
		#games-wrapper,
		#primary-nav {
			width: 100%;
		}
		
		.games-search-form {
			padding: 15px 20px;
		}
		#games-wrapper {
			padding: 0;
		}
	}
	
		
	/* iPad Portrait */
	@media only screen and (max-width: 767px) {
		body {
			-webkit-text-size-adjust:none;
		}
		#main-container {
			padding: 20px 0;
		}
		input,
		input[type=text] {
			width: 92%;
			margin: 10px 4%;
			max-width: none;
		}
		
		.player-search-form br {
			display: none;
		}
		
		input[type='submit'] {
			display: block;
			margin: 0 auto;
		}
		
		footer#about {
			width: 92%;
			margin-left: 4%;
			margin-right: 4%;
		}

	}
	
	
	/* iPhone 5 Landscape */
	@media only screen and (max-width: 568px) {	
	
		body {
			background: #DFC179 url('img/bg.jpg') repeat;
		}
		
		table {
			font-size: 14px;
		}
		td,th {
			padding: 8px;
		}
		th:nth-of-type(5),
		td:nth-of-type(5) {
			display: none;
		}
		td.username .hot {
			max-width: 20px;
			top: 5px;
			right: 5px;
		}
		td.username .cold {
			max-width: 30px;
			right: 5px;
		}
		td.username .burn {
			max-width: 30px;
			max-height: 30px;
			top: 0;
			right: 5px;
		}
		td.username .flaming {
			max-width: 68px;
			max-height: 15px;			
		}
		
		footer#about ol {
			padding-left: 20px;
		}
	}
	
	
	/* iPhone Portrait */
	@media only screen and (max-width: 468px) {	
	
		

	}


