html,
body {
    height: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.navbar, .navbar-default {
  background-image: none !important;
  background-color: rgba(0,0,0,.45) !important;
  /*background-color: rgba(78, 139, 242, 0.1) !important;*/
  /*transition: background-color 1s linear;*/
}

/*.navbar-collapse.navbar-collapsing {
  background-color: rgba(0,0,0,0.7) !important;
}
*/

  #w4-collapse {
    background-color: rgba(0,0,0,1) !important;
  }


.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* Start of custom styles */
/*.heatcount {
    float: right;
}

.heading1 {
    color: #000000;
    font-weight: bold;
    display: inline;
}

.heading2 {
    color: #ff0000;
    font-weight: bold;
    display: inline;
    padding: 0 5px 0 5px;
}

.dwd {
    color: #000000;
    font-weight: bold;
}

.gprm {
    color: #0000ff;
    font-weight: bold;
}*/

/* Help information */
/*.accordion {
    background-image: -moz-linear-gradient(center bottom , #F8F8F8 40%, #FFF 60%) !important;
    border: 1px solid #D8DCDF;
    border-radius: 5px;
    box-shadow: 0px 1px 0px #FFF;
    padding: 2px 10px;
    font-size: 120%;
    font-weight: bold;
    margin-bottom: 2px;
    margin-left: 15px;
}

.help {
    margin-bottom: 10px;
    margin-left: 25px;
}
*/
body {
  background-color: black;
  background-image: url(../images/carbonfiber-tile-dark.jpg);
}

h1, h2, h3 {
  font-family: 'Michroma';
}

.pack-logo {
	width: 100%;
	height: auto;
  max-width: 230px;
  opacity: 1.0;
  padding: 1rem;
  background-color: white;
}

.pack-logo--461 {
}

.pack-logo--420 {
	max-width: 180px;
}

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

.site-index {
  margin-top: 30px;
}

.footer, footer {
  display: none;
}

.fullscreen-bg, .fullscreen-bg-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: -100;
}

.fullscreen-bg__video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    -webkit-transform: translate(-50%, -50%);
       -moz-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
}

.fullscreen-bg-overlay__inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;

  /*background-color: rgba(41, 73, 135, 0.5);*/
  background-color: rgba(41, 41, 41, 0.5);
  /*background-image: url(../images/carbonfiber-tile-dark.jpg);*/
   z-index: -99;

   text-align: center;
}

.home__tile-nav-container__tile {
  height: 140px;
  margin: 10px 0;
  font-size: 2rem;
}

.home__tile-nav-container__tile__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;

  padding: 10px;

  border: 2px solid white;
  border-radius: 8px;

  text-align: center;
}

.home__tile-nav-container__tile i {
  display: block;
  font-size: 3rem;
  margin-bottom: 20px;
}

.home__tile-nav-container__tile a {
  text-decoration: none;
}

.home__tile-nav-container__tile .home__tile-nav-container__tile__inner {
  background-color: rgb(190, 0, 30, 1);
}

.home__tile-nav-container__tile.home__tile-nav-container__tile--race-info .home__tile-nav-container__tile__inner {
  background-color: #CE1126;
}

.home__tile-nav-container__tile.home__tile-nav-container__tile--grand-finals-schedule .home__tile-nav-container__tile__inner,
.home__tile-nav-container__tile.home__tile-nav-container__tile--masterschedules .home__tile-nav-container__tile__inner,
.home__tile-nav-container__tile.home__tile-nav-container__tile--schedules .home__tile-nav-container__tile__inner {
  background-color: #003F87;
}

.breadcrumbs-container {
  display: none;
}

.page-race-dash  #refresh-display-container {
  position: absolute;
  top: 52px;
  right: 0;
  width: 50px;
  height: 50px;
  padding: 5px;

  background-color: rgba(0,0,0,.45) !important;
}

.race-heat-container, .race-standings-container {
  display: flex;
  flex-direction: column;
  /*align-items: stretch;*/
  flex-wrap: nowrap;
  width: 100%;
}

.race-heat-container .race-heat__empty-explanation {
  /* Usually not visible */
  display: none;
}

.race-heat-container--empty .race-heat__empty-explanation {
  /* Unless the heat is empty */
  display: flex;
}

.race-heat-container--empty .race-heat__description {
  /* No description either if empty */
  display: none;
}

