/*----------------------------------------------------------------------------------------
	Reset
-----------------------------------------------------------------------------------------*/
/*! normalize.css v2.1.0 | MIT License | git.io/normalize */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
    display: block;
}
audio,
canvas,
video {
    display: inline-block;
}
audio:not([controls]) {
    display: none;
    height: 0;
}
[hidden] {
    display: none;
}
html {
    font-family: helvetica, sans-serif; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
    -ms-text-size-adjust: 100%; /* 2 */
}
body {
    margin: 0;
}

a:active,
a:hover {
    outline: 0;
}
abbr[title] {
    border-bottom: 1px dotted;
}
b,
strong {
    font-weight: bold;
}
dfn {
    font-style: italic;
}
hr {
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 0;
}
mark {
    background: #ff0;
    color: #000;
}
code,
kbd,
pre,
samp {
    font-family: monospace, serif;
    font-size: 1em;
}
pre {
    white-space: pre-wrap;
}
q {
    quotes: "\201C" "\201D" "\2018" "\2019";
}
small {
    font-size: 80%;
}
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sup {
    top: -0.5em;
}
sub {
    bottom: -0.25em;
}
img {
    border: 0;
}
svg:not(:root) {
    overflow: hidden;
}
figure {
    margin: 0;
}
fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}
legend {
    border: 0; /* 1 */
    padding: 0; /* 2 */
}
button,
input,
select,
textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 2 */
    margin: 0; /* 3 */
}
button,
input {
    line-height: normal;
}
button,
select {
    text-transform: none;
}
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button; /* 2 */
    cursor: pointer; /* 3 */
}
button[disabled],
html input[disabled] {
    cursor: default;
}
input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
}
input[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box; /* 2 */
    box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}
textarea {
    overflow: auto; /* 1 */
    vertical-align: top; /* 2 */
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
nav ul,
.nav {
	overflow: hidden;
	list-style-type: none;
	padding: 0;
	margin: 0;
}


.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
.ir br { display: none; }
.hidden { display: none; }
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
.invisible { visibility: hidden; }
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }
.chromeframe {
	background: white;
	text-align: center;
	width: 100%;
	padding: 5px 0;
	margin: 0;
}

font { font-family: inherit !important;	size: inherit !important; color: inherit !important; }

span.skype_pnh_container { display: none !important; }
span.skype_pnh_print_container { display: inline !important; }









/*-----------------------------------------------------------------------------------------
	Base
-----------------------------------------------------------------------------------------*/
* {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
html {
	font-size: 100%;
}
body {
	background: white;
	font-size: .85em;
	line-height: 1.6;
	color: #333;
	/*text-align: center;*/
}
a {
	color: #428bca;
} 
h1,h2,h3,h4 {
	margin: 0 0 1em;
	line-height: 1.2;
	font-weight: normal;
}
h1 {
	font-size: 3em;
	margin: 0 auto;
	text-align: center;
}
h2 {
	font-size: 2.2em;
	margin: 0 0 2em;
	border-bottom: 2px solid #e5e5e5;
	text-align: center;
	padding: 0 0 .5em;
	text-transform: uppercase;
}
h3 {
	font-size: 2em;
	font-weight: bold;
}
:focus {
	outline: none;
}
p  {
	margin: 0 0 1em;
}
p:last-child {
	margin: 0;
}

img {
    width: auto;
    max-width: 100%;
    height: auto;    
}
#map_canvas img { /* Fixes broken Google map controls */
	max-width: none;
}


hr {
    display: none;
}









/*-----------------------------------------------------------------------------------------
	Tables
-----------------------------------------------------------------------------------------*/
table {
	width: 100%;
	margin: 0 0 5em;
}
tr{
	border-bottom: 1px solid #e6e6e8;
}
td,th {
	padding: .5em 1em;
	text-align: center;
	color: #454545;
}
th {
	text-transform: uppercase;
	background-color: #585858;
	color: white;
}
th:first-child{
	border: none;
}
th:empty {
	padding: 0;
}
tr:first-child{
	margin-top: 20px;
}
tr:last-child td {
}


th:last-child,
td:last-child {
}

