.clearfix:after {
	clear:both;
	content:".";
	display:block;
	height:0;
	visibility:hidden;
}
* html .clearfix {
	height:1%;
}
html, body, main
{
    height: 100%;
}
body 
{
    background-color: #FFF;
}
#page
{
    margin:0 auto;
    height: auto !important;
    min-height: 100%;
    min-height: -moz-calc(100% - 122px);
    min-height: -webkit-calc(100% - 122px);
    min-height: calc(100% - 122px);
}
#client {
    padding-right: 100px;
    text-align: right;
}
#client img {
    display: inline-block;
    vertical-align: middle;
}
#clientmenu {
    display: inline-block;
    vertical-align: middle;
}
#clientmenu a {
    /*background-color: #729A17;*/
    background-color: #222629;
    color: #FFF;
    display: inline-block;
    font-weight: bold;
    padding: 10px;
    text-transform: uppercase;
}
#clientmenu li {
     display: inline-block;
     list-style-type: none;
     margin: 0 2px;
 }
#social-media {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}
#social-media a {
    margin: 0 5px;
}
#header {
    background: #C9262C;
    padding-bottom: 25px;
    text-align: center;
}
#homeHeader {
    background-repeat: no-repeat;
    background-size: contain;
    width: 100%;
    height: 0;
    padding-bottom: 33.22%;
}
div#head {
    text-align: center;
    width: 100%;
}
div#banner
{
    margin: 0 auto;
}
div#title h1 {
    color: #000;
}
div#mobilemenu
{
    display: none;
}
div#innerMenu
{
    text-align: center;
    margin: 0 auto;
    padding: 10px 0;
}
div#icon
{
    display: inline-block;
    width:75px;
    vertical-align: middle;
    margin: 0 50px;
}
div.menuButton
{
    display: inline-block;
    vertical-align: middle;
    padding: 10px;
    margin: 0 50px;
}

/* Menus */

#nav {
	text-align:center;
}

#nav {
    background-color: #C9262C;
    opacity: 0.8;
}

ul.sf-menu 
{
  display: inline-block;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  position: relative;
  text-align: center;
  text-transform: uppercase;
}

ul.sf-menu a {
  color:#000;
  display: block;
  font-weight: bold;
  text-decoration: none;
}

ul.sf-menu li.menulevel1 {
  display: inline-block;
  padding: 13px 10px;
  cursor: pointer;
  /*position: relative;*/
}

ul.sf-menu li.menulevel1:hover
{
    background-color: #EC2F2D;
    color: #000;
	/*color: #EBE839;*/
}

ul.sf-menu li.menulevel1:hover a {
    color: #000;
}

ul.submenu {
  text-align: center;
  display: none;
  position: absolute;
  left: 0;
  top: 30px;
  margin: 0 auto;
  background-color: #C9262C;
}

ul.submenu li {
    background-color: #C9262C;
  display: inline-block;
  padding: 5px 10px;
  color: #000;
  vertical-align: top;
}

ul.submenu li:hover
{
    background-color: #EC2F2D;
}

ul.submenu li a {
  transition: color 0.8s ease;
  -moz-transition: color 0.8s ease;
  -webkit-transition: color 0.8s ease;
  color:#000;
}

ul.submenu:hover {
  display: block;
}

ul.sf-menu li.menulevel1:hover .menulevel2 a {
    color: #000;
    /*color: #EBE839;*/
}

ul.sf-menu li.menulevel1:hover .menulevel2 a:hover {
    color: #000;
    /*color: #EBE839;*/
}

div#menuButton
{
  display: inline-block;  
}
ul.menu
{
    background-color:rgba(0,0,0,0.4);
    color: #FFF;
}
ul.menu li
{
    padding: 6px;
    border-bottom: 1px solid;
    font-size: 14px;
}
ul.menu a
{
      text-decoration: none;
      color: inherit;
}

ul.submenu {
  display: none;
  position: absolute;
  width: 100%;
  left: 0;
  top: 40px;
  margin: 0 auto;
}

ul.submenu:hover {
  display: block;
}

ul.submenu li a {
    color: #000;
  /*color: #EBE839;*/
}

.eracingmenu {
    display: none;
}

