html, body {
    min-height: 100%;
}

main {
    min-height: 86%;
    padding: 10px;
}

nav, footer {
    min-height: 7%;
}

.borderless td, .borderless th {
    border: none;
}

a {
    color: white;
    font-weight: bold;
    margin: 5px;
}

.errors{
    color: red;
}

p.success {
    color: green;
}

p.selections {
    margin:0;
}

table.matches td {
    padding: 5px;
    text-align: center;
}

.login-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.race-start, .race-watch {
    white-space: nowrap;
}

.furlong-marker-container, .furlong-marker-number-container {
    display: flex;
}
.furlong-marker-number-container {
    display: flex;
}

.furlong-marker {
    flex: 1 1;
    background-color: #59ab5a;
    border-left: 2px solid white;
    border-right: 2px solid white;
    border-top: 2px solid white;
    display: inline;
    height: 30px;
}

.furlong-marker:first-of-type, .furlong-marker:last-of-type {
    border: none;
    max-width: 4vw;
    min-width: 4vw;
}

.furlong-marker-number {
    flex: 1 1;
    color: white;
    background-color: #59ab5a;
    text-align: center;
    width:20px;
    font-size: 1vw;
}

.furlong-marker-number.finish {
    position: relative;
    padding-left: 5px;
}


.furlong-marker-number:first-of-type, .furlong-marker-number:last-of-type {
    max-width: 4vw;
    min-width: 4vw;
}


.track {
    display: flex;
    position: relative;
}

.track-track {
    flex: 1;
    border-left: 1px solid white;
    color: white;
}

.track-track span {
    margin: auto;
    font-size: 3vw;
    text-transform: uppercase;
    line-height: 4vw;
    display: inline-block;
    margin-left: 2vw;
    font-family: "Maven Pro", Arial, sans-serif;
}

.track:nth-of-type(even) .track-track span {
    color: #3c763d;
}

.track:nth-of-type(odd) .track-track {
    background-color: #3c763d;
}

.track:nth-of-type(odd) .track-start, .track:nth-of-type(odd) .track-finish {
    background-color: #3c763d;
}

.track:nth-of-type(even) .track-track {
    background-color: #59ab5a;
}

.track:nth-of-type(odd) .track-track span {
    color: #59ab5a;
}

.track:nth-of-type(even) .track-start, .track:nth-of-type(even) .track-finish {
    background-color: #59ab5a;
}

.track-start, .track-finish {
    background-color: #3c763d;
    
    width: 4vw;
    min-width: 4vw;
    max-width: 4vw;
}

.track-finish::before{
    content: "";
    border-right: 2px white solid;
    position: absolute;
    height: 100%;
    width: 2vw;
}

.furlong-marker.finish::before {
    content: "";
    border-right: 2px white solid;
    border-top: 2px white solid;
    position: absolute;
    height: 100%;
    width: 2vw;
}

.furlong-marker.finish::after{
    content: '';
    display: inline-block;
    position: relative;
    left: 1.4vw;
    top: 7.5px;
    width: 1vw;
    height: 1vw;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    border: 2px solid rgb(255, 0, 0);
    background-color: white;
}

.jockey {
    background-image: url("images/jockey.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    width: 4vw;
    height: 4vw;
    margin: 0;
    filter: drop-shadow(0px 4px 3px black)
}

.round-buttons {
    margin: auto;
}

a.navbar-brand.site-title {
    font-family: 'Gorditas', cursive;
    color: white;
    font-size: 40px;
}

.epl-primary {
    background-color: #3c763d;
}

.epl-primary-off {
    background-color: #59ab5a;
}

.epl-secondary {
    background-color: #d58512;
}

.epl-grey {
    background-color: #8a8a8a;
}

.epl-logo {
    width: 213px;
    margin: -20px 0;
}

table.matches td.team-left {
    text-align: right;
}

table.matches td.team-right {
    text-align: left;
}

.matches.table {
    margin-top: -32px;
}

.round-buttons {
    justify-content: center;
}

.round-btn {
    width: 30px;
    max-width: 30px;
    padding: 0;
}

table.table tr {
    background-color: white;
}

.score-container {
    height: 34px;
}

.error-container {
    background-color: white;
    padding: 20px;
}

.race-card {
    padding: 10px;
}

.race-card img {
    padding: 10px 0;
}

.race-card .card-body {
    text-align: center;
}
.race-card p {
    margin-bottom: 0;
    font-size: 0.8em;
    color: dimgrey;
    font-family: Roboto, sans-serif;
}

.race-card .card-title {
    color: #3c763d;
    font-family: Roboto, sans-serif;
    font-size: 1.5em;
}

.game-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.game-card {
    margin: 10px;
    flex: 1;
    min-width: 330px;
    max-width: 400px;
}

.game-card.empty-race {
    max-width: 100%;
}

.game-runners {
    color: white;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.game-runners th {
    background-color: #d58512;
    color: white;
    width: 50%;
}

.game-runners .runner:nth-of-type(odd) {
    background-color: #3c763d;
}

.game-runners .runner:nth-of-type(even) {
    background-color: #59ab5a;
}

td.field {
    text-align: right;
    width: 50%;
}

td.value {
    text-align: left;
    width: 50%;
    font-weight: bold;
    padding-left: 10px;
}

.scroll {
    height: 150px;
    max-height: 150px;
    overflow: auto;
    overflow-x: hidden;
}

.title-container {
    min-height: 80px;
}