table td{
	height: auto;
}
table.drawresults td{
	width: 25%;		
}
.drawresults th{
	width: 25%;		
	height: 35px;
	line-height: 2;
}
.subject{
	text-align: right;
	padding: 1em;
}
.grade {
	display: block;
	color: #2f2f2f;
	font-weight: bold;
	font-size: 1.15em;
}
.datetime,
.team {
	display: block;
	margin-top: 4px;
}	

.heading{
	font-size: 2.3em;
	text-align: left;
	text-transform: none;
	margin: 1.5em 0 1em;
}
.team1{
}
.winner,
.score{
	font-size: 1.2em;
	font-weight: bold;
}
.teams{
	font-size: 1.2em;
    font-weight: bold;
    padding: 0;
}
.rank,
.pts{
	font-weight: bold;
	font-size: 1.2em;
}
.date{
	margin-right: 2em;
}
.date:before,
.time:before{
	content: "";
	background: url('http://www.allteams.co.nz/resources/Images/SportsRunner/icons.png') no-repeat left top;
	width: 16px;
	height: 20px;
	margin-right: 3px;
	display: inline-block;
	vertical-align: middle;
}
.date:before{
	background-position: 0px -36px;
	margin-right: 4px;
}

.venue span:before{
	content: "";
	background: url('http://www.allteams.co.nz/resources/Images/SportsRunner/icons.png') no-repeat left top;
	width: 16px;
	height: 20px;
	margin-right: 4px;
	display: inline-block;
	vertical-align: text-top;
	background-position: 0px -72px;
}



.venue {
    position: relative;
    font-size: 1.2em;
}
td.venue:empty{
	display: none;
}
.no-sm-venue{
	display: none;
}
table.drawresults td.teams{
	width: 50%;
}


table.key{
	font-size: .9em;
	background-color: #f9f9f9;
	border-color: #e6e6e8;
	margin-top: -1em;
	margin-bottom: 1em;
}
table.key tr{
	border-bottom: none;
}
table.key td{
	height: auto;
	border: none;
	//color: white;
	background: transparent;
}

.winner span{
	color: white;
	background-color: #ebebeb;
	padding: 14px 17px;
	border-radius: 7px;
}
.team1,
.team2,
.vs{
	vertical-align: middle;
	text-align: left;
}
.team1,
.team2{
	display: inline-block;
	width: 43%;
}
.vs{
	display: inline-block;
	width: 2%;
	font-weight: normal;
	font-size: .85em;
	text-align: center;
	margin: 0 8px;
}
.team1{
	text-align: right;
}
.points .team,
.points .grade{
	width: auto;
	display: block;
	text-align: right;
}
.points .team:after,
.points .grade:after{
	display: none;
}
.score span,
.points span{
	position: relative;
	display: inline-block;
    height: 32px;
    position: relative;
    text-align: center;
    vertical-align: text-top;
    width: 32px;
}
.score span:after,
.points span:after{
	background-color: #F2F2F2;
	border-radius: 50%;
	content: "";
	display: block;
	height: 32px;
	left: 0;
	position: absolute;
	top: -5px;
	width: 32px;
	z-index: -1;
}
.score span,
.points td.pts,
.points td.rank{
	color: white;
}
.score span:after,
.points td.pts span:after,
.points td.rank span:after{
	height: 55px;
	width: 55px;
	top: -15px;
	left: -11px;
	background-color: #f2f2f2;
}
.points td.rank span:after{
	background-color:#f2f2f2;
}
.score span:after{
	background-color: #f2f2f2;
}


/*-----------------------------------------------------------------------------------------
	Layout
-----------------------------------------------------------------------------------------*/
.container-narrow {
	margin: 0 auto;
	position: relative;
	max-width: 900px;
}

footer {
	font-size: .8em;
	margin: 5em 0 0;
	color: #888;
	text-align: center;
}
.full-site {
	position: absolute;
	top: 0em;
	right: 0;
}
#print {
  left: 21em;
  position: absolute;
  top: 0;
}
#sport {
	margin: 0 0 2em;
}
.sport-label {
	display: inline-block;
	vertical-align: middle;
	margin: 0 .5em 0 0;
	text-transform: uppercase;

}
#sport select {
	display: inline-block;
	width: 14em;
	vertical-align: middle;

}
#wrapper{
	border: none;
	padding: 0;
}
#content{
	overflow: scroll;
}