﻿html, body, main {
    height: 100%;
}
body {
    /*padding-top: 126px;*/
    background-color: #f8f8f8;
    font-family: 'Muli', arial, sans-serif;
    overflow-x: hidden;
}
/* Page border*/
.page-border {
    position: fixed;
    background-color: #FFF;
    z-index: 1001;
    -webkit-transition: background-color .5s cubic-bezier(.165,.84,.44,1);
    -moz-transition: background-color .5s cubic-bezier(.165,.84,.44,1);
    transition: background-color .5s cubic-bezier(.165,.84,.44,1);
}
.page-border.bottom, .page-border.top {
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
}
.page-border.bottom {
    top: auto;
    bottom: 0;
}
.page-border.left, .page-border.right {
    top: 0;
    left: 0;
    height: 100%;
    width: 12px;
}
.page-border.left {
    left: 0;
    right: auto;
}
.page-border.right {
    left: auto;
    right: 0;
}
/* Bootstrap replacement */
.navbar {
    padding: 0!important;
}
.navbar-brand {
    background: #FFF;
    padding: 5px;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 99;
}
.navbar-brand img {
    width:60px;
}
.navbar #menuBtn {
    background: #FFF;
    padding: 5px;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 99;
}
.navbar-toggler  {
    padding: 0;
}
.navbar-blue .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(57,110,178, 1)' stroke-width='4' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.custom-toggler.navbar-toggler {
    border-color: rgb(57,110,178);
}
.navbar-toggler-icon {
    width: 58px;
    height: 58px;
}
.nav-link span.fa {
    color: #396EB2;
}
.navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {
    color: #396EB2;
}
.btn-primary {
    background-color: #396EB2 !important;
}

main {
    height: auto !important;
    min-height: 100%;
    min-height: -moz-calc(100% - 280px);
    min-height: -webkit-calc(100% - 280px);
    min-height: calc(100% - 280px);
    width: 100%;
    width: -moz-calc(100% - 20px);
    width: -webkit-calc(100% - 20px);
    width: calc(100% - 20px);
    margin: 0 auto;
}

a {
    color: #396EB2;
    text-decoration: none;
}

a:hover {
    color: #396EB2;
    text-decoration: none;
}

/* Home Page */
#splashPage {
    position: relative;
    width: 100%;
}

#splashPage video {
    z-index: -1000;
    overflow: hidden;
}

#splashPage img {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.jumbotron {
    padding: 0;
}
h1 {
    color: #396EB2;
    font-weight: 700;
}

div.bg-light {
    padding-top:20px;
}

div.container {
    margin: 0 auto;
    padding: 30px 0;
}

div.bg-customblue {
    background: #396EB2 url(../img/body-bg.jpg) no-repeat center;
    background-size: cover;
}

div.bg-racingstats {
    background: #396EB2 url('../img/Wild_Rain.jpg') no-repeat center fixed;
    background-size: cover;
    padding-bottom: 125px;
}

.instagrambox {
    text-align:center;
}

.instagrambox img {
    padding:10px;
}

div.welcome h1 {
    text-align:center;
}

div.Welcome form div {
    display: inline-block;
    vertical-align: top;
}

div.Welcome .col-md-6 {
    margin: 0 auto;
}

p.imagecenter {
    text-align: center;
}

div.body {
    margin-top:0.5em;
}

div.col-md-4 h4 {
    margin-top: 0.5em;
    font-size: 1rem;
}

.instagram {
    display: inline-block;
    margin: 5px;
    vertical-align: top;
    width: 150px;
}

.instagram img {
    width: 150px;
}

.instagramfeed .readmore a, .instagramfeed .readmore a:hover {
    color: #FFF;
}

/* Home Page Welcome */
.Welcome {
    text-align: center;
}

.Welcome .form-group {
    display: inline-block;
    vertical-align: top;
}

.Welcome .form-control {
    display: inline-block;
    vertical-align: top;
}