.mobilenav
{
  display: none;
}
.mobileMenuButton
{
  text-align: center;
  display: none;
}
#btnMobileMenu
{
  padding: 9px 10px;
  background-color: transparent;
  background-image: none;
  /*border: 1px solid #EC2F2D;*/
  border: 1px solid #000;
  box-sizing: border-box;
  border-radius: 4px;
}
#btnMobileMenu:hover
{
  cursor: pointer;
  background-color: transparent;
}
.icon-bar {
  /*background-color: #EC2F2D;*/
  background-color: #000;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
}
.icon-bar + .icon-bar {
  margin-top: 4px;
}
div#content
{
    margin:0 auto;
    padding:10px;
    max-width: 1026px;
    border-radius: 10px;
}

/* Footer */

#footer
{
    background: #262626;
    color: #FFF;
    padding: 25px 0;
    text-align: center;
    width: 100%;
}
#footer a {
    color: #FFF;
    text-decoration: none;
}
#footer a:hover {
    color: #FFF;
    text-decoration:underline;
}
#copyright
{
    color:#FFF;
    padding:6px 0;
    font-size:0.9em;
}
#siteby
{
    color:#FFF;
    font-size:0.9em;
    padding-bottom: 10px;
}
#siteby a
{
    color:#FFF;
    text-decoration:none;
}
#siteby a:hover
{
    color:#FFF;
    text-decoration:underline;
}

/* Image handling */

.imagefloatleft
{
	float:left;
	margin: 10px 10px 10px 0;
}

.imagefloatright
{
	float:right;
	margin: 10px 0 10px 10px;
}
.imagenofloat
{
	margin-left: 0px;
	margin-right: 0px;
}
.imagecenter {
    text-align:center;
}
div.imgcaption 
{
    font-size:0.8em;
	text-align:center;
	margin-bottom:10px;
}
div.galleryimage  {
    display: inline-block;
    vertical-align: top;
}
.gallery img {
    width: 200px;
    margin: 14px;
    padding: 5px;
    border: 1px #888888 solid;
}
div.galleryimage div.imgcaption
{
    text-align:center;
    background-color:#FFF;
}
.newscontents
{
    padding: 0 10px;
    background-color: #FFF;
}
.container 
{
    text-align:center;
    max-width:1020px;
    margin: 0 auto;
    padding: 50px 0;
}
.box
{
    display:inline-block;
    box-sizing: border-box;
    vertical-align:top;
    position: relative;
    width: 300px;
    margin: 0 30px;
}
.box:first-of-type {
    margin-left: 0;
}
.box:last-of-type {
    margin-right: 0;
}
.box h2
{
    color: #145800;
    text-align: left;
}
.box span
{
    display: inline-block;
    text-align: left;
    vertical-align: top;
}
.box h3 {
    color: #000;
    font-weight: bold;
    font-family: 'Muli', Verdana, Tahoma, Geneva, sans-serif;
}
.box img
{
    max-width: 300px;
}
.box a.readmore {
    background-color: #C9262C;
    color: #FFF;
    display: block;
    margin: 0 auto;
    padding: 10px;
    width: 100px;
}
.box a.readmore:hover {
    background-color: #FCB514;
    color: #C9262C;
}
#clientMenu
{
    max-width: 920px;
    margin: 0 auto;
    text-align: right;
    
}
#clientMenu a 
{
    text-decoration: none;
    text-transform: uppercase;
    color: #000;
    font-size: 0.8em;
    margin-left: 20px;
}
#horsedetail {
    width: 100%;
}
.singlecol div.col1 {
    width:auto;
}

.singlecolsidenav div.col1 {
    width:24%;
    display:inline-block;
    margin-right: 4%;
    vertical-align:top;
}

.singlecolsidenav div.col2 {
    width: 68%;
    display:inline-block;
    vertical-align:top;
}

.singlecolrightnav div.col1
{
    display: inline-block;
    vertical-align: top;
    width: 68%;
    margin-right: 4%;
}
.singlecolrightnav div.col1 div
{
    padding: 10px;
}
.singlecolrightnav ul
{
  -webkit-padding-start: 10px;
}
.singlecolrightnav div.col2
{
 display: inline-block;
 vertical-align: top;
 width: 24%;
}
.warningmsg
{
    color: #F00;
    font-weight: bold;
}

