/*
	Contents

	HTML Reset
	html tags
	basic classes
	easy clearing
	layout
	columns
	header
	nav
	footer
	tables
	other
	
	Media Queries
	- for mobiles/screen orientation
	- for print

*/
/* 
  HTML5 ✰ Boilerplate 
  
  style.css contains a reset, font normalization and some base styles.
  
  credit is left where credit is due.
  much inspiration was taken from these projects:
    yui.yahooapis.com/2.8.1/build/base/base.css
    camendesign.com/design/
    praegnanz.de/weblog/htmlcssjs-kickstart
*/
/* 
  html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
  v1.4 2009-07-27 | Authors: Eric Meyer & Richard Clark
  html5doctor.com/html-5-reset-stylesheet/
*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin:0;
  padding:0;
  border:0;
  outline:0;
  font-size:100%;
  vertical-align:baseline;
  background:transparent;
}                  
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { 
    display:block;
}
nav ul { list-style:none; }
blockquote, q { quotes:none; }
blockquote:before, blockquote:after,
q:before, q:after { content:''; content:none; }
a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }
ins { background-color:#ff9; color:#000; text-decoration:none; }
mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold; }
del { text-decoration: line-through; }
abbr[title], dfn[title] { border-bottom:1px dotted; cursor:help; }
/* tables still need cellspacing="0" in the markup */
table { border-collapse:collapse; border-spacing:0; }
hr { display:block; height:1px; border:0; border-top:1px solid #ccc; margin:1em 0; padding:0; }
input, select { vertical-align:middle; }
/* END RESET CSS */

/* html tags */
body {
	font-family: Verdana, sans-serif;
	font-size: 76%;
	color: #000;
	line-height: 20px;
	background: #008B1C url(/i/bg.gif) repeat 0 0 scroll;
}
h1,h2,h3,h4,h5,h6 { margin: 0 0 20px 0; font-weight: bold; }
h1 {
	font-size: 1.5em;
	color: #000;
	font-family: chennai, Verdana, sans-serif;
}
h2 {
	font-size: 1.4em;
	color: #000;
	font-family: chennai, Verdana, sans-serif;
}
h3 {
	font-size: 1.3em;
	color: #000;
}
h4 {
	font-size: 1.2em;
	color: #000;
}
h5 {
	font-size: 1.1em;
	color: #000;
}
h6 {
	font-size: 1.0em;
	color: #000;
}
p, pre {
	margin: 0 0 20px 0;
	color: #000;
}
pre {
  /* www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/ */
  white-space: pre; /* CSS2 */
  white-space: pre-wrap; /* CSS 2.1 */
  white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
  word-wrap: break-word; /* IE */
}
blockquote {
	margin: 20px;
	padding: 20px;
	background: #f6f6f6;
}
a:link {
	color: #172199;
	text-decoration: none;
}
a:visited {
	color: #172199;
	text-decoration: none; 
}
a:hover { 
	color: #e50000;
	text-decoration: none;
	outline: none;
}
a:active {
	color: #06c;
	text-decoration: none;
	outline: none;
}
ul, ol {
	margin: 0 0 20px 20px;
	padding: 0;
}
li {
	margin: 0;
	padding: 0 0 0 0;
	color: #000;
}
dl {
	margin: 0;
	padding: 0;
}
dt {
	font-weight: bold;
	line-height: 30px;
}
dd {
	line-height: 30px;
	padding: 0;
	margin: 0;
}

/* Remove margins for navigation lists */
nav ul, nav li { margin: 0; }
/* form bits */
form { margin: 0; padding: 0; }
textarea { overflow: auto; } /* thnx ivannikolic! www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */
.ie6 legend, .ie7 legend { margin-left: -7px; }
/* align checkboxes, radios, text inputs with their label
   by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css  */
input[type="radio"] { vertical-align: text-bottom; }
input[type="checkbox"] { vertical-align: bottom; }
.ie7 input[type="checkbox"] { vertical-align: baseline; }
.ie6 input { vertical-align: text-bottom; }
/* hand cursor on clickable input elements */
label, input[type=button], input[type=submit], button { cursor: pointer; }
 /* webkit browsers add a 2px margin outside the chrome of form elements */  
button, input, select, textarea { margin: 0; }
/* colors for form validity */
input:valid, textarea:valid   {  }
input:invalid, textarea:invalid { 
      border-radius: 1px;
    -moz-box-shadow: 0px 0px 5px red; 
 -webkit-box-shadow: 0px 0px 5px red; 
         box-shadow: 0px 0px 5px red;
}
.no-boxshadow input:invalid, 
.no-boxshadow textarea:invalid { background-color: #f0dddd; }
/* make buttons play nice in IE:    
   www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
button {  width: auto; overflow: visible; }

strong { font-weight: bold; }
img, a img { border: none; }
/* bicubic resizing for non-native sized IMG: 
   code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
.ie7 img { -ms-interpolation-mode: bicubic; }
a:link img, a:visited img, a:hover img, a:active img { border-bottom: none; }
table, tr, th, td { margin: 0; padding: 0; border: none; font-size: 1em; }
table { }
th { font-size: 1.1em; }
th, td { padding: 0.2em; }
acronym, abbr { border-bottom: 1px dotted #333; }
sup { line-height: 0; } /* hacked in ie6 */
/* basic classes */
.clear { clear: both; }
.clearleft { clear: left; }
.clearright { clear: right; }
.left { float: left; }
.right { float: right; }
.imgleft {
	float: left;
	padding: 0 10px 10px 0;
}
.imgright {
	float: right;
	padding: 0 0 10px 10px;
}
.imgcentre {
	display: block;
	margin: 0 auto;
	padding: 10px 0;
}
.push0 { margin-bottom: 0; }
.push1 { margin-bottom: 20px; }
.push2 { margin-bottom: 40px; }
.top0 { margin-top: 0; }
.top1 { margin-top: 20px; }
.top2 { margin-top: 40px; }
/* Hide for both screenreaders and browsers
   css-discuss.incutio.com/wiki/Screenreader_Visibility */
.hidden { display: none; visibility: hidden; } 
/* Hide only visually, but have it available for screenreaders 
   www.webaim.org/techniques/css/invisiblecontent/  &  j.mp/visuallyhidden  */
.visuallyhidden, #skip { position: absolute !important;    
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px); }
/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }
.font {
	font-family: chennai, Verdana, sans-serif;
}

