/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

@font-face {
  font-family: 'BebasNeue';
  src: url('../fonts/bebasneue-webfont.woff') format('woff');
}

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
  overflow-y: hidden;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
img,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

*, *:before, *:after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

main {
    position: relative;
    margin: 0 auto;
    max-width: 960px;
    border: 1px solid #DDDDDD;
    overflow: hidden;

}

h1, h2 {
  font-family: 'BebasNeue';
}

header {
  font-family: 'BebasNeue';
  -webkit-font-smoothing: antialiased;
  line-height: 1;
}

.pre-loader {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 101010;
  background-color: #fff;
  text-align: center;
  padding-top: 25%;
}

#app {
    margin: 0 auto;
    position: relative;
    width: 960px;
    height: 520px;
    background-color: #F3F2EC;
    overflow: hidden;
}

.top-header {
  width: 100%;
  text-align: center;
}


.app-header {
  height: 50px;
  color: #A99A6F;
  /* padding: 11px; */
  font-size: 20px;
  width: 100%;
  border-bottom: 1px solid #DDDDDD;
}

.app-header h2 {
  margin: 0;
  line-height: 1;
  float: left;
  padding: 15px 18px;
  font-size: 20px;
}

.page {
    position: relative;
    width: 100%;
    height: 100%;
}

#page-section .page, #race-section .page {
    width: 810px;
    height: 480px;
    margin-top: 40px;
    margin-left: 80px;
}

#horse-section .page {
  width: 100%;
  height: 100%;
  margin: 0;
}

/* ------------------- Images ------------------- */

.bottom-overlay {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
}

#images[data-section='horse-section'] .top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  transform: rotate(180deg);
}

#images {
  width: 100%;
  height: 100%;
  position: relative;
}

.horse-and-rider-image, .the-record-image, .past-performance-image {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  z-index: -10;
}

#images[data-section='page-section'] .page-image {
  width: 700px;
  -webkit-transform: translate(130px, 60px);
  -moz-transform: translate(130px, 60px);
  transform: translate(130px, 60px);
  -webkit-transition: -webkit-transform 0.5s cubic-bezier(0, 0.23, 0.31, 1) 0s, width 0.5s cubic-bezier(0, 0.23, 0.31, 1) 0s;
  -moz-transition: -moz-transform 0.5s cubic-bezier(0, 0.23, 0.31, 1), width 0.5s cubic-bezier(0, 0.23, 0.31, 1);
  transition: transform 0.5s cubic-bezier(0, 0.23, 0.31, 1), width 0.5s cubic-bezier(0, 0.23, 0.31, 1);
}

#images[data-section='race-section'] .page-image {
  width: 810px;
  position: absolute;
  -webkit-transform: translate(75px, 30px);
  -moz-transform: translate(75px, 30px);
  transform: translate(75px, 30px);
  -webkit-transition: -webkit-transform 0.5s cubic-bezier(0, 0.23, 0.31, 1) 0s, width 0.5s cubic-bezier(0, 0.23, 0.31, 1) 0s;
  -moz-transition: -moz-transform 0.5s cubic-bezier(0, 0.23, 0.31, 1), width 0.5s cubic-bezier(0, 0.23, 0.31, 1);
  transition: transform 0.5s cubic-bezier(0, 0.23, 0.31, 1), width 0.5s cubic-bezier(0, 0.23, 0.31, 1);
}
/*
#images[data-section='race-section'] .page-image {
  transform: matrix(1.157, 0, 0, 1.157, 75, 30);
-webkit-transform: matrix(1.157, 0, 0, 1.157, 75, 30);
-o-transform: matrix(1.157, 0, 0, 1.157, 75, 30);
}
*/

#images[data-section='horse-section'] .page-image {
  width: 970px;
  -webkit-transform: translateY(-250px);
  -moz-transform: translateY(-250px);
  transform: translateY(-250px);
  -webkit-transition: -webkit-transform 0.5s cubic-bezier(0, 0.23, 0.31, 1) 0s, width 0.5s cubic-bezier(0, 0.23, 0.31, 1) 0s;
  -moz-transition: -moz-transform 0.5s cubic-bezier(0, 0.23, 0.31, 1), width 0.5s cubic-bezier(0, 0.23, 0.31, 1);
  transition: transform 0.5s cubic-bezier(0, 0.23, 0.31, 1), width 0.5s cubic-bezier(0, 0.23, 0.31, 1);

}