/* Home page */

#homeVideo {
    float: left;
    width: 100%;
    z-index: -9;
}

#video_overlays {
    position: absolute;
    width: 100%;
    background-color: rgba(0,0,0,0.4);
}

#video {
    animation: fadein 10s;
    -moz-animation: fadein 10s; /* Firefox */
    -webkit-animation: fadein 10s; /* Safari and Chrome */
    -o-animation: fadein 10s; /* Opera */
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-moz-keyframes fadein { /* Firefox */
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadein { /* Safari and Chrome */
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-o-keyframes fadein { /* Opera */
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.welcome {
    background: #FFF;
    padding: 25px;
}

.container h1 {
    color: #858585;
    margin-bottom:0.25em;
}
.line {
    background-color: #145800;
    display: block;
    height: 3px;
    margin: 10px auto 40px;
    text-align: center;
    width: 25px;
}
.bgWhite {
    background-color: #FFF;
    color: #000;
}
.bgWhite h1 {
    color: #C40000;
    margin: 0;
    padding-bottom: 50px;
}
.bgGrey {
    background-color: #282a2b;
    color:white;
}
.bgGrey h1 {
    color:#FCB514;
}
.bgGrey h3 {
    color:white;
}
.newsArticle {
    margin-top: -5px;
    padding: 20px 0;
    height: 120px;
}
.newsArticle div {
    margin-top: 15px;
}
#runners {
    padding-bottom: 50px;
}
.racingtable, .runnerstable, .performancestable {
    border-collapse: separate;
    border-spacing: 0 5px;
    text-align: left;
}
.racingtable th, .runnerstable th, .performancestable th {
    background-color: #C9262C;
    color: #FFF;
    padding: 10px 5px;
}
.racingtable tbody tr:nth-child(odd), .runnerstable tbody tr:nth-child(odd), .performancestable tbody tr:nth-child(odd) {
    background-color: #EEE;
}
.racingtable td, .runnerstable td, .performancestable td {
    border-bottom: 1px solid #EEE;
    border-top: 1px solid #EEE;
    padding: 10px 5px;
}
.racingtable td:first-of-type, .runnerstable td:first-of-type, .performancestable td:first-of-type {
    border-left: 1px solid #EEE;
}
.racingtable td:last-of-type, .runnerstable td:last-of-type, .performancestable td:last-of-type {
    border-right: 1px solid #EEE;
}
.racingtable a, .racingtable a:hover, .runnerstable a, .runnerstable a:hover, .performancestable a, .performancestable a:hover {
    color: #000;
}
#facilities.multiply {
    background-blend-mode: multiply;
}
#facilities div div {
    color: #858585;
    padding-bottom: 25px;
}
#facilities a {
    background-color: #C9262C;
    color: #FFF;
    display: block;
    margin: 0 auto;
    padding: 10px;
    width: 100px;

}
#facilities a:hover {
    background-color: #FCB514;
    color: #C9262C;
}
.instagram img {
    display: inline-block;
    margin: 5px;
    width: 140px;
}

.instagram a {
    color: #FFF;
}

/* Trainer Profiles */

.anthonycummings em {
    color: #000;
}

/* Contact Us */
.contactus iframe {
    float: right;
}
/* Horse Enquiry page */
#horseenequiry span {
    display: inline-block;
    width: 120px;
}
#horseenequiry input[type="text"], input[type="email"], textarea {
    font-family: 'Muli', Verdana, Tahoma, Geneva, sans-serif;
    height: 30px;
    line-height: 15px;
    margin: 2px 6px 16px 0px;
    padding-left: 5px;
}

#horseenequiry textarea {
    height: 100px;
    width: 350px;
    margin: 2px 6px 0px 0px;
    padding-top: 5px;
}

.horsesavailable .button, #horseenequiry input[type='submit'] {
   background-color: #C9262C;
   border: none;
   color: #FCB514;
   padding: 10px 30px 10px 30px;
   box-shadow: 1px 1px 1px #858585;
   -webkit-box-shadow: 1px 1px 1px #858585;
} 

#horseenequiry label.error{
    color:red;
    margin-left:10px;
}

input[name="custid"]
 {
    display:none;
}

.arion {
    float: right;
}

