@font-face {
  font-family: 'BigNoodle';
  src: url('../fonts/big_noodle_titling-webfont.woff2') format('woff2'),
    url('../fonts/big_noodle_titling-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;

  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

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

html {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

html,
body {
  min-height: 100%;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: #333;
  background-color: #fff;
}

img {
  border: 0;
  vertical-align: middle;
}

.container {
  margin: 0 auto;
}

.main .container {
  margin: 30px auto;
  padding: 30px;
}

p {
  margin: 0 0 20px;
}

a {
  text-decoration: none;
}

a:link,
a:visited {
  color: #676767;
}

a:hover {
  color: #333;
  text-decoration: none;
}

.banner {
  background: #3377bc;
  padding-top: 30px;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  border-bottom: 10px solid #e5e5e5;
}

.banner h1,
.banner h2 {
  font-family: 'BigNoodle';
  font-weight: 300;
}

.banner h1 {
  font-size: 50px;
  line-height: 40px;
  color: #fff;
}

.banner h2 {
  font-size: 30px;
  line-height: 30px;
  color: #dde5de;
}

.racelink {
  display: block;
  background: #e5e5e5;
}

.racelink:hover {
  background: #ddd;
}

.racelink:not(:last-child) {
  margin-bottom: 20px;
}

.racelink__title {
  height: 50px;
  padding-top: 12px;
  padding-left: 25px;
  font-family: 'BigNoodle';
  font-size: 25px;
}

.racelink--video .racelink__title {
  padding-left: 70px;
}

.racelink--video .racelink__title:after {
  content: '';
  display: block;
  width: 34px;
  height: 30px;
  background-image: url(../imgs/video-icon.png);
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 25px;
}

.racelink__image img,
.racelink__image--grid img {
  display: block;
  width: 100%;
  height: auto;
}

.racelink__image--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.racelink__image--grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.racelink__image--grid a:hover {
  opacity: 0.8;
}

.dogear {
  position: relative;
}

.dogear:before {
  content: '';
  display: block;
  left: 0;
  top: 0;
  position: absolute;
  border-bottom: 20px solid transparent;
  border-left: 20px solid #fff;
}

.logo {
  display: block;
  margin: 0 auto 25px;
}

.align-center {
  text-align: center;
}

img {
  max-width: 100%;
  height: auto;
}

.race-logo {
  display: block;
}

.race-logo img {
  width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.responsive-video {
  /* margin-top: 2em; */
  position: relative;
  /* padding-bottom: 56.25%; */
  padding-bottom: 40%;
  padding-top: 60px;
  overflow: hidden;
}

.responsive-video iframe,
.responsive-video object,
.responsive-video embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.footer {
  background-color: #fafafa;
  margin-top: 0;
  padding: 10px 0;
  color: #777;
}

.footer p {
  font-size: 12px;
  margin: 0;
}

.footer p a {
  display: block;
  color: #3377bc;
}
.footer p a:hover {
  color: #285e94;
}

.footer__left,
.footer__center,
.footer__right {
  flex: 1;
  display: flex;
  align-items: center;
}

.footer__center {
  justify-content: center;
}

.footer__right {
  justify-content: flex-end;
  text-align: right;
}

.column.footer__b-corp {
  flex: none;
  align-items: center;
  display: flex;
  padding-left: 0;
}

.footer__b-corp img {
  height: 60px;
  display: block;
}

@media (min-width: 768px) {
  .container {
    width: 750px;
  }

  .row {
    display: flex;
    flex-direction: row;
    margin-left: -30px;
    margin-right: -30px;
  }

  .column {
    flex: 1;
    padding: 0 30px;
  }

  .main .column:not(:last-child) {
    border-right: 1px solid #ccc;
  }
}

@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

@media screen and (max-width: 767px) {
  .main .container {
    margin: 25px auto;
  }

  .main .column:not(:last-child) {
    margin-bottom: 40px;
  }

  .footer {
    padding: 20px 0;
  }

  .footer p {
    padding: 10px 0;
  }

  .footer .columns {
    display: flex;
    flex-direction: column-reverse;
  }

  .footer__left,
  .footer__center,
  .footer__right,
  .footer__b-corp {
    justify-content: center;
  }

  .footer__b-corp.column {
    padding-left: 10px;
  }

  .footer__left,
  .footer__right {
    text-align: center;
  }
}

@media screen and (max-width: 991px) {
  .dogear:before {
    border-width: 14px;
  }

  .column {
    padding: 0 10px;
  }

  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
  .racelink__title {
    font-size: 18px;
    height: 40px;
    padding-top: 10px;
  }

  .racelink--video .racelink__title {
    padding-left: 50px;
  }

  .racelink--video .racelink__title:after {
    width: 26px;
    height: 24px;
    left: 15px;
  }
}

.page-title {
  display: block;
  align-content: flex-end;
  position: relative;
  background-color: #ffc627;
  padding: 20px 10px 10px;
}

.page-title:hover {
  text-decoration: none;
  background-color: #f3b300;
}

.page-title__text {
  color: #fff;
  font-family: 'BigNoodle', sans-serif;
  font-size: 4rem;
  line-height: 4rem;
  margin: 0;
}

.page-title__text span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2.5rem;
  line-height: 2.5rem;
}

@media screen and (max-width: 1200px) {
  .page-title__text {
    font-size: 3rem;
    line-height: 3rem;
  }

  .page-title__text span {
    font-size: 1.8rem;
    line-height: 2rem;
  }
}

@media screen and (max-width: 992px) {
  .page-title__text {
    font-size: 2.5rem;
    line-height: 2.5rem;
  }

  .page-title__text span {
    font-size: 1.5rem;
    line-height: 1.8rem;
  }
}

@media screen and (max-width: 767px) {
  .page-title__text {
    font-size: 4rem;
    line-height: 4rem;
  }

  .page-title__text span {
    font-size: 2.5rem;
    line-height: 2.5rem;
  }
}

@media screen and (max-width: 459px) {
  .page-title__text {
    font-size: 3rem;
    line-height: 3rem;
  }

  .page-title__text span {
    display: block;
    font-size: 2.2rem;
    line-height: 2.4rem;
  }
}