/* easy clearing */
/* >> The Magnificent CLEARFIX: Updated to prevent margin-collapsing on child elements << j.mp/bestclearfix */
.twocol:before, .twocol:after, 
.threecol:before, .threecol:after, 
.fourcol:before, .fourcol:after, 
.clearfix:before, .clearfix:after, 
#content:before, #content:after
{ content: "\0020"; display: block; height: 0; visibility: hidden; } 
.twocol:after, 
.threecol:after, 
.fourcol:after, 
.clearfix:after, 
#content:after
{ clear: both; }
/* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
.twocol, 
.threecol, 
.fourcol, 
.clearfix, 
#content
{ zoom: 1; }

/* layout */
#container {
	padding: 20px;
	margin: 0 auto;
	width: 728px;
	padding: 0;
}
header {
	margin: 0;
	padding: 40px 0;
	text-align: left;
}
nav {
	margin: 0;
}
#content {
	/* easycleared */
	padding: 20px 0;
}
footer {
	padding: 20px 0;
	margin: 0;
}


/* columns */
/* onecol */
.onecol {
	margin: 0;
}
/* two col */
.twocol {
	/* easycleared */
	margin: 0;
}
.twocol .leftcol {
	width: 48%;
	float: left;
}
.twocol .rightcol {
	width: 48%;
	float: right;
}
	/* teamcols */
	.teamcols .leftcol { width: 510px; }
	.teamcols .rightcol { width: 200px; }
/* three col */
.threecol {
	/* easycleared */
	margin: 0;
}
.threecol .leftcol {
	width: 32%;
	margin: 0 2% 0 0;
	float: left;
}
.threecol .centrecol {
	width: 32%;
	margin: 0 2% 0 0;
	float: left;
}
.threecol .rightcol {
	width: 32%;
	float: left;
}


/* header */
header h1 {
	font-size: 42px;
	font-weight: normal;
	line-height: 1;
	margin: 0;
	padding: 0;
	color: #fff;
}

