/*
Theme Name: Making History (Red)
Theme URI: http://joshma.com/
Description: The custom made theme for the National History Bowl.
Author: Joshua Ma
Version: 1.0
*/


/* Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
-------------------------------------------------------------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
}
*:focus {
	outline: 0
}
body {
	line-height: 1;
}
h1, h2, h3, h4, h5, h6 {
	font-weight: normal;
	clear: both;
}
ol, ul {
	list-style: none;
}
blockquote {
	quotes: none;
}
blockquote:before, blockquote:after {
	content: '';
	content: none;
}
del {
	text-decoration: line-through;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: collapse;
	border-spacing: 0;
}
a img { border: none; }

/* STRUCTURE OF SITE (INCLUDING SIDEBAR)
-------------------------------------------------------------- */
body {
	background: url('img/bgtile.png') repeat transparent;
	position: relative;
}
#bigwrapper {
	background: url('img/bggrad.png') repeat-x transparent;
	min-width: 1034px;
}
#blogtitle {
	font-family: Georgia, Times New Roman, serif;
	text-transform: uppercase;
	letter-spacing: 15px;
	font-size: 18px;
	font-weight: 400;
	text-align: center;
	padding: 20px 0 8px;
	margin-bottom: 20px;
	background: url('img/titleline.png') no-repeat center bottom transparent;
	text-shadow: #EEE 1px 1px 1px;
}
#blogtitle a {
	color: #555;
	text-decoration: none;
}
#blogtitle a:hover {
	color: #777;
}
#container {
	width: 1034px;
	margin: 0 auto;
}
#content {
	width: 800px;
	float: right;
	background: none !important;
}
#content .page-title {
	height: 75px;
	background: url('img/contenttop.png') no-repeat transparent;
	font-family: Georgia, Times New Roman, serif;
	color: #383838;
	text-align: center;
	font-size: 40px;
	height: 135px;
	position: relative;
	text-shadow: white 1px 1px 2px;
	margin-bottom: 0;
}
#content .page-title-15 {
	font-size: 36px !important;
}
#content .page-title span {
	background: url('img/leaf.png') no-repeat bottom center transparent;
	padding-bottom: 25px;
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	display: block;
	width: 100%;
}
#content .page-title-11 span {
	bottom: 10px !important;
	padding-bottom: 15px !important;
}
#content .page, #content .regionalsite {
	padding: 20px 30px;
	background: url('img/contentbg.png') repeat-y center transparent;
}
#content .content-clear {
	clear: both;
	height: 0px;
}
#content .page-footer {
	height: 26px;
	width: 100%;
	background: url('img/contentbottom.png') no-repeat center transparent;
}
#primary {
	width: 234px;
	float: left;
	font-family: Georgia, Times New Roman, serif;
	text-align: center;
	margin-top: 20px;
}
#primary #logo {
	text-align: center;
	position: relative;
	top: 7px;
}
#primary #logo img {
	width: 114px;
}
#primary a {
	color: white;
	text-decoration: none;
	text-shadow: #000 0 -1px 0;
}
#primary .menu li a {
	display: none;
}
#primary .menu * li a {
	display: block !important;
}
#primary .menu li a.last-child {
	display: block !important;
	width: 100%;
	height: 98px;
	background: url('img/visitbee.png') no-repeat center transparent;
	margin-top: 20px;
}
#primary .sub-menu li.first-child a {
	padding: 20px 0 0;
	height: 28px;
	background: url('img/sidebar_sprite.png') no-repeat center -86px transparent;
	display: block;
	margin-top: 10px;
}
#primary .sub-menu li.first-child a:hover {
	background-position: center -134px;
}
#primary .sub-menu li.last-child a {
	padding: 15px 0 8px;
	height: 21px;
	background: url('img/sidebar_sprite.png') no-repeat center -182px transparent;
	display: block;
}
#primary .sub-menu li.last-child a:hover {
	background-position: center -230px;
}
#primary .sub-menu li a {
	display: block;
	padding: 14px 0 8px;
	height: 21px;
	background: url('img/sidebar_sprite.png') no-repeat center 0px transparent;
}
#primary .sub-menu li a:hover {
	background-position: center -43px;
}
#primary .sub-menu li.lone-child a {
	padding: 21px 0 12px;
	height: 21px;
	background: url('img/sidebar_sprite.png') no-repeat center -278px transparent;
	display: block;
}
#primary .sub-menu li.lone-child:hover a {
	background-position: center -332px;
}
#footer {
	text-align: center;
	font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;
	font-size: 12px;
	margin-top: 20px;
}
#footer .menu li {
	display: inline;
}
#footer .menu li a {
	color: #3f3f3f;
	text-decoration: none;
}
#footer .menu li a:hover {
	color: #999;
}
#footer .menu li > span {
	color: #8f8f8f;
}
#footer .menu li.last-child > span {
	display: none;	
}
#footer #by {
	color: #8f8f8f;
	padding: 5px 0 20px;
}
#footer #by a {
	color: black;
	text-decoration: none;
}
#footer #by a:hover {
	color: #999;
}/* IMAGES
-------------------------------------------------------------- */

