/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
	height: 100%;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */


body {
    font-size: 14px;
	font-family: 'Open Sans', sans-serif;
}

body.embed {
	background-image: url("../img/loading.gif");
    background-position: center center;
    background-repeat: no-repeat;
	font-size: 13px;
}

body.mainMenu {
	background-color: #EAEAEA;
}
   
.horsescores th, .horsescores td {
	padding: 7px;
	text-transform: capitalize;
	border-top: 1px solid #FAFAFA;
}

.horsescores th {
	font-size: 1.05em;
	padding: 11px;
	cursor: pointer;
}

.horsescores td {
	font-size: 0.9em;
	text-align: center;
}

.horsescores[id$="-building"] {
	display: none;
}

.horsescores {
	border-collapse: collapse;
    border-spacing: 0;
	background: white;
	margin-top:40px;
}

/* In embed mode, margin is handled by body padding */
body.embed .horsescores {
	margin-top: 0;
}

.horsescores tbody tr:nth-child(odd) td { 
	background-color: #FAFAFA;
}

.horsescores tr:nth-child(1) th {
    background-color: white;
}
/* Gold */
.horsescores.results tr:nth-child(1) {
    background-color: rgba(217,164,65, 0.4);
}
/* Silver */
.horsescores.results tr:nth-child(2) {
    background-color: rgba(168,168,168, 0.3);
}
/* Bronze */
.horsescores.results tr:nth-child(3) {
    background-color: rgba(150,90,56, 0.2);
}

.mainMenuFrame {
    border: 1px solid #CCC;
	background-color: white;
    width: 600px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -115px -330px;
    padding: 30px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-moz-box-shadow: 0 0 35px -27px #000;
	-webkit-box-shadow: 0 0 35px -16px #000;
	box-shadow: 0 0 35px -27px #000; 
	transition: 0.4s ease all;
}

.mainMenu h1 {
	margin-top: 0;
}

.mainMenuFrame h3 {
    margin-top: -15px;
    margin-bottom: 30px;
}

.mainMenuFrame #googleURL {
    width: 490px;
    padding: 7px;
}

.mainMenuFrame #submitGoogleURL {
    width: 88px;
    padding: 6px;
}

.mainMenuSubFrame {
    background-color: #EDEDED;
    margin: 20px 0 0 0;
    padding: 10px;
	display: none;
}

.mainMenuSubFrame i {
    color: #999;
    display: inline-block;
    margin: 0 10px 0 0;
    min-width: 100px;
    text-align: right;
}

.subSheetsList li {
    padding: 3px 7px;
}

.subSheetsList {
    width: auto;
}

.subSheetsList li input {
    margin: 0 5px 0 0;
}

.subSheetsList li label:hover {
    background: #FAFAFA;
    outline: 5px solid #FAFAFA;
}

.mainMenuSubFrame input[type=button] {
    padding: 7px 20px;
    float: right;
    clear: both;
    margin: 30px 0 0px 0;
}

.mainMenuSubFrame textarea {
	width: 99%;
	border:0;
	font-family: consolas, monospace;
	min-height: 100px;
	margin: 7px 0;
}

table#scoreBoard tr:hover td {
    background-color: #009afd !important;
	color: #ffffff;
}

.sheetTitle {
	background-color: #007bca;
    color: white;
    height: 40px;
    margin: 0;
    position: fixed;
    top: 0;
    width: 100%;
	text-indent: 15px;
	line-height: 37px;
	font-size: 1.1em;
	font-weight: 600;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {

}

@media screen and (max-width: 640px) {
	table {
		overflow-x: auto;
		display: block;
	}
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.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;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}