@media only screen and (max-width: 768px)
{
    h1{
        text-align: center;
    }
    #header, div#head {
        width: auto;
    }
     #client {
        display: none;
    }
    div#mobilemenu
    {
        display: block;
    }
    div#banner
    {
        width: 100%;
        margin: 0;
    }
    div#content
    {
        margin: auto;
        margin-top: 15px;
    }
    img
    {
        max-width: 95%;
        height: auto;
    }
    div #nav
    {
        display: none;
    }
    div #clientMenu
    {
        display: none;
    }
    #banner
    {
        text-align: center;
        margin: 0 auto;
    }
    .mobileMenuButton
    {
        display: block;
        padding: 10px 0;
        z-index: 1000;
    }
    ul.mobilemenu
    {
        text-align: center;
        width: 100%;
        background-color: #FFF;
        /*background-color:#EBE839;*/
        color: #000;
        margin-top: 10px;
    }
    ul.mobilemenu li
    {
        padding: 6px;
        /*border-bottom: 1px solid #EC2F2D;*/
        border-bottom: 1px solid #000;
        font-size: 14px;
        text-transform: uppercase;
        font-family: 'Muli', Verdana, Tahoma, Geneva, sans-serif;
        font-weight: 300;
    }
    ul.mobilemenu li.menulevel1
    {
        background: #FFF;
        /*background: #EBE839;*/
    }
    ul.mobilemenu a
    {
          text-decoration: none;
          color: #000;
    }
    .col1
    {
        max-width: 100%;
        width: 100%;
    }
    .col2
    {
        width: 100%;
    }
    #footer div.footerBox
    {
        border-right: none;
    }
    .imagefloatleft
    {
        float:none;
        display: block;
        margin: 0 auto;
    }
    .image img
    {
        padding: 0px;
        max-width: 100%;
        height: auto;
    }
     table.responsivetable, table.responsivetable thead, table.responsivetable tbody, table.responsivetable th, table.responsivetable td, table.responsivetable tr {
        display: block;
        border: none;
    }
  
  table.responsivetable thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  table.responsivetable tr {
    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 #C40000;
    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: 115px;
  }

  table#metrotable.responsivetable td 
  {
      padding-left: 85px;
  }

  table#winnerstable.responsivetable td 
  {
      padding-left: 85px;
  }

  table#placegetterstable.responsivetable td 
  {
      padding-left: 85px;
  }
  
  table#statssummarytable.responsivetable td 
  {
      padding-left: 115px;
  }
  
  table.responsivetable td:first-child {
    background-color: #C40000;
    color: White;
    border: 1px solid #C40000;
  }
  
  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.runnerstable td:nth-of-type(1):before {
        content: "Horse"
    }

    table.runnerstable td:nth-of-type(2):before {
        content: "Start"
    }

    table.runnerstable td:nth-of-type(3):before {
        content: "Race"
    }

    table.runnerstable td:nth-of-type(4):before {
        content: "Venus"
    }

    table.runnerstable td:nth-of-type(5):before {
        content: "Wgt"
    }

  table.racingtable td:nth-of-type(1):before {
        content: "Horse";
    }

    table.racingtable td:nth-of-type(2):before {
        content: "Date";
    }
  
    table.racingtable td:nth-of-type(3):before {
        content: "Race";
    }
  
    table.racingtable td:nth-of-type(4):before {
        content: "Weight";
    }

    table.racingtable td:nth-of-type(5):before {
        content: "Margin";
    }

    table.racingtable td:nth-of-type(6):before {
        content: "Jockey";
    }
    
    table.racingtable td 
    {
        padding-left: 70px;
    }
    .archiveBoxContainer
    {
        text-align: center;
    }

    .dblBox
    {
        width: 300px;
    }
    #footer div#footerSection
    {
        width: 100%;
    }
    #footer div.footerBox
    {
        height: auto;
        margin-top: 10px;
    }
    input, textarea
    {
        max-width: 250px;
    }
    .container {
        padding: 50px 5px;
    }
    .box {
        margin: 10px auto;
    }
    .gallery {
        text-align: center;
    }
    .gallery img {
        float: none;
    }
    .gallery .galleryimage {
        display: inline-block;
        vertical-align: top;
    }
}