#content img {
	margin: 0;
	max-width: 640px;
}
#content .attachment img {
	max-width: 900px;
}
#content .alignleft,
#content img.alignleft {
	display: inline;
	float: left;
	margin-right: 24px;
	margin-top: 4px;
}
#content .alignright,
#content img.alignright {
	display: inline;
	float: right;
	margin-left: 24px;
	margin-top: 4px;
}
#content .aligncenter,
#content img.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
#content img.alignleft, 
#content img.alignright, 
#content img.aligncenter {
	margin-bottom: 12px;
}
#content .wp-caption {
	background: #f1f1f1;
	line-height: 18px;
	text-align: center;
	margin-bottom: 20px;
	padding: 4px;
}
#content .wp-caption img {
	margin: 5px 5px 0;
}
#content .wp-caption p.wp-caption-text {
	margin: 5px;
	color: #888;
	font-size: 12px;
}
#content .wp-smiley {
	margin:0;
}
#content .gallery {
	margin: auto;
}
#content .gallery .gallery-item {
	float: left;
	margin-top: 0;
	text-align: center;
	width: 33%;
}
#content .gallery img {
	border: 2px solid #cfcfcf;
}
#content .gallery .gallery-caption {
	color: #888;
	font-size: 12px;
	margin: 0 0 12px;
}
#content .gallery dl {
	margin: 0;
}
#content .gallery img {
	border: 10px solid #f1f1f1;
}
#content .gallery br+br {
	display: none;
}

/* CONTENT STYLES
-------------------------------------------------------------- */
#toggleShow {
	text-shadow: #FFF 1px 1px 1px;
	background-color: #F2F2F2;
	display: block;
	font-size: 25px;
	padding: 10px 0px;
	text-align: center;
}
#toggleShow:hover {
	background-color: #FAFAFA;
	cursor: pointer;
}
.newsitem {
	clear:both;
}
table tr th {
	color: black;
	text-align: left;
	font-weight: 400;
}
table td, table th {
	padding: 5px 10px;
	line-height: 16px;
	vertical-align: middle;
}
table td span.detail {
	font-style: italic;
	color: #999;
	line-height: 12px;
	position: relative;
	left: 10px;
}

table.news {
	clear: left;
}
table.news td {
	padding: 5px;
	vertical-align: top;
	line-height: 22px;
}
table.news td+td {
	text-align: left !important;
}
table.news td+td * {
	float: left !important;
}

table.titlerow td {
	border: 1px solid white;
	color: black;
}
table.titlerow tr td:first-child {
	text-align: right;
	background-color: #F0F0F0;
	color: #5E5E5E;
}

table.allright td, table.allright th {
	text-align: right !important;
}

table.alt tr:nth-child(even) td {
	background-color: #F0F0F0;
}
table.hidden td {
	padding: 0;
	line-height: 22px;
}
table.hidden tr:first-child td {
	color: inherit !important;
}

table.everytwo tr:nth-child(4n+2) td, table.everytwo tr:nth-child(4n+3) td {
	background-color: #EEE;
}

table#sponsors td {
	padding: 10px;
	text-align: center;
	font-size: 18px;
	font-family: Times, serif;
}