#images[data-section='horse-and-rider'] .page-image, #images[data-section='the-record'] .page-image, #images[data-section='past-performance'] .page-image {
  width: 283px;
  -webkit-transform: translate(650px, 292px);
  -moz-transform: translate(650px, 292px);
  transform: translate(650px, 292px);
  -webkit-transition: -webkit-transform 0.5s cubic-bezier(0, 0.23, 0.31, 1) 0s, width 0.5s cubic-bezier(0, 0.23, 0.31, 1) 0s;
  -moz-transition: -moz-transform 0.5s cubic-bezier(0, 0.23, 0.31, 1), width 0.5s cubic-bezier(0, 0.23, 0.31, 1);
  transition: transform 0.5s cubic-bezier(0, 0.23, 0.31, 1), width 0.5s cubic-bezier(0, 0.23, 0.31, 1);
}

#images[data-section='horse-and-rider'] .horse-and-rider-image {
  opacity: 1;
  z-index: 10;
  -webkit-transition: opacity 0.5s cubic-bezier(0, 0.23, 0.31, 1);
  -moz-transition: opacity 0.5s cubic-bezier(0, 0.23, 0.31, 1);
  transition: opacity 0.5s cubic-bezier(0, 0.23, 0.31, 1);
}

#images[data-section='the-record'] .the-record-image {
  opacity: 1;
  z-index: 10;
  -webkit-transition: opacity 0.5s cubic-bezier(0, 0.23, 0.31, 1);
  -moz-transition: opacity 0.5s cubic-bezier(0, 0.23, 0.31, 1);
  transition: opacity 0.5s cubic-bezier(0, 0.23, 0.31, 1);
}

#images[data-section='past-performance'] .past-performance-image {
  opacity: 1;
  z-index: 10;
  -webkit-transition: opacity 0.5s cubic-bezier(0, 0.23, 0.31, 1);
  -moz-transition: opacity 0.5s cubic-bezier(0, 0.23, 0.31, 1);
  transition: opacity 0.5s cubic-bezier(0, 0.23, 0.31, 1);
}


/* ------------------- Difficulty Controls ------------------- */

#difficulty-controls {
    position: absolute;
  right: 0px;
  top: 0;
}

#difficulty-controls ul {
  padding: 0;
  margin: 0;
  margin-right: 18px;
}

#difficulty-controls li {
    list-style: none;
    float: left;
    cursor: pointer;
    position: relative;
    padding: 15px 0 13px;
    border-bottom: 2px solid transparent;
}

#difficulty-controls li + li {
    margin-left: 25px;
}

#difficulty-controls li[data-difficulty='easy'] {
  color: #005941;
}

#difficulty-controls li[data-difficulty='medium'] {
  color: #F5A623;
}

#difficulty-controls li[data-difficulty='hard'] {
  color: #085E8F;
}

#difficulty-controls li.active[data-difficulty='easy'] {
  border-color: #005941;
}

#difficulty-controls li.active[data-difficulty='medium'] {
  border-color: #F5A623;
}

#difficulty-controls li.active[data-difficulty='hard'] {
  border-color: #085E8F;
}

#difficulty-controls li.active {
  -webkit-transition: border-color 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  -moz-transition: border-color 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  transition: border-color 0.3s cubic-bezier(0, 0.23, 0.31, 1);
}


/* ------------------- Interactive Sections  ------------------- */

.interactive-section {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -10;
  width: 100%;
  height: 100%;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease-out;
  -moz-transition: opacity 0.3s ease-out;
  transition: opacity 0.3s ease-out;
}

.interactive-section.active {
  opacity: 1;
  z-index: 10;
  -webkit-transition: opacity 0.3s ease-out 0.3s;
  -moz-transition: opacity 0.3s ease-out 0.3s;
  transition: opacity: 0.3s ease-out 0.3s;
}