/* nav */
nav ul {
	margin: 0 0 0 -9px;
	padding: 0 20px 20px 0;
	list-style: none;
	font-family: chennai, Verdana, sans-serif;
}
nav ul li {
	margin: 0 8px 0 0;
	padding: 0;
	display: inline-block;
	line-height: 1;
	font-size: 16px;
}
.ie7 nav ul li {
	zoom: 1;
	display: inline;
}
nav ul li a {
	display: block;
	padding: 9px;
}
nav ul li a:hover { color: #fff; }

nav ul li.selected {
	
}
nav ul li.selected a {
	background: #172199;
     -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
          border-radius: 6px;
	color: #fff;
	behavior: url(/js/mylibs/PIE.htc);
}
/* footer */
footer div {
	display: inline-block;
	padding-right: 10px;
}
.ie7 footer div {
	zoom: 1;
	display: inline;
}
footer a:hover { color: #fff; }

/* tables */
table {
	margin: 0 0 18px 0;
	padding: 0;
	width: 100%;
	border: 1px solid #262;
}
tr {
	margin: 0;
	padding: 0;
}
tr td {
	background: #fff;
}
tr.alt td {
	background: #cdddf5;
}
th, td {
	margin: 0;
	padding: 0;
	height: 30px;
	line-height: 30px;
}
th, .total td {
	background: #000;;
	color: #fff;
	text-align: center;
}
th a:link, th a:visited {
	color: #f90;
	border: none;
}
th a:hover, th a:active {
	color: #f90;
	border: none;
	text-decoration: underline;
}
td {
}
/* generic table classes */
.t20  { width:  20px; }
.t40  { width:  40px; }
.t60  { width:  60px; }
.t100 { width: 100px; }
.t180 { width: 180px; }
.t200 { width: 200px; }
.t220 { width: 220px; }
.t240 { width: 240px; }

th.textleft, td.textleft     { text-align: left; text-indent: 3px; }
th.textright, td.textright   { text-align: right; padding-right: 3px; }
th.textcentre, td.textcentre { text-align: center; }

/* main league table */
#leagueTable td.league-pos {
	width: 60px;
	text-align: center;
}
#leagueTable td.league-name {
	width: 380px;
	text-align: left;
	text-indent: 3px;
}
#leagueTable th.league-name { text-align: left; text-indent: 3px; }
#leagueTable td.league-thisweek {
	width: 40px;
	text-align: center;
}
#leagueTable td.league-thisweek-wide { width: 80px; text-align: center; }
#leagueTable td.league-thisweekimg {
	width: 40px;
	text-align: center;
}
#leagueTable td.league-motm {
	width: 60px;
	text-align: center;
}
#leagueTable td.league-points {
	width: 60px;
	text-align: center;
}
/*
#leagueTable td.league-points { border-left: 1px solid #fff; }
#leagueTable th.league-points { border-left: 1px solid #000; }
#leagueTable tr.alt td.league-points { border-left: 1px solid #cdddf5; }
*/
#leagueTable tr.pos1 td { background: #fff; }
#leagueTable tr.pos2 td { background: #beffcd; }
#leagueTable tr.pos3 td { background: #fff; }
#leagueTable tr.pos4 td { background: #beffcd; border-bottom: 1px solid #000; }

#leagueTable.motm tr.pos2 td { background: #cdddf5; }
#leagueTable.motm tr.pos4 td { background: #cdddf5; border-bottom: none; }
#leagueTable.thisweek tr.pos2 td { background: #cdddf5; }
#leagueTable.thisweek tr.pos4 td { background: #cdddf5; border-bottom: none; }

span.up   { color: #328332; font-weight: bold; }
span.down { color: #cc3300; font-weight: bold; }
span.same { color: #000000; font-weight: bold; }


/* players list table */
#playerlist td.players-rank {
	width: 35px;
	text-align: right;
}
#playerlist td.players-pos {
	width: 60px;
	text-align: center;
}
#playerlist td.players-name {
	width: 185px;
	text-align: left;
	text-indent: 3px;
}
#playerlist th.players-name { text-align: left; text-indent: 3px; }
#playerlist td.players-team {
	width: 100px;
	text-align: left;
	text-indent: 3px;
}
#playerlist th.players-team { text-align: left; text-indent: 3px; }
#playerlist td.players-cost {
	width: 60px;
	text-align: center;
}
#playerlist td.players-pointsbf {
	width: 40px;
	text-align: center;
}
#playerlist td.players-pointsaf {
	width: 40px;
	text-align: center;
}
#playerlist td.players-points {
	width: 60px;
	text-align: center;
}
#playerlist td.players-ppm {
	width: 60px;
	text-align: center;
}

/* teamsheet */
#teamsheet td.team-pos {
	width: 60px;
	text-align: center;
}
#teamsheet td.team-name {
	width: 180px;
	text-align: left;
}
#teamsheet th.team-name { text-align: left; }
#teamsheet td.team-team {
	width: 100px;
	text-align: left;
}
#teamsheet th.team-team { text-align: left; }
#teamsheet td.team-cost, #teamsheet th.team-cost, #teamsheet .totalcost {
	width: 50px;
	text-align: right;
	padding-right: 10px;
}
#teamsheet td.team-pointsbf {
	width: 60px;
	text-align: center;
}
#teamsheet td.team-pointsaf {
	width: 60px;
	text-align: center;
}
#teamsheet td.team-points {
	width: 60px;
	text-align: center;
}
#teamsheet .total th { text-align: left; text-indent: 20px; }