#content .page, #content .regionalsite {
	font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;
	font-size: 12px;
	color: #5e5e5e;
	line-height: 22px;
}
#content .page p, #content .regionalsite p {
	padding: 10px 0;
}
#content em {
	color: black;
}
#content ol {
	list-style: decimal;
	margin-left: 20px;
}
#content li {
	margin-bottom: 10px;
}
#content ul {
	list-style: disc;
	margin: 10px 0 10px 20px;
}
#content h1 {
	font-family: Georgia, Times New Roman, serif;
	font-size: 26px;
	color: black;
	margin-top: 15px;
	margin-bottom: 5px;
	font-weight: 400;
}
#content h2 {
	font-size: 18px;
	padding-top: 10px;
	color: #333;
}
#content h3 {
	font-size: 16px;
	padding-top: 5px;
	color: #666;
	margin-bottom: -10px;
}
#content a {
	color: #f26c4f;
	text-decoration: none;
}
#content a:hover {
	color: #CCC;
}
/* BOARD OF ADVISORS */
table#advisors td:first-child {
	font-weight: 600;
	width: 10px;
	padding-right: 5px;
}
table#advisors td {
	padding-bottom: 10px;
	vertical-align: top;
}

/* FORMS
-------------------------------------------------------------- */
form th, form td {
	vertical-align: middle;
}
form th {
	text-align: right !important;
	font-size: 16px;
	color: #666 !important;
	padding-right: 0 !important;
	line-height: 20px;
}
form#registration th {
	width: 200px;
}
input#reg-school {
	font-size: 14px;
}
input.text_field {
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	border: 1px solid #DDD;
	padding: 8px;
	font-size: 18px;
}
input.text_field:focus {
	border: 1px solid #CD0000;
}
select {
	font-size: 14px;
	padding: 0;
}
.submit, .beesubmit {
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	background: url('img/submit.png') repeat-x transparent;
	background-position: bottom;
	border: 1px solid #DDD;
	text-shadow: white 1px 1px 2px;
	color: #F26C4F;
}
.submit {
	font-size: 15px !important;
	padding: 8px 15px !important;
}
.submit.lineheight {
    line-height: 40px;
}
.submit.minor {
	font-size: 13px !important;
	padding: 5px 10px !important;
}
.beesubmit {
	font-size: 20px !important;
	padding: 8px 18px !important;
}
.submit:hover, .beesubmit:hover {
	border-color: #888;
	cursor: pointer;
}
.submit.minor:hover {
	border-color: #888;
}
form div.error, form td.error div {
	background-color: #FFB6C1;
	border: 1px solid #666;
	color: black;
	padding: 3px 10px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}
form tr.status td {
	padding: 0 15px !important;
	margin: 0;
	border: none;
}
form tr.status.error td.msg, td.msg.error, form td.error {
	color: #8B0000;
	font-weight: 600;
}
input.text_field.error {
	background-color: #F08080;
	border: 1px solid black;
}
input.text_field.error:focus {
	background-color: #FFB6C1;
}
form table table td {
	padding: 5px;
}
form table table label {
	float: right;
	text-align: right;
}
form table table label.error {
	float: none !important;
	text-align: left !important;
}

/* REGIONAL SITES
-------------------------------------------------------------- */
.sitelist {
	margin-left: 10px;
	width: 100%;
	margin-bottom: 10px;
}
.sitelist a {
	color: #567bc6;
	text-decoration: none;
}
.sitelist a:hover {
	color: #CCC !important;
}
.sitelist .sitemessage {
	font-size: 12px;
	color: #777;
}
.sitelist .sitetitle td {
	color: #004b97;
	padding-top: 3px;
}
.sitelist .sitetitle.past td {
	color: #9c9c9c;
	padding-top: 3px;
}
.sitelist .sitetitle td:first-child {
	color: #454545;
	font-size: 14px;
	font-weight: 200;
}
.sitelist .sitenote {
	line-height: 10px;
}
.sitelist .sitenote td {
	padding: 0 10px 10px !important;
	color: #777;
}
.sitelist.condensed td {
	padding: 0 !important;
}
.sitewrap {
	float: left;
	padding: 0 20px 0 5px;
}
.sitewrap .sitelist {
	width: auto !important;
}
#content a.regionalback {
	font-size: 16px;
	display: block;
	color: #666;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 5px;
	margin-bottom: 10px;
	font-family: Georgia, serif;
	width: 100%;
	text-align: center;
	padding-top: 5px;
	margin-top: 20px;
	background: url('img/graddivider.png') no-repeat top transparent;
}
#content a.regionalback:hover {
	color: #CCC;
}