/* ------------------- Section Triggers  ------------------- */

.section-trigger.area {
  background-color: rgba(65, 117, 5, 0.3);
  position: absolute;
  border-radius: 4px;
}

.section-trigger.back {
  position: absolute;
  left: 48%;
  top: 1%;
  border-radius: 100%;
  width: 32px;
  height: 32px;
  background-color: rgba(65, 117, 5, 1);
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.section-trigger.back:before, .section-trigger.back:after {
  content: " ";
  background-image: url("../img/arrow-up.png");
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  width: 32px;
  height: 32px;
}

.section-trigger.back:after {
  -webkit-transform: translateY(100%);
  -moz-transform: translateY(100%);
  transform: translateY(100%);
}

.section-trigger.area:hover {
  background-color: rgba(65, 117, 5, 0.6);
  cursor: pointer;
}

.section-trigger.back:hover {
  cursor: pointer;
}

.section-trigger.back:hover:before {
  -webkit-transform: translateY(-100%);
  -moz-transform: translateY(-100%);
  transform: translateY(-100%);
}

.section-trigger.back:hover:after {
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  transform: translateY(0);
}

.section-trigger.back:before, .section-trigger.back:after, .section-trigger.back:hover:before, .section-trigger.back:hover:after {
  -webkit-transition: -webkit-transform 0.2s ease-out;
  -moz-transition: -moz-transform 0.2s ease-out;
  transition: transform 0.2s ease-out;
}

.section-trigger.area:hover:before {
  content: attr(data-text);
  font-family: 'BebasNeue';
  -webkit-font-smoothing: antialiased;
  display: block;
  position: relative;
  text-align: center;
  width: 100%;
  top: 42%;
  font-size: 20px;
  color: #fff;
  text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.8);
}

#page-section .section-trigger[data-trigger="race-section"] {
  left: 130px;
  top: 60px;
  width: 700px;
  height: 218px;
}
#page-section .section-trigger[data-trigger="horse-section"] {
  left: 130px;
  top: 287px;
  width: 700px;
  height: 171px;
}

#race-section .section-trigger[data-trigger="horse-section"] {
  left: 115px;
  top: 310px;
  width: 745px;
  height: 171px;
}

#horse-section .section-trigger[data-trigger="horse-and-rider"] {
  width: 625px;
  height: 93px;
  left: 33px;
  top: 51px;
}

#horse-section .section-trigger[data-trigger="the-record"] {
  left: 660px;
  top: 51px;
  width: 293px;
  height: 93px;
}

#horse-section .section-trigger[data-trigger="past-performance"] {
  left: 33px;
  top: 146px;
  width: 921px;
  height: 154px;
}
/*
#horse-and-rider .section-trigger[data-trigger="horse-section"],
#the-record .section-trigger[data-trigger="horse-section"], 
#past-performance .section-trigger[data-trigger="horse-section"] {
  left: 778px;
  top: 436px;
}*/


/* ------------------- Touch Points ------------------- */

.touch-point {
  width: 14px;
  height: 14px;
  border-radius: 24px;
  position: absolute;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
  -webkit-animation: FILTERIN 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  -moz-animation: FILTERIN 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  animation: FILTERIN 0.3s cubic-bezier(0, 0.23, 0.31, 1);
}