.racer-tile-wide, .race-heat__empty-explanation {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100px;
  overflow: hidden;

  color: white;
  /*background-color: rgba(78, 139, 242, 0.8);*/
  background-color: rgba(40, 40, 40, 0.95);

  margin: 5px 0;

  border: 2px solid white;
  border-radius: 8px;
}

.race-heat__empty-explanation {
  flex-direction: row;
  align-items: center;
  align-content: center;

  background-color: rgba(40, 40, 40, 0.8);
}

.race-heat__empty-explanation span {
  display: block;
  align-content: center;
  width: 100%;
  flex-grow: 1;
  text-align: center;

  font-size: 3rem;
}

/* Hide results for on-deck heat */
.race-heat-container--next .racer-tile__result-container,
.race-heat-container--next .racer-tile__primary_container {
  display: none !important;
}

.racer-tile--finished-1 .racer-tile__primary_container {
  background-color: rgb(201,137,16);
}

.racer-tile-wide.racer-tile--finished-1 {
  /*background-color: rgba(201,137,16,0.95);*/
}

.racer-tile--finished-2 .racer-tile__primary_container {
  background-color: rgb(100,100,100);
}

.racer-tile-wide.racer-tile--finished-2 {
  /*background-color: rgba(100,100,100,0.95);*/
}

.racer-tile--finished-3 .racer-tile__primary_container {
  background-color: rgb(150,90,56);
}

.racer-tile-wide.racer-tile--finished-3 {
  /*background-color: rgba(150,90,56,0.95);*/
}

.racer-tile-wide > div {
  padding: 10px;
  position: relative;
  min-height: 80px;
}

.racer-tile-wide .racer-tile__primary_container {
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  text-align: center;

  border-right: 2px solid white;
}

.racer-tile__place {
  text-align: center;
  font-size: 3rem;
  width: 25px;
}

.racer-tile__place--2-digits {
  font-size: 2rem;
}

.racer-tile-wide .racer-tile__image_container {
  padding: 0;
  height: 100%;
  min-width: 80px;
  overflow: hidden;
}

.racer-tile__info_container {
  flex-grow: 1;
  font-size: 1rem;
}

.racer-tile__info_container__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  align-items: left;

  padding-left: 10px;
}

.racer-tile__lane {
  justify-content: center;
  font-size: 1.2em;
}

.racer-tile__lane label {
  font-weight: bold;
}

.racer-tile__name {
  font-size: 4.0em;
  line-height: 1.1;
  font-weight: 600;
}

.racer-tile__result-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
  border-left: 2px solid white;

  font-family: 'Michroma';

  width: 120px;
  min-width: 120px;

  font-size: 2rem;

  /*background-color: rgb(210, 10, 50);*/
  background-color: rgb(190, 0, 30);
}

.racer-tile__finish-time-value {
  font-size: 1em;
}

.racer-tile__finish-time-offset {
  font-size: 0.7em;
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .nav.navbar-right a {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
  }
}

@media screen and (max-width: 320px) {
  .racer-tile-wide .racer-tile__image_container {
    display: none;
  }
}

@media screen and (max-width: 575px) {
  .navbar, .navbar-default {
    background-color: rgba(0,0,0,1) !important;
  }

  .pack-logo {
    max-width: 120px;
  padding: 1rem;
  background-color: white;
}

.pack-logo--420 {
	max-width: 96px;
}

.logo-row {
	margin: 1rem 0;

}

  .site-index {
    margin-top: 0;
  }

  .racer-tile__info_container {
    font-size: 1rem;
  }

  .racer-tile__name {
    font-size: 2.25em;
    line-height: 1.2;
    font-weight: 400;
    text-overflow: ellipsis;
  }

  .racer-tile__result-container {
    width: 80px;
    min-width: 80px;
    font-size: 1.1rem;
  }

  .racer-tile__finish-time-value {
    font-weight: 600;
  }

  .racer-tile-wide .racer-tile__image_container {
    min-width: 60px;
    overflow: hidden;
  }

  .race-heat-container--next .racer-tile-wide .racer-tile__image_container {
    min-width: 80px;
  }
}