/* REGIONAL MAP
-------------------------------------------------------------- */
#rsitesmap {
	margin: 0;
	padding: 0;
	width: 600px;
	height: 399px;
	background: url('rsites/map.png') no-repeat top transparent;
	list-style: none !important;
	position: relative;
}
#rsitesmap li {
	display: block;
	height: 10px;
	width: 10px;
	position: absolute;
}
#rsitesmap li:hover {
	cursor: pointer;
}
.rsitespoint.definite {
	background: url('rsites/definitepoint.png') no-repeat center transparent;
}
.rsitespoint.definite:hover {
	background-image: url('rsites/definitepointhover.png');
}
.rsitespoint.likely {
	background: url('rsites/likelypoint.png') no-repeat center transparent;
}
.rsitespoint.likely:hover {
	background-image: url('rsites/likelypointhover.png');
}
.rsitespoint.possible {
	background: url('rsites/possiblepoint.png') no-repeat center transparent;
}
.rsitespoint.possible:hover {
	background-image: url('rsites/possiblepointhover.png');
}
.rsitespoint.past {
	background: url('rsites/pastpoint.png') no-repeat center transparent;
}
.rsitespoint.past:hover {
	background-image: url('rsites/pastpointhover.png');
}
#rsitesmap a {
	height: 10px;
	width: 10px;
	display: block;
}
#tooltip {
	position: absolute;
	z-index: 3000;
	border: 1px solid #DDD;
	background-color: #FEFEFE;
	padding: 10px;
	width: 200px;
	font-family: Lucida Grande, Lucida Sans, sans-serif;
	font-size: 10px;
	text-align: center;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	color: #666;
}
/*
 * RESULTS TABLES
 */
.results {
	font-size: 12px;
}
.results.smaller {
	font-size: 10px !important;
}
.results .qualifies td:first-child {
	border-left: 10px solid #666;
}
.results .qualifies td:last-child {
	border-right: 10px solid #666;
}
.results .finals {
	background-color: #DDD;
}
.results .winner {
	background-color: #F26C4F !important;
	color: white;
}
.results .winner td:first-child {
	border-left: 10px solid #666;
}
.results .winner td:last-child {
	border-right: 10px solid #666;
}




 .qualifies td:first-child {
	border-left: 10px solid #666;
}
 .qualifies td:last-child {
	border-right: 10px solid #666;
}
 .finals {
	background-color: #DDD;
}
 .winner {
	background-color: #F26C4F !important;
	color: white;
}
 .winner td:first-child {
	border-left: 10px solid #666;
}
 .winner td:last-child {
	border-right: 10px solid #666;
}





.key th {
	width: 10px;
}
.key .q th {
	background-color: #666;
}
.key .f th {
	background-color: #DDD;
}
.key .w th {
	background-color: #F26C4F;
}
.resultsnav {
	padding: 10px 0;
}
.resultsnav a {
	display: inline-block;
	width: 200px;
	padding: 5px;
	text-align: center;
}
.resultsnav a:hover {
	background-color: #DDD;
	color: #444 !important;
}
.resultsnav a.current {
	background-color: #F26C4F;
	color: white !important;
}

#nationals-reg .students, #nationals-reg .advisors {
    float: left;
    clear: both;
}
.resultsListing a {
    display: inline-block;
    padding: 3px 10px;
    background-color: #EEE;
    text-shadow: #FFF 0 1px 0;
}
.resultsListing a:hover {
    background-color: #FAFAFA;
}
.scrollflow {
    overflow-x: scroll;
}

#national-teams {
    font-size: 11px;
    white-space: nowrap;
}
#national-teams p {
    white-space: normal;
}
#national-teams th {
    padding-bottom: 2px;
    border-bottom: 1px solid #999;
    font-weight: 600;
    line-height: 12px;
}
#national-teams td.notes {
    color: #999;
    padding-top: 0;
    text-indent: 20px;
}
#national-teams .teamList {
    column-count: 3;
    column-gap: 20px;
    -webkit-column-count: 3;
    -webkit-column-gap: 20px;
    -moz-column-count: 3;
    -moz-column-gap: 20px;
}
#national-teams .teamList p {
    padding: 0;
}

/*
 * COUNTDOWN AND CLOCK
 */
.countdown_section {
    display: inline-block;
    text-align: center;
    margin: 0 5px;
    padding: 3px 8px;
    border: 1px solid #CCC;
    border-radius: 2px;
    font-size: 12px;
    color: #999;
    text-transform: lowercase;
}
.countdown_section .countdown_amount {
    font-size: 16px;
    color: black;
}
.jqclock {
    font-size: 16px;
    color: black;
    display: inline-block;
    padding: 8px;
    border: 1px solid #CCC;
    border-radius: 3px;
}
.jqclock .clockdate {
    display: inline-block;
    margin-right: 10px;
}