.touch-point:before {
  content: " ";
  width: 20px;
  height: 20px;
  position: absolute;
  border-radius: 20px;
  left: -3px;
  top: -3px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.click-area .touch-point-label {
  position: absolute;
  top: -24px;
  right: -5px;
  min-height: 24px;
  min-width: 50px;
  max-width: 150px;
  color: white;
  background-color: green;
  opacity: 0;
}

.click-area:hover .touch-point-label {
  opacity: 1;
}

/* Touch Point Colors */

.easy .touch-point {
  background-color: #005941;
  background-color: rgba(0, 89, 65, 0.8);
}

.easy .touch-point:before {
  border: 2px solid #005941;
  border: 2px solid rgba(0, 89, 65, 1);
}

.medium .touch-point {
  background-color: #F5A623;
  background-color: rgba(245, 166, 35, 0.8);
}

.medium .touch-point:before {
  border: 2px solid #F5A623;
  border: 2px solid rgba(245, 166, 35, 1);
}

.hard .touch-point {
  background-color: #085E8F;
  background-color: rgba(8, 94, 143, 0.8);
}

.hard .touch-point:before {
  border: 2px solid #085E8F;
  border: 2px solid rgba(8, 94, 143, 1);
}

/* Touch Point States Based on Click Area */

.click-area:active .touch-point:before {
  opacity: 0;
}

.click-area:active .touch-point {
  -webkit-transform: scale(1.3);
  -moz-transform: scale(1.3);
  transform: scale(1.3);
}

.click-area.clicked .touch-point {
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
  -webkit-animation: MATS 0.5s linear;
  -moz-animation: MATS 0.5s linear;
  animation: MATS 0.5s linear;
  opacity: 0;
}

.click-area.clicked .touch-point:before {
  opacity: 0;
}

.click-area.inactive .touch-point {
  -webkit-animation: FILTEROUT 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  -moz-animation: FILTEROUT 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  animation: FILTEROUT 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  opacity: 0;
  cursor: auto;
}

/* ------------------- Custom Touch Point Positions ------------------- */

#silk-colors .touch-point{
  left: 30%;
}

#trainer-meet-statistics .touch-point {
  left: 26%;
}

#horse-name .touch-point {
  left: 9%;
}

#race-track-abbrev .touch-point {
  top: 10%;
}

#type-of-race .touch-point {
  left: 50%;
  top: 50%;
}

#course-symbols .touch-point {
  top: 120%;
}

#top-three-horses .touch-point {
  left: 50%;
  top: 50%;
}

#distance-of-race .touch-point {
  top: 23%;
}

#race-restrictions .touch-point {
  top: 43%;
}

#pace-figure .touch-point {
  top: 20%;
}

#post-position .touch-point {
  top: 30%;
}

#order-of-calls .touch-point {
  top: 50%;
  left: 50%;
}

#pp-jockey-name .touch-point {
  left: 50%;
  top: 50%;
}

#pp-medication .touch-point {
  top: 25%;
}

#equivalent-odds .touch-point {
  left: 50%;
  top: 45%;
}

#race-comments .touch-point {
  left: 50%;
  top: 45%;
}

#race-conditions .touch-point {
  left: 50%;
  top: 50%;
}


/* ------------------- Click Area Locations, Absolutely Positioned ------------------- */

.click-area{
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 2px;
  cursor: pointer;
  float: left;
  -webkit-transition: border 0.12s cubic-bezier(0, 0.23, 0.31, 1);
  -moz-transition: border 0.12s cubic-bezier(0, 0.23, 0.31, 1);
  transition: border 0.12s cubic-bezier(0, 0.23, 0.31, 1);
}

.click-area.active {
  overflow: hidden;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
  -webkit-transition: border 0.4s ease-out 0.2s, box-shadow 0.5s ease-out 0.4s;
  -moz-transition: border 0.4s ease-out 0.2s, box-shadow 0.5s ease-out 0.4s;
  transition: border 0.4s ease-out 0.2s, box-shadow 0.5s ease-out 0.4s;
}

.click-area.inactive {
  cursor: auto;
}

 /* Click Area Colors */

.easy.click-area {
  border: 4px solid rgba(0, 89, 65, 0);
}

.medium.click-area {
  border: 4px solid #F5A623;
  border: 4px solid rgba(245, 166, 35, 0);
}

.hard.click-area {
  border: 4px solid rgba(8, 94, 143, 0);
}

/* Used for Debugging Click Area Sizes (Or if the client thinks it's a better design solution) */

.easy.click-area:hover {
  border: 4px solid rgba(0, 89, 65, 0.2);
}

.medium.click-area:hover {
  border: 4px solid rgba(245, 166, 35, 0.2);
}

.hard.click-area:hover {
  border: 4px solid rgba(8, 94, 143, 0.2);
}

.easy.click-area.active {
  border: 4px solid rgba(0, 89, 65, 1);
}

.medium.click-area.active {
  border: 4px solid rgba(245, 166, 35, 1);
}