#teamsheet tr td.tr     { background: #efe; }
#teamsheet tr.alt td.tr { background: #cfc; }

#teamsheet tr td.nonpoints     { color: #999; }

/* player info */
#playerinfo th.row				{ width: 320px; background: #fff; color: #000; }
#playerinfo tr.alt th.row		{ background: #f0f4f9; }
#playerinfo tr.tblGraphGraph td	{ background: #fff; padding: 0; }
#playerinfo td.selectedby		{ padding: 0 3px; background: #fff; }
.playerpoints {
	padding: 20px 0 0 0;
	background: #FFFFFF;
}

/* previous league tables */
#prev-tables {
	/* easy cleared */
	margin: 0 0 20px 0;
	padding: 0;
	list-style: none;
}
#prev-tables li {
	width: 30px;
	height: 30px;
	margin: 0 10px 10px 0;
	line-height: 30px;
	text-align: center;
	float: left;
}
#prev-tables li a {
	display: block;
	width: 30px;
	height: 30px;
	background: #328332;
	color: #fff;
	border: none;
}
#prev-tables li a:hover { text-decoration: underline; }

#prev-tables li.selected {
	width: 30px;
	height: 30px;
	margin: 0 10px 10px 0;
	line-height: 30px;
	background: #115511;
	color: #fff;
	text-align: center;
	float: left;
}
#prev-tables li.thisweek {
	width: 100px;
}
#prev-tables li.thisweek a {
	width: 100px;
}

/* old league table */

#leagueTableOld td.league-pos {
	width: 40px;
	text-align: center;
}
#leagueTableOld td.league-name {
	width: 520px;
	text-align: left;
	text-indent: 3px;
}
#leagueTableOld th.league-name { text-align: left; text-indent: 3px; }
#leagueTableOld td.league-points {
	width: 40px;
	padding-right: 40px;
	text-align: right;
}
#leagueTableOld th.league-points { text-align: left; text-indent: 3px; }

/* other */

#prizes p {
	font-size: 1.1em;
	line-height: 20px;
}
#positiongraph {
	padding: 10px;
	width: 620px;
	height: 434px;
	background: #fff;
}
.update {
	margin: 0 0 20px 0;
	line-height: 30px;
	padding: 1px 0;
}
/* formation */

div.formation {
	width: 200px;
	height: 296px;
	margin: 0 0 24px;
	text-indent: -9999px;
	/* 4-3-3 is the default */
	background: transparent url(/i/formation.png) no-repeat 0 0 scroll;
}
div.f4-4-2 { background-position: -200px 0; }
div.f3-5-2 { background-position: -400px 0; }

div.positions {
	width: 200px;
	height: 45px;
	margin: 0 0 10px 0;
}

/*
 * Media queries for responsive design
 * These follow after primary styles so they will successfully override. 
 */

@media all and (orientation:portrait) { 
  /* Style adjustments for portrait mode goes here */
  
}

@media all and (orientation:landscape) { 
  /* Style adjustments for landscape mode goes here */
  
}

/* Grade-A Mobile Browsers (Opera Mobile, iPhone Safari, Android Chrome)  
   Consider this: www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/ */
@media screen and (max-device-width: 480px) {
	table { font-size: 1.2em; }
	#container .onecol table {
		margin-left:  -20px;
		margin-right: -20px;
		width: 768px;
	}
  
  /* Uncomment if you don't want iOS and WinMobile to mobile-optimize the text for you
     j.mp/textsizeadjust 
  html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
}

/* 
 * print styles
 * inlined to avoid required HTTP connection www.phpied.com/delay-loading-your-print-css/ 
 */
@media print {
  * { background: transparent !important; color: #000 !important; text-shadow: none !important; }
  a, a:visited { color: #000 !important; text-decoration: none; border-bottom: 1px dotted #bbb; }
  .ir a:after { content: ""; }  /* Don't show links for images */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */ 
  tr, img { page-break-inside: avoid; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3{ page-break-after: avoid; }
/* non boilerplate */
	body {
		background: white;
		font-size: 14pt;
		color: #000;
	}
	#container {
		width: auto;
		border: 0;
		margin: 0 5%;
		padding: 0;
		float: none !important;
	}
	nav, 
	footer, 
	.tohide
	{
		display: none;
	}

	table {
		width: 98%;
		border: 1px solid #000;
		border-collapse: collapse;
	}
	tr {
	
	}

	td, th {
		border: 1px solid #000;
		padding: 8pt;
	}

	th {
		font-size: 16pt;
		font-weight: bold;
		text-align: left;
	}
	#container .leftcol, #container .rightcol, #container .centrecol {
		float: none;
	}
	.teamcols .leftcol {
		width: 98%;
	}
}