div.no-bottom-padding {
    padding-bottom: 0;
}

#ytFrame {
    height: calc(100% - 50px);
    width: 100%;
}

/* Home Page Horses Available */

.availableHome {
    background-color: #396EB2;
    padding: 10px;
}

.availableHome a, .availableHome a:hover {
    color: #FFF;
    text-decoration: none;
}

.horsesavailable #availableViewMore span {
    color: #FFF;
    display: block;
}

.horsesavailable #availableViewMore {
    background-color: #396EB2;
    color: #FFFFFF;
    display: inline-flex;
    font-weight: bold;
    height: 100%;
    padding: 0 25px;
    text-align: center;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
}

.horsesavailable #availableArrow {
    display: inline-flex;
    vertical-align: middle;
    width: 0;
    height: 0;
    border-top: 60px solid transparent;
    border-bottom: 60px solid transparent;
    border-left: 60px solid #396EB2;
}

.horsesavailable #mobileViewwMore {
    background-color: #396EB2;
    color: #FFFFFF;
    font-weight: bold;
    padding: 20px 0;
    text-align: center;
}

.horsesavailable #mobileArrow {
    margin: 0 auto;
    vertical-align: middle;
    width: 0;
    height: 0;
    border-top: 60px solid #396EB2;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
}

.horsesavailable #mobileViewwMore, .horsesavailable #mobileArrow {
    display: none;
}

/* Home page racing stats*/
#upcoming table {
    width: 100%;
}

#upcoming table th {
    background-color: #396EB2;
    color: #FFFFFF;
    padding: 2px 5px;
    text-align: left;
}

#upcoming table td {
    padding: 2px 5px;
    text-align: left;
}

#upcoming table tr:nth-child(odd) {
    background-color: #EEEEEE;
}

#winners table {
    border-collapse: separate;
    border-spacing: 2px 0;
    width: 100%;
}

#winners table th {
    background-color: #396EB2;
    border-collapse: separate;
    color: #FFFFFF;
    padding: 5px;
    text-align: left;
}

#winners table td {
    border-collapse: separate;
    padding: 5px;
    text-align: left;
}

#winners table tr:nth-child(odd) {
    background-color: #EEEEEE;
}

/* Images */
.gallery img {
    display: inline-block;
    margin: 10px;
}

.imagefloatleft
{
	float:left;
	margin: 10px 10px 10px 0;
}
.imagefloatright
{
	float:right;
	margin: 10px 0 10px 10px;
}
.imagenofloat
{
	margin-left: 0px;
	margin-right: 0px;
}

/* Footer */
footer {
    background: #383838;
    color: #FFF;
    margin: 0 auto;
    max-width: 100% !important;
    padding: 25px 0;
    text-align: center;
    width: 100%;
    width: -moz-calc(100% - 20px);
    width: -webkit-calc(100% - 20px);
    width: calc(100% - 20px);
}

footer a, footer a:hover {
    color: #FFF;
    text-decoration: none;
}

footer #footerSitemap {
    display: inline-block;
    vertical-align: top;
}

footer #footerSitemap .footersitemapitem {
    display: inline-block;
    margin-right: 25px;
    vertical-align: top;
    text-align: left;
}

footer #footerSitemap .footersitemapitem h1 {
    color: #FFF;
    font-size: 0.8rem;
    text-transform: uppercase;
}

footer #footerSitemap .footersitemapitem h1 a {
    color: #FFF;
    font-size: 0.8rem;
    text-decoration: none;
}

footer #footerSitemap .footersitemapitem h1 a:hover {
    color: #FFF;
    text-decoration: none;
}

footer #footerSitemap .footersitemapitem h2 {
    line-height: 1.2rem;
}

footer #footerSitemap .footersitemapitem h2 a {
    font-size: 0.8rem;
    color: #FFF;
    text-decoration: none;
}