.hard.click-area.active {
  border: 4px solid rgba(8, 94, 143, 1);
}

/* ------------------- Race Section Click Areas ------------------- */

#race-number {
  width: 50px;
  height: 72px;
  left: 92px;
  top: 80px;
}

#approximate-post {
  left: 97px;
  top: 49px;
  height: 30px;
  width: 150px;
}

#track-name {
  left: 305px;
  top: 90px;
  height: 45px;
  width: 240px;
}

#name-of-race {
  left: 350px;
  top: 130px;
  height: 53px;
  width: 148px;
}

#race-distance {
  width: 98px;
  height: 66px;
  left: 160px;
  top: 81px;
}

#exotic-wagers {
  left: 256px;
  top: 45px;
  height: 35px;
  width: 621px;
}

#race-type {
  width: 53px;
  height: 24px;
  left: 94px;
  top: 170px;
}

#race-conditions {
  left: 95px;
  top: 184px;
  width: 780px;
  height: 90px;
}

/* ------------------- Horse and Rider Click Areas ------------------- */

#program-number {
  left: 70px;
  top: 128px;
  width: 36px;
  height: 50px;
}

#morning-line-odds {
  left: 127px;
  top: 131px;
  width: 50px;
  height: 40px;
}

#horse-owner {
  left: 174px;
  top: 126px;
  height: 24px;
  width: 181px;
}

#silk-colors {
  left: 174px;
  top: 146px;
  height: 24px;
  width: 600px;
}

#weight {
  left: 641px;
  top: 181px;
  width: 70px;
  height: 36px;
}

#jockey-meet-statistics {
  left: 743px;
  top: 162px;
  width: 150px;
  height: 54px;
}

#class-rating {
  left: 820px;
  top: 122px;
  height: 30px;
}

#date-of-birth {
  left: 684px;
  top: 212px;
  height: 26px;
  width: 102px;
}

#breeder {
  left: 470px;
  top: 212px;
  height: 26px;
  width: 215px;
}

#race-day-medication {
  left: 456px;
  top: 179px;
  width: 46px;
  height: 41px;
}

#pedigree {
  left: 229px;
  top: 212px;
  height: 26px;
  width: 239px;
}

#keeneland-sales-grad {
  left: 413px;
  top: 174px;
  width: 43px;
  height: 46px;
}

#horse-color-gender-age {
  left: 173px;
  top: 213px;
  height: 26px;
  width: 62px;
}

#horse-name {
  left: 173px;
  top: 185px;
  height: 31px;
  width: 243px;
}

#trainer-meet-statistics {
  left: 173px;
  top: 162px;
  height: 26px;
  width: 237px;
}

#saddle-cloth-color {
  left: 59px;
  top: 176px;
  width: 44px;
  height: 32px;
}

#distance-of-race {
  left: 133px;
  top: 107px;
  width: 30px;
  height: 145px;
}

#course-symbols {
  left: 114px;
  top: 136px;
  width: 21px;
  height: 36px;
}

#race-times {
  left: 160px;
  top: 108px;
  width: 61px;
  height: 144px;
}

#final-race-time {
  left: 218px;
  top: 108px;
  width: 35px;
  height: 144px;
}

#race-restrictions {
  left: 248px;
  top: 108px;
  width: 28px;
  height: 144px;
}

#type-of-race {
  left: 276px;
  top: 108px;
  width: 101px;
  height: 144px;
}

#pace-figure {
  left: 373px;
  top: 108px;
  width: 20px;
  height: 144px;
}

#speed-figure {
  left: 389px;
  top: 108px;
  width: 21px;
  height: 144px;
}

#post-position {
  left: 405px;
  top: 108px;
  width: 18px;
  height: 144px;
}

#order-of-calls {
  left: 419px;
  top: 108px;
  width: 82px;
  height: 144px;
}

#finish-position {
  left: 498px;
  top: 108px;
  width: 23px;
  height: 144px;
}

#pp-jockey-name {
  left: 520px;
  top: 108px;
  height: 144px;
}

#pp-medication {
  left: 597px;
  top: 108px;
  width: 17px;
  height: 144px;
}

