body
{
    
    margin:0;
    padding:0;
    font-family: "Century Gothic", "Didact Gothic", arial, Sans-Serif;
    font-size:14px;
    color:#45423b;
    background-color: #091e37;
}
#page
{
    background: #091e37 url("../img/background.png") fixed no-repeat center 215px;
    padding:0;
    margin:0 auto;
    overflow:hidden;
    border-left:1px solid #333333;
    border-right:1px solid #333333;
    min-height: 100%;
    min-height: -moz-calc(100% - 164px);
    min-height: -webkit-calc(100% - 164px);
    min-height: calc(100% - 164px);
    height: auto !important;
}
#header
{
    height: 230px;
    background-size: 405px 240px;
    position:fixed;
    padding:0;
    margin:0 0 10px 0;
    background-color: #FFF;
	z-index: 999;
    left: 0;
    right: 0;
}
#banner
{
    text-align: center;
}
#banner img {
  width: 960px;
  height: auto;
}
#clientmenu
{
    font-size:0.9em;
    text-align:right;
    color:White;
    height:20px;
    padding:2px 10px 0 0;
    background-color:#3a3a3a;
}

#clientmenu a
{
    color:#edeedc;
    text-decoration:none;
    font-weight:bold;
}

#clientmenu a:hover
{
    /*color:#B9F5FB;*/
    color: #31B2B3;
}
#nav 
{
    height:20px;
    padding:10px;
    margin:0;
}
#nav ul {
	font-size:0;
	text-align:center;
	list-style:none;
	color:#000;
}
#nav li {
	font-size:20px;
	padding-right:10px;
    font-weight: bold;
    display: inline-block;
}
#nav li a, .submenu li a {
	display:inline-block;
	height:30px;
}
#nav li a {
	padding-right: 10px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-family: "Century Gothic", "Didact Gothic", arial, Sans-Serif;
}
#nav li a:link, #nav li a:visited {
	color: #3f4141;
	text-decoration: none;
	text-transform: uppercase;
	font-weight: bold;
} 
#nav li a:hover {
	/*color: #B9F5FB;*/
	color: #31B2B3;
}
#nav img
{
    padding-right:10px;
}
.mobilenav
{
  display: none;
}
.mobilemenubutton
{
  text-align: center;
  padding: 10px 0;
  display: none;
  background-color: #FFF;
}
#mobileLogo
{
    padding-bottom: 10px;
}
#btnMobileMenu
{
  padding: 9px 10px;
  background-color: transparent;
  background-image: none;
  border: 1px solid #091e37;
  box-sizing: border-box;
  border-radius: 4px;
}
#btnMobileMenu:hover
{
  cursor: pointer;
  background-color: #FFF;
}
#btnMobileMenu:focus
{
  outline: 0;
}
.menubutton
{
  text-align: center;
  padding-bottom: 10px;
  display: inline-block;
}
.icon-bar {
  background-color: #091e37;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
}
.icon-bar + .icon-bar {
  margin-top: 4px;
}
#footer 
{
    /*ackground:#b1b1b1 url("../img/footer.jpg") no-repeat top;*/
    background-color: #FFF;
    max-width:960px;
    margin: 0 auto;
    position: relative;
	height: 71px;
	clear:both;
	font-size:0.9em;
    color:#000;
    text-transform:uppercase;
    border-top:solid 1px #B1B1B1;
    text-align:center;
    border-left:1px solid #333333;
    border-right:1px solid #333333;
    border-bottom:1px solid #333333;
} 
#footer h1
{  
    font-weight:bold;
    margin-bottom:4px;
}
#footer a
{  
    color:#000;
    text-decoration:none;
}
#footer a:hover
{  
    /*color:#B9F5FB;*/
    color: #31B2B3;
}
#socialMedia
{
    padding:10px 0 0 0;
    overflow:hidden;
    clear:both;
}
#footersitemap
{
    padding:5px 0 0 0;
    overflow:hidden;
    clear:both;
}
.footersitemapitem
{
    float:left;
    margin-right:10px;
}
.footercontactitem
{
    margin:10px 0 0 10px;
}
#footercopyright
{
    text-align:center;
    width:100%;
    margin:10px 0;
    color: #FFF;
}
#footercopyright a
{
    color: #FFF;
}
#content
{
    background-color: #FFF;
    padding:0 10px;
    max-width: 940px;
    margin: 225px auto 0;
}
.col1
{
    /*float:left;*/
    display: inline-block;
    max-width:620px;
    vertical-align: top;
}
.col2
{
    /*float:right;*/
    display: inline-block;
    max-width:300px;
    vertical-align: top;
}
.imagefloatleft {
	float:left;
	margin-left: 0px;
	margin-right: 15px;
}
.imagefloatright {
	float:right;
	margin-left: 15px;
	margin-right: 0px;
}
.imagenofloat {
	margin-left: 0px;
	margin-right: 0px;
}
.imagealigncenter
{
    text-align: center;
}
div.imgcaption {
	color:#666;
	font-weight:bold;
	text-align:center;
}
.clearfix:after {
	clear:both;
	content:".";
	display:block;
	height:0;
	visibility:hidden;
}
* html .clearfix {
	height:1%;
}
.articledate
{
    text-align:right;
}
.newscontentitem
{
    margin-bottom:10px;
    font-size:0.85em;
}