@media screen and (min-width: 576px) and (max-width: 1024px){

  .racer-tile__info_container {
    font-size: 1rem;
  }

  .racer-tile__name {
    font-size: 3.25em;
    line-height: 1.2;
    font-weight: 400;
    text-overflow: ellipsis;
  }

  .racer-tile__result-container {
    width: 80px;
    min-width: 80px;
    font-size: 1.1rem;
  }
}

.race-heat__description {
  display: flex;
  flex-direction: row;
}

.race-heat__description__group {
  flex-grow: 1;
  padding: 5px;
}

.race-heat__description__group label {
  display: none;
}

.race-heat__description__group div {
  font-size: 1.5rem;
}

.race-heat__description__round {
  display: flex;
  flex-direction: row;
  padding: 5px;
}

.race-heat__description__heat {
  display: flex;
  flex-direction: row;
  padding: 5px;
}

.race-heat__description__round label, .race-heat__description__heat label {
  margin-right: 5px;
}

.race-standings-container__info {
  padding: 5px;
}

/* Countdown */
#refresh-container {
  display: none;
}

#refresh-countdown {
  position: relative;
  margin: auto;
  height: 40px;
  width: 40px;
  text-align: center;
}

#refresh-countdown-number {
  color: white;
  display: inline-block;
  line-height: 40px;
}

#refresh-countdown svg {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  transform: rotateY(-180deg) rotateZ(-90deg);
}

#refresh-countdown svg circle {
  stroke-dasharray: 113px;
  stroke-dashoffset: 0px;
  stroke-linecap: round;
  stroke-width: 2px;
  stroke: white;
  fill: none;
  /*transition: stroke-dashoffset 1.05s linear;*/
  /*animation: countdown 10s linear infinite forwards;*/
}

#refresh-countdown.countdown-reloading svg circle {
  transition: none
}

@keyframes countdown {
  from {
    stroke-dashoffset: 0px;
  }
  to {
    stroke-dashoffset: 113px;
  }
}

.racer-tile__group-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  opacity: 0.5;

  -webkit-transform: translate(30%, 30%);
     -moz-transform: translate(30%, 30%);
      -ms-transform: translate(30%, 30%);
    transform: translate(30%, 30%);
}

.racer-tile__group-badge--air-and-space {
  background: url(../images/bobcat.png) center center no-repeat;
  background-size: contain;
}

.racer-tile__group-badge--wolf,
.racer-tile__group-badge--wolves2,
.racer-tile__group-badge--wolves-2,
.racer-tile__group-badge--wolves {
  background: url(../images/wolf.png) center center no-repeat;
  background-size: contain;
}

.racer-tile__group-badge--bear,
.racer-tile__group-badge--bears {
  background: url(../images/bear.png) center center no-repeat;
  background-size: contain;
}

.racer-tile__group-badge--lion,
.racer-tile__group-badge--lions {
  background: url(../images/lion.png) center center no-repeat;
  background-size: contain;
}

.racer-tile__group-badge--tiger,
.racer-tile__group-badge--tigers {
  background: url(../images/tiger.png) center center no-repeat;
  background-size: contain;
}

.racer-tile__group-badge--bobcat,
.racer-tile__group-badge--bobcats {
  background: url(../images/bobcat.png) center center no-repeat;
  background-size: contain;
}

.racer-tile__group-badge--webelos-i, .racer-tile__group-badge--webelos-1,
.racer-tile__group-badge--webelos-ii, .racer-tile__group-badge--webelos-2,
.racer-tile__group-badge--webelosi, .racer-tile__group-badge--webelos1,
.racer-tile__group-badge--webelosii, .racer-tile__group-badge--webelos2 {
  background: url(../images/webelos.png) center center no-repeat;
  background-size: contain;
}

.page-race-dash--projected .navbar {
  display: none;
}


.page-race-dash--projected .section-header {
  margin-top: 10px;
  padding: 10px 5px;
  background-color: black;
}

.page-race-dash--projected .section-header h2 {
  font-weight: bold;
  margin: 0;
}

.page-race-dash--projected .wrap > .container {
  padding: 20px 15px;
  width: 1800px;
}

.page-race-dash--projected .race-heat__description,
.page-race-dash--projected .race-standings-container__info {
  display: none;
}

.page-race-dash--projected .racer-tile__result-container {
  width: 180px;

  font-size: 3rem;
  font-weight: 600;
}

.page-race-dash.page-race-dash--projected #refresh-display-container {
  top: 0px;
}