#pp-weight {
  left: 578px;
  top: 108px;
  width: 22px;
  height: 144px;
}

#equivalent-odds {
  left: 615px;
  top: 108px;
  width: 32px;
  height: 144px;
}

#top-three-horses {
  left: 642px;
  top: 108px;
  width: 210px;
  height: 144px;
}

#race-comments {
  left: 851px;
  top: 108px;
  width: 69px;
  height: 144px;
}

#number-of-horses {
  left: 916px;
  top: 108px;
  width: 21px;
  height: 144px;
}




/* ------------------- The Record Click Area Positions ------------------- */

#starts {
  left: 321px;
  top: 117px;
  width: 22px;
  height: 100px;
}

#win {
  left: 341px;
  top: 117px;
  width: 20px;
  height: 100px;
}

#place {
  left: 361px;
  top: 117px;
  width: 20px;
  height: 100px;
}

#show {
  left: 381px;
  top: 117px;
  width: 20px;
  height: 100px;
}

#earnings {
  left: 407px;
  top: 117px;
  height: 101px;
}

#turf-lifetime-record {
  left: 467px;
  top: 135px;
  height: 24px;
  width: 216px;
}

#conditions-lifetime-record {
  left: 467px;
  top: 155px;
  height: 24px;
  width: 216px;
}

#distance-lifetime-record {
  left: 467px;
  top: 175px;
  height: 24px;
  width: 216px;
}

#here-lifetime-record {
  left: 467px;
  top: 195px;
  height: 24px;
  width: 216px;
}

#sale-information {
  left: 458px;
  top: 210px;
  height: 37px;
  width: 223px;
}

#record-at-keeneland {
  left: 281px;
  top: 193px;
  width: 37px;
  height: 24px;
}

#lifetime-record {
  left: 281px;
  top: 173px;
  width: 37px;
  height: 24px;
}

#previous-year-record {
  left: 281px;
  top: 153px;
  width: 37px;
  height: 24px;
}

#current-year-record {
  left: 281px;
  top: 133px;
  width: 37px;
  height: 24px;
}

/* ------------------- Past Performance Click Area Positions ------------------- */

#morning-workouts {
  left: 10px;
  top: 245px;
  height: 26px;
  width: 730px;
}

#layoff-line {
  top: 212px;
  left: 12px;
  height: 18px;
  width: 244px;
}

#race-dates {
  left: 28px;
  top: 110px;
  width: 45px;
  height: 141px;
}

#race-track-abbrev {
  left: 64px;
  top: 105px;
  width: 37px;
  height: 147px;
}

#course-conditions {
  left: 100px;
  top: 105px;
  width: 20px;
  height: 147px;
}

/* ------------------- Detail Card ------------------- */

.detail-card {
    position: absolute;
    z-index: 1010;
    width: 250px;
    background-color: #fff;
    z-index: 9999px;
    box-shadow: 0px 4px 16px 0px rgba(0,0,0,0.50);
    opacity: 0;
    -webkit-transform: scale(0.9);
    -moz-transform: scale(0.9);
    transform: scale(0.9);
}

.detail-card header{
    background-color: #417505;
    min-height: 36px;
    width: 100%;
    text-align: left;
    position: relative;
    color: #fff;
    font-size: 20px;
    padding-top: 8px;
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 8px;
    padding: 8px 26px 8px 18px;
    overflow: hidden;
}

.detail-card section {
    font-size: 11px;
    margin: 15px;
}

.detail-card p {
    margin: 0;
}

.detail-card .tip {
    margin-top: 12px;
    border-top: 1px solid #9a9a9a;
    padding-top: 8px;
    font-style: italic;
}

.detail-card .close-detail {
  position: absolute;
  right: 0px;
  top: 0px;
  width: 36px;
  height: 36px;
}

.detail-card .close-detail:before {
  content: " ";
  width: 24px;
  height: 24px;
  border-radius: 24px;
  position: absolute;
  left: 6px;
  top: 6px;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
}

.detail-card .close-detail:after {
  content: " ";
  height: 14px;
  width: 14px;
  background-image: url(../img/close.svg);
  position: absolute;
  left: 11px;
  top: 11px;
}