footer #footerSitemap .footersitemapitem h2 a:hover {
    color: #FFF;
    text-decoration: none;
}

footer .copyright, footer .siteby {
    font-size: 0.8rem;
}

/* News */
.archiveitem .newsImage {
    display: inline-block;
    margin-right: 10px;
    vertical-align: top;
    width: 150px;
}

.archiveitem .newsAbstract {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    width: -moz-calc(100% - 160px);
    width: -webkit-calc(100% - 160px);
    width: calc(100% - 160px);
}

/* Horses Available */
.category_contents_image {
    display: inline-block;
    margin-right: 10px;
    vertical-align: top;
    width: 250px;
}

.category_contents_image img {
    width: 250px;
}
    
.list_title {
    display: inline-block;
    vertical-align: top;
    width: -moz-calc(100% - 260px);
    width: -webkit-calc(100% - 260px);
    width: calc(100% - 260px);
}

/* Basic two columns */

.twocol .col1 {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 320px);
}

.twocol .col2 {
    display: inline-block;
    margin-left: 20px;
    vertical-align: top;
    width: 300px;
}

.warningmsg {
    color: #cc0000;
    font-weight: bold;
}

/* Horse Page */

.horse #breeding {
    display: inline-block;
    margin: 0 10px 0 0;
    vertical-align: top;
}

.horse #description {
    display: inline-block;
    margin: 0 0 0 10px;
    vertical-align: top;
}

.horse .myhorsesthumb {
    display: inline-block;
    margin: 5px;
}

.horse .myhorsesthumb img {
    margin: 0;
}

@media (min-width: 768px) {
    #navbarMainMenu {
        position: relative;
    }

    .navbar-nav {
        position: fixed;
        right: 10px;
        top: 90px;
        background: #FFF;
        padding: 0 10px;
        z-index: 999;
    }
}

@media (max-width: 768px) {
    /* Page border*/
    .page-border {
        display: none;
    } 
    .page-border.bottom, .page-border.top {
        height: 6px;
    }

    .page-border.left, .page-border.right {
        width: 6px;
    }
    div.content {
        padding-top: 80px;
        padding-bottom: 30px;
    }

    main, footer {
        margin: 6px;
        width: auto;
    }

    #splashPage img {
        max-width: 95%;
    }

    .navbar-brand {
        position: absolute;
        left: 6px;
        top: 6px;
    }

    .navbar #menuBtn {
        position: absolute;
        right: 6px;
        top: 6px;
    }

    #navbarMainMenu {
        background: #FFFFFF;
        position: absolute;
        top: 81px;
        right: 6px;
        z-index: 99;
    }

    .row {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    .body img {
        width: 100%;
        height: auto;
    }
    .imagefloatleft, .imagefloatright {
        float:none;
        margin:10px;
    }

    /* Responsive Tables */
    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 #396EB2;
        position: relative;
        padding-left: 70px;
        text-transform: none;
        padding-bottom: 6px;
        padding-top: 6px;
    }

    table.responsivetable td:first-child {
        background-color: #396EB2;
        color: White;
        border: 1px solid #396EB2;
    }

    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;
    }

    div.racingtabs td, table.resultstable  td {
        padding-left: 70px !important;
    }

    /* Table headers */
    table.resultstable td:nth-of-type(1):before {
        content: "Horse";
    }

    table.resultstable td:nth-of-type(2):before {
        content: "Race";
    }

    table.resultstable td:nth-of-type(3):before {
        content: "Date";
    }

    table.resultstable td:nth-of-type(4):before {
        content: "Venue";
    }

    table.resultstable td:nth-of-type(5):before {
        content: "Wgt";
    }

    #winners table tr:nth-child(odd) {
        background-color: #FFFFFF;
    }

    .container .col-md-4 {
        margin-bottom: 10px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1040px !important;
    }
}

@media (min-width: 1320px) {
    .container {
        max-width: 1140px !important;
    }
}