/*********************************************************
 *
 *	EVERYWHERE / Help...
 *
 *********************************************************/
* {
	font-family: 'Fjalla One', sans-serif;
 }
h1 span, h2 span, h3 span {
	display: none;
}
h2 { 
	font-size: 2.25vw; 
}
#chartSeasonProgression, #chartSeasonTeamProgression, #chartSeasonPlayersProgression, #chartPointsPerGame, #chartYearlyProgression, #chartYearlyTeamProgression, #chartYearlyPlayersProgression, #chartYearlyPointPerGameProgression, #chartTotalProduction, #chartForwards, #chartDefensemen, #chartForwardsPointsPerGame, #chartDefensemenPointsPerGame, #chartYearlyProgressionVictories, #chartSeasonProgressionVictories, #chartTotalEfficiencyProgression {
	width	: 100%;
	height	: 500px;
}
#chartStandingsProgression {
	width	: 100%;
	height	: 700px;
}
#chartSeasonProgressionPooler {
	width	: 100%;
	height	: 700px;
}
hr {
	display: block;
	clear: both;
	padding: 10px 0;
	border-top: none;
	border-left: none;
	border-right: none;
	border-bottom: 1px solid #333333;
}
img {
	display: block;
	float: left;
	margin-right: 1vw;
}
form input {
	padding: 0.25em;
	margin: 0.5em 0 0 0;
	font-size: 0.66em;
}
form select {
	/* styling */
	background-color: white;
	border: thin solid black;
	border-radius: 8px;
	display: inline-block;
	font: inherit;
	line-height: 1em;
	padding: 0.25em;
	font-size: 0.66em;
  
	/* reset */
	margin: 0;      
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;

	/* minimal */
	background-image:
	  linear-gradient(45deg, transparent 50%, gray 50%),
	  linear-gradient(135deg, gray 50%, transparent 50%),
	  linear-gradient(to right, #ccc, #ccc);
	background-position:
	  calc(100% - 13px) calc(1em - 0.5em),
	  calc(100% - 8px) calc(1em - 0.5em),
	  calc(100% - 1.5em) 0em;
	background-size:
	  5px 5px,
	  5px 5px,
	  1px 1em;
	background-repeat: no-repeat;
}
  
form select:focus {
	background-image:
	  linear-gradient(45deg, #000088 50%, transparent 50%),
	  linear-gradient(135deg, transparent 50%, #000088 50%),
	  linear-gradient(to right, #ccc, #ccc);
	background-position:
	  calc(100% - 8px) calc(1em - 0.75em),
	  calc(100% - 13px) calc(1em - 0.75em),
	  calc(100% - 1.5em) 0em;
	background-size:
	  5px 5px,
	  5px 5px,
	  1px 1em;
	background-repeat: no-repeat;
	border-color: #000088;
	outline: 0;
}
form select:-moz-focusring {
	color: transparent;
	text-shadow: 0 0 0 #000;
}
.up {
	color: #008800;
}
.down {
	color: #ff0000;
}
.noFloat {
	display: block;
	float: none;
	clear: both;
}
a {
	color: #000088;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
p {
	margin-top:0;
}
div.table {
	overflow-x: auto;
	margin-bottom: 1vw;
}
/*table.container, table.container tbody, table.container tbody tr {
	margin: 0;
	padding: 0;
	border: none;
}
table.container tbody tr td {
	margin: 0 0 10px 0;
	padding: 0;
	border: none;
}*/
div.resume table {
	width: 33%;
}
table, tbody, tr {
	border: 1px solid black;
	border-collapse: collapse;
	white-space: nowrap
}
table th {
	background-color: #333333;
	color: #ffffff;
	padding: 0.2vw 0.2vw 0.2vw 0.2vw;
	text-align: right;
	border: 1px solid black;
	font-size: 0.75vw;
}
table th.text {
	text-align: left;
}
table th a {
	color: #ffffff;
}
table td {
	padding: 0.2vw;
	text-align: right;
	border: 1px solid black;
	font-size: 0.75vw;
}
table td.text {
	text-align: left;
}
table td a {
	color: #000000;
}
th.headerSortUp { 
    background-image: url(../img/asc.gif); 
    background-repeat: no-repeat; 
    background-position: center right; 
    background-color: #333333; 
} 
th.headerSortDown { 
    background-image: url(../img/desc.gif); 
    background-repeat: no-repeat; 
    background-position: center right; 
    background-color: #333333; 
} 
table tr.highlight, span.highlight {
	background-color: #ccffcc;
}
p.legend {
	margin-top: -1.61em;
}

div.footer {
	display: block;
	clear: both;
	margin: 1vw 0;
}
footer h6 {
	color: white;
}
footer div.left {
	margin-bottom: 1vw;
}
footer div.left ul li {
	display: inline;
}
footer div.right h6 {
	float: right;
}
.forward {
	color: #000000;
}
.defensemen {
	color: #009999;
}
.team {
	color: #00CC00;
}
.goaltender {
	color: #0000EE;
}
a.teamLink:before {
  position: relative;
  content: '(';
}
a.teamLink:after {
  position: relative;
  content: ')';
}
.poolWinner {
	display: block;
	float: left;
	clear: none;
	height: 10vw;
	margin-right: 2vw;
}
.pageTraditionnel h2 {
	font-size: 2.25vw;
}
.pageTraditionnel p {
	font-size: 0.85vw;
}
.pageTraditionnel ul li, ol li {
	font-size: 0.85vw;
}
ul#seasonNavigation {
    overflow: hidden;
}

.overlay{
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(0,0,0,0.8) url("/img/loading.gif") center no-repeat;
}
/* Turn off scrollbar when body element has the loading class */
body.loading{
    overflow: hidden;   
}
/* Make spinner image visible when body element has the loading class */
body.loading .overlay{
    display: block;
}
img.playerImg {
	width: 16.666%;
}

/*********************************************************
 *
 *	DESKTOP
 *
 *********************************************************/
@media only screen and (min-width : 1024px) {
	div.left {
		display: block;
		float: left;
		width: 48%;
		margin-right: 2%;
	}
	div.right {
		display: block;
		float: right;
		width: 48%;
		margin-left: 2%;
	}
}

/*********************************************************
 *
 *	IPAD
 *
 *********************************************************/
@media only screen 
and (min-device-width : 640px) 
and (max-device-width : 1024px)  { 

	h2 {
		margin-top: 2vw;
		margin-bottom: 0.3vw;
		padding-top: 2vw;
		padding-bottom: 0.3vw;
		font-size: 3.75vw; 
	}

	div.footer p {
		font-size: 12px;
	}
	div.resume table {
		width: 50%;
	}
	table td,table th {
		font-size: 1.75vw;
	}
	.poolWinner {
		display: block;
		float: left;
		clear: none;
		height: 15vw;
		margin-right: 4vw;
	}
	.pageTraditionnel h2 {
		font-size: 3.75vw;
	}
	.pageTraditionnel p {
		font-size: 1.75vw;
	}
	.pageTraditionnel ul li, ol li {
		font-size: 1.75vw;
	}
	form input {
		font-size: 1em;
	}
	form select {
		/* minimal */
		background-position:
		  calc(100% - 13px) calc(1em - 0.5em),
		  calc(100% - 8px) calc(1em - 0.5em),
		  calc(100% - 1.75em) 0em;
		background-size:
		  5px 5px,
		  5px 5px,
		  1px 1.5em;
		font-size: 1em;
	}
	form select:focus {
		background-position:
		  calc(100% - 8px) calc(1em - 0.75em),
		  calc(100% - 13px) calc(1em - 0.75em),
		  calc(100% - 1.75em) 0em;
		background-size:
		  5px 5px,
		  5px 5px,
		  1px 1.5em;
		font-size: 1em;
	}
}

/*********************************************************
 *
 *	IPHONE
 *
 *********************************************************/
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 640px) {
	
	h2 {
		margin-top: 2vw;
		margin-bottom: 0.3vw;
		padding-top: 2vw;
		padding-bottom: 0.3vw;
		font-size: 7vw; 
	}
	
	div.left {
		display: block;
		float: none;
		clear: both;
		width: 100%;
	}
	div.right {
		display: block;
		float: none;
		clear: both;
		width: 100%;
	}
	footer div.left {
		float: left;
		clear: none;
		width: 50%;
	}
	footer div.right {
		float: right;
		clear: none;
		width: 50%;
	}
	div.footer p {
		font-size: 9px;
	}
	table td,table th {
		font-size: 1.75vw;
	}
	table {
		margin-bottom: 2vw;
	}
	p,footer h6 {
		font-size: 2vw;
	}
	/*used to fix a bug with the font (I think...)*/
	h1 a {
		font-size: 4.5vw;
	}
	div.resume table {
		width: 50%;
	}
	.pageTraditionnel h2 {
		font-size: 8vw;
	}
	.pageTraditionnel p {
		font-size: 3.75vw;
	}
	.pageTraditionnel ul li, ol li {
		font-size: 3.75vw !important;
	}
	form input {
		font-size: 1em;
	}
	form select {
		/* minimal */
		background-position:
		  calc(100% - 13px) calc(1em - 0.5em),
		  calc(100% - 8px) calc(1em - 0.5em),
		  calc(100% - 1.75em) 0em;
		background-size:
		  5px 5px,
		  5px 5px,
		  1px 1.5em;
		font-size: 1em;
	}
	form select:focus {
		background-position:
		  calc(100% - 8px) calc(1em - 0.75em),
		  calc(100% - 13px) calc(1em - 0.75em),
		  calc(100% - 1.75em) 0em;
		background-size:
		  5px 5px,
		  5px 5px,
		  1px 1.5em;
		font-size: 1em;
	}
}

@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 425px) {
	img.playerImg {
		display: block;
		width: 60%;
		float: none;
		margin: 0 auto 10px auto;
	}
	div.resume table {
		width: 100%;
	}
	h1 span {
		clear: left;
	}
	footer div.left {
		float: none;
		clear: none;
		width: 100%;
		text-align: left;
	}
	footer div.right {
		float: none;
		clear: none;
		width: 100%;
		text-align: left;
	}
	footer h6,footer div.right h6 {
		font-size: 4vw;
		display: block;
		float: none;
		clear: both;
	}
	table td,table th {
		font-size: 3.75vw;
	}
	.poolWinner {
		display: block;
		float: none;
		clear: both;
		width: 85%;
		height: auto;
		margin: 2vw auto;
	}
}