.detail-card .close-detail:hover {
  cursor: pointer;
}


.detail-card .close-detail:active:before {
  -webkit-animation: MATS 0.35s linear;
  -moz-animation: MATS 0.35s linear;
  animation: MATS 0.35s linear;
}

.easy.detail-card header {
  background-color: #005941;
  background-color: rgba(0, 89, 65, 1);
}

.medium.detail-card header {
  background-color: #F5A623;
  background-color: rgba(245, 166, 35, 1);
}

.hard.detail-card header {
  background-color: #085E8F;
  background-color: rgba(8, 94, 143, 1);
}
.detail-card.active {
  opacity: 1;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  transform: scale(1);
  -webkit-transition: opacity 0.3s cubic-bezier(0, 0.23, 0.31, 1), -webkit-transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  -moz-transition: opacity 0.3s cubic-bezier(0, 0.23, 0.31, 1), -moz-transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  transition: opacity 0.3s cubic-bezier(0, 0.23, 0.31, 1), transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
}

.detail-card.removing {
  -webkit-animation: REMOVING 0.3s cubic-bezier(0, 0.23, 0.31, 1) 0.1s;
  -moz-animation: REMOVING 0.3s cubic-bezier(0, 0.23, 0.31, 1) 0.1s;
  animation: REMOVING 0.3s cubic-bezier(0, 0.23, 0.31, 1) 0.1s;
}

/* ------------------- Animation Keyframes ------------------- */

@-webkit-keyframes REMOVING {
  to {
    opacity: 0;
    -webkit-transform: scale(0.9);
  }
}

@-moz-keyframes REMOVING {
  to {
    opacity: 0;
    -moz-transform: scale(0.9);
  }
}

@keyframes REMOVING {
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

@-webkit-keyframes FILTERIN {
  from {
    opacity: 0;
    -webkit-transform: scale(0.4);
  }

  to {
    opacity: 1;
    -webkit-transform: scale(1);
  }
}

@-moz-keyframes FILTERIN {
  from {
    opacity: 0;
    -moz-transform: scale(0.4);
  }

  to {
    opacity: 1;
    -moz-transform: scale(1);
  }
}

@keyframes FILTERIN {
  from {
    opacity: 0;
    transform: scale(0.4);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@-webkit-keyframes FILTEROUT {
  from {
    opacity: 1;
    -webkit-transform: scale(1);
  }

  to {
    opacity: 0;
    -webkit-transform: scale(0.4);
  }
}

@-moz-keyframes FILTEROUT {
  from {
    opacity: 1;
    -moz-transform: scale(1);
  }

  to {
    opacity: 0;
    -moz-transform: scale(0.4);
  }
}

@keyframes FILTEROUT {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.4);
  }
}

@-webkit-keyframes MATS {
  0% {
    -webkit-transform: scale(1.1);
    opacity: 1;
  }
  
  23% {
    box-shadow: none;
    -webkit-transform: scale(1.33);
    opacity: 0.8;
  }

  100% {
    -webkit-transform: scale(20);
    opacity: 0;
  }
}

@-moz-keyframes MATS {
  0% {
    -moz-transform: scale(1.1);
    opacity: 1;
  }
  
  23% {
    box-shadow: none;
    -moz-transform: scale(1.33);
    opacity: 0.8;
  }

  100% {
    -moz-transform: scale(20);
    opacity: 0;
  }
}

@keyframes MATS {
  0% {
    transform: scale(1.1);
    opacity: 1;
  }
  
  23% {
    box-shadow: none;
    transform: scale(1.33);
    opacity: 0.8;
  }

  100% {
    transform: scale(20);
    opacity: 0;
  }
}

/* ------------------- Tutorial ------------------- */

#tutorial {
  width: 100%;
  height: 100%;
  z-index: 1010;
  background-color: rgba(243, 242, 236, 0.9);
  position: absolute;
  -webkit-transform: translateY(100%);
  -moz-transform: translateY(100%);
  transform: translateY(100%);
  overflow: scroll;
  opacity: 0;
  -webkit-transition: opacity 0.3s cubic-bezier(0, 0.23, 0.31, 1), -webkit-transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  -moz-transition: opacity 0.3s cubic-bezier(0, 0.23, 0.31, 1), -moz-transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  transition: opacity 0.3s cubic-bezier(0, 0.23, 0.31, 1), transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);