div#content div.gallery
{
    text-align:center;
}
div#content div.galleryimage
{
    float:left;
    width:300px;
    height:225px;
    margin:6px;
}
div#content div.galleryimage div.imgcaption
{
    text-align:center;
    font-size:0.7em;
    font-weight:normal;
}
div#content #gallerynav
{
    text-align:center;
}
div#content #gallerynav ul
{
    margin:0 auto;
    width:100%;
}
div#content #gallerynav ul li
{
    font-size:0.85em;
    list-style-type:none;
    list-style-image:none;
    text-align:center;
    float:left;
    width:18px;
    height:18px;
    border:1px solid #999;
    padding:2px 0 0 0;
    margin:4px;
}
div#content #gallerynav a.gallerynavpage
{
    color:#999;
    text-decoration:none;
}
div#content #gallerynav a.gallerynavpage:hover
{
    color:#000;
}
div#content #gallerynav a.gallerynavpage-active
{
    color:#000;
}
div#content #gallerynav a.gallerynavpage-active:hover
{
    color:#999;
}
div#content div.infobox
{
    border-bottom:solid 2px #dedede;
}
table.racingtable th
{
    background-color: #424242;
    border-bottom: solid 1px #424242;
    color: #FFF;
    padding: 20px 10px;
    text-transform: uppercase;
    font-size: 18px;
}
table.racingtable td
{
    padding: 20px 10px;
}
table.racingtable td a
{
    text-decoration: none;
}
table.racingtable td a:hover
{
    /*color: #B9F5FB;*/
    color: #31B2B3;
}
table.racingtable tbody tr:nth-child(odd)
{
    background-color: #d8d8d8;
}
.archiveitem
{
    margin-bottom: 10px;
}
.archiveitem div
{
    display: inline-block;
    vertical-align: top;
}
.archiveitem div:nth-of-type(1)
{
    width: 150px;
    margin-right: 25px;
}
.archiveitem div:nth-of-type(2)
{
    max-width: 765px;
}

@media only screen and (max-width: 768px) {
  #header
  {
      height: auto;
      position: relative;
      margin: 0;
  }

  #banner img {
    height: auto !important;
    width: auto !important;
  }

  div#menu
	{
    display: none;
  }

  div#clientmenu
  {
    display: none;
  }

  #content
	{
		margin: 0 auto;
	}

  img
  {
    max-width: 100%;
  }

  .headerImg
  {
    max-width: 100%;
  }

  .mobilemenubutton {
    display: block;
  }

  div#nav {
    display: none;
  }
   
    table.responsivetable, table.responsivetable thead, table.responsivetable tbody, table.responsivetable th, table.responsivetable td, table.responsivetable tr 
	{
        display: block;
        border: none;
    }
    ul.mobilemenu
	{
        text-align: center;
        width: 100%;
        background: #091e37;
        color: #FFF;
    }
    ul.mobilemenu li
	{
        padding: 6px;
        border-bottom: 1px solid #FFF;
        text-transform: uppercase;
        font-family: 'Raleway', Verdana, Tahoma, Geneva, sans-serif;
        font-weight: 300;
        font-size: 12px;
    }
    ul.mobilemenu a {
        text-decoration: none;
        color: inherit;
    }
    
    .videoWrapper
    {
        width: 300px;
    }
  
    table.responsivetable thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
  
    table.responsivetable tr {
    border: 1px solid #ccc;
    margin-bottom: 10px;
    }
  
    table.responsivetable tr:last-child td {
        padding-bottom: 6px;
    }
  
    table.responsivetable td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #dbdad8;
        position: relative;
        padding-left: 70px;
        text-transform: none;
        padding-bottom: 6px;
        padding-top: 6px;
    }
  
    table#jockeytable.responsivetable td 
    {
        padding-left: 115px;
    }
  
    table#distancetable.responsivetable td 
    {
        padding-left: 115px;
    }
  
    table#horsetable.responsivetable td 
    {
        padding-left: 85px;
    }
  
    table#statssummarytable.responsivetable td 
    {
        padding-left: 115px;
    }
  
    table.responsivetable td:first-child {
        background-color: #091e37;
        color: White;
        border: 1px solid #091e37;
    }
  
    table.responsivetable td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        left: 6px;
        width: 60px;
        padding-right: 10px;
        white-space: nowrap;
    }
  
    table.racingtable td 
    {
        width: auto;
    }
    iframe
    {
        max-width: 100%;
        height: auto;
    }
    table.racingtable td:nth-of-type(1):before {
        content: "Date";
    }

    table.racingtable td:nth-of-type(2):before {
        content: "Horse";
    }
  
    table.racingtable td:nth-of-type(3):before {
        content: "Race";
    }
  
    table.racingtable td:nth-of-type(4):before {
        content: "Venue";
    }
    
    table.racingtable td:nth-of-type(5):before {
        content: "Jockey";
    }
    
    table.racingtable td:nth-of-type(6):before {
        content: "Weight";
    }
    
    table.racingtable td 
    {
        padding-left: 70px;
    }
    
    table.racingtable td:nth-of-type(1)
    {
        padding-left: 70px;
    }
    
    table.racingtable tbody tr:nth-child(even)
    {
        background-color: #FFF;
    }
}