/*  

  Bug fix 3/23/2015

  When you transformed the tutorial away from view, interacted with the app, and opened the tutorial again the scrolling befhavior would be broke. Only in Chrome. Adding the properties below fixed it. 

*/  

  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000;
}

#tutorial.active {
  opacity: 1;
  overflow: scroll;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  transform: translateY(0);
  -webkit-transition: opacity 0.3s cubic-bezier(0, 0.23, 0.31, 1), -webkit-transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  -moz-transition: opacity 0.3s cubic-bezier(0, 0.23, 0.31, 1), -moz-transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  transition: opacity 0.3s cubic-bezier(0, 0.23, 0.31, 1), transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
}

.tutorial-show {
  position: absolute;
  z-index: 11;
  width: 32px;
  height: 32px;
  background-color: #fff;
  border: 1px solid #DDDDDD;
  border-radius: 32px;
  bottom: 18px;
  left: 18px;
  overflow: hidden;
}

.tutorial-show:before, .tutorial-show:after {
  display: block;
  content: "?";
  position: absolute;
  font-family: 'BebasNeue';
  font-size: 18px;
  color: #5d5d5d;
  overflow: hidden;
  width: 32px;
  height: 32px;
  padding-left: 12px;
  padding-top: 6px;
}

.tutorial-show:after {
  -webkit-transform: translateY(100%);
  -moz-transform: translateY(100%);
  transform: translateY(100%);
}

.tutorial-show:hover:before {
  cursor: pointer;
  -webkit-transform: translateY(-100%);
  -moz-transform: translateY(-100%);
  transform: translateY(-100%);
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  -moz-transition: -moz-transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  transition: transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
}

.tutorial-show:hover:after {
  cursor: pointer;
  -webkit-transform: translateY(0%);
  -moz-transform: translateY(0%);
  transform: translateY(0%);
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  -moz-transition: -moz-transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  transition: transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
}

.tutorial-hide {
  position: absolute;
  z-index: 11;
  width: 32px;
  height: 32px;
  background-color: #fff;
  border: 1px solid #DDDDDD;
  border-radius: 32px;
  top: 18px;
  left: 18px;
  overflow: hidden;
}

.tutorial-hide:before, .tutorial-hide:after {
  display: block;
  content: "X";
  position: absolute;
  font-family: 'BebasNeue';
  font-size: 18px;
  color: #5d5d5d;
  overflow: hidden;
  width: 32px;
  height: 32px;
  padding-left: 11px;
  padding-top: 6px;
}

.tutorial-hide:after {
  -webkit-transform: translateY(100%);
}

.tutorial-hide:hover:before {
  cursor: pointer;
  -webkit-transform: translateY(-100%);
  -moz-transform: translateY(-100%);
  transform: translateY(-100%);
  -webkit-transition: transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  -moz-transition: transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  transition: transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
}

.tutorial-hide:hover:after {
  cursor: pointer;
  -webkit-transform: translateY(0%);
  -moz-transform: translateY(0%);
  transform: translateY(0%);
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  -moz-transition: -moz-transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
  transition: transform 0.3s cubic-bezier(0, 0.23, 0.31, 1);
}

.tutorial-section {
  width: 80%;
  height: 250px;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  margin: 30px 10%;
}

.tutorial-section.intro {
  background-image: url(../img/banner.png);
  background-position: center center;
  background-size: cover;

}

.tutorial-section-image {
  position: relative;
  width: 50%;
  float: left;
  height: 100%;
}

.tutorial-section-image img {
  position: absolute;
  bottom: 0;
  left: 5%;
}

.tutorial-section-content {
  width: 50%;
  float: right;
}

.tutorial-section .header {
  margin-top: 36px;
  color: #A99A6F;
}

.tutorial-section p {
  color: #5D5D5D;
  padding: 0px 20px 0 0;
}



/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}