

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
}

body {
  margin-bottom: 60px;
  font-family: 'Open Sans';
  background-color: #f1f1f1;
}

main {
  padding-bottom: 245px;
}

.hero {
  background-image: url('/images/start-hero.png');
  height: 50vh;
  width: 100%;
  background-size: cover;
  background-position: top center;
}
.start-links {
  margin-top: -30px;
}
.start-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: space-between;
  padding: 12px;
  color: white;
  &.start-link-1 {
    background-color: rgb(249, 190, 0);
  }
  &.start-link-2 {
    background-color: rgb(126, 190, 66);
  }
  .header {
    font-family: 'Dosis', sans-serif;
    font-size: 30px;
    font-weight: 600;
  }
  .cta {
    margin-top: 8px;
    font-family: 'Dosis', sans-serif;
  }
}

.link {
  cursor: pointer;
}

.header3 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .logo {
    max-width: 100%;
    img {
      max-width: 100%;
    }
  }
  .race-logos {
    /*display: flex;*/
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    .race-link {
      cursor: pointer;
    }
    img {
      width: 19%;
      max-height: 100px;
    }
  }
}


.new-header {
  background-color: #022169;
  .top-orange {
    height: 12px;
    background-image: url('/images/top-orange.jpg');
  }
  /*.org-logos {*/
  /*  margin-left: -20px;*/
  /*  .person {height: 100px;}*/
  /*  .logo {height: calc(100px * 0.458) !important;}*/
  /*}*/
  /*.race-logos {*/
  /*  !*display: flex;*!*/
  /*  flex-direction: row;*/
  /*  justify-content: space-evenly;*/
  /*  width: 100%;*/
  /*  text-align: center;*/
  /*  padding: 20px 0;*/
  /*  img {*/
  /*    width: 19%;*/
  /*    max-height: 100px;*/
  /*  }*/
  /*}*/
}

@media (min-width: 875px) {
  .header3 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    .logo {
      width: 100%;
      max-width: 500px;
      img {
        width: 100%;
        max-width: 100%;
      }
    }
    .race-logos {
      display: flex;
      flex-direction: row;
      justify-content: end;
      width: 100%;
      align-content: center;
      img {
        display: flex;
        align-self: center;
        height: 80%;
        max-height: 60px;
        max-width: 70px;
      }
    }
  }
}
@media (min-width: 1100px) {
  .header3 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    .logo {
      width: 100%;
      max-width: 700px;
      img {
        width: 100%;
        max-width: 100%;
      }
    }
    .race-logos {
      display: flex;
      flex-direction: row;
      justify-content: end;
      width: 100%;
      align-content: center;
      img {
        display: flex;
        align-self: center;
        height: 80%;
        max-height: 80px;
        max-width: 90px;
      }
    }
  }
}

header {
  background-color: #022169;
  nav.navbar {
    background-color: transparent !important;
  }
  .header__logo {
    position: absolute;
    left: -20px;
  }
}
.race-logos {
  /*img {*/
  /*  height: 50px;*/
  /*}*/
}


@media (min-width: 0px) and (max-width: 480px) {
  header {
    height: 100px;
  }
  .header__logo {
    height: 100px;
    img.person {
      height: 100px !important;
    }
    img.logo {
      height: calc(100px * 0.458) !important;
    }
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  header {
    height: 140px;
  }
  .header__logo {
    height: 140px;
    img.person {
      height: 140px !important;
    }
    img.logo {
      height: calc(140px * 0.458) !important;
    }
  }
}

@media (min-width: 768px) and (max-width: 1260px) {
  header {
    height: 175px;
  }
  .header__logo {
    height: 175px;
    img.person {
      height: 175px !important;
    }
    img.logo {
      height: calc(175px * 0.458) !important;
    }
  }
}

@media (min-width: 1261px) {
  header {
    height: 200px;
  }
  .header__logo {
    height: 200px;
    img.person {
      height: 200px !important;
    }
    img.logo {
      height: calc(200px * 0.458) !important;
    }
  }
}


.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #7ebe42;
  color:white;
  padding: 35px 0;
  a {
    color: white;
    text-decoration: none;
  }
  a:visited {
    color:white;
  }
  p {
    margin-top: 10px;
    margin-bottom: 0;
  }
}
.footer-menu {
  padding: 0;
  margin:0;
  list-style: none;
    li {
      display: inline-block;
      line-height: normal;
    }
  li:not(:last-child) {
    margin-right: 5px;
    padding-right: 5px;
    border-right: 1px solid;
  }
}

.searchPanel {
  background-color: white;
  padding: 10px;
}

.resultPanel {
  background-color: white;
  padding: 10px;
}
.result-count {
  background-color: white;
  padding: 10px;
  margin-bottom: 14px;
}
.home {
  margin-bottom: 10px;
  a, a:visited, a:hover, a:active {color: rgb(33, 37, 41); text-decoration: none;}
}

/*.nav-container {*/
/*  padding: 0 !important;*/
/*}*/
/*.navbar-brand {*/
/*  padding: 0 !important;*/
/*}*/
/*nav.navbar {*/
/*  padding: 0 !important;  */
/*}*/

#noResults {
  background-color: white;
  padding: 10px;
}

.result {
  background-color: white;
  margin-bottom: 1px;
  padding: 15px;
  .name {
    font-weight: 700;
  }
  .info {
    display: block;
  }
  .result-val {
    font-weight: 700;
    .result-val-name {
      font-size: 10px;
      font-weight: normal;
      display: block;
    }
  }
}

.result2 {
  a {
    color: #022173;
    text-decoration: none;
  }
  background-color: white;
  margin-bottom: 1px;
  padding: 15px;
  .name {
    font-weight: 700;
  }
  .info {
    display: block;
  }
  .result-val {
    font-weight: 700;
    .result-val-name {
      font-size: 10px;
      font-weight: normal;
      display: block;
    }
  }
}

.sub-header {
  background-color: #0b1d4b;
  color: #61b4e4;
  font-family: Dosis, sans-serif;
}

.result-modal {
  .modal-header {
    background-color: #7EBE61;
    color: white;
  }
  
  .result-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    gap: 10px;
  }
  .result-location {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  .more-results {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  .result-values {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    .result-value {
      border-bottom: 1px solid #00000022;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      padding: 7px 0;
      width: 100%;
      .label {
        font-weight: bold;
        align-self: flex-start;
      }
      .data {
        align-self: flex-end;
        
      }
    }
    .result-value:first-child {
      border-top: 1px solid #00000022;
    }
  }
  
  .splits-segment {
    margin-top: 15px;
    .header {
      font-size: 1.1rem;
      font-weight: bold;
    }
    .splits {
      font-size: 0.85rem;
      margin-top: 10px;
      .split {
        padding: 5px 0;
        border-bottom: 1px solid #00000022;
        .split-name {
          font-weight: bold;
        }
      }
      .split:first-child {
        font-weight: bold;
      }
    }
  }

  .unit {
    font-size: 0.6rem;
  }
  
  .unit-select {
    position: absolute;
    right: 13px;
  }
  a.unit-selection {
    color: black;
  }
  a.unit-selection.selected {
    font-weight: bold;
  }
}

.statPanel {
  padding: 10px 0;
  .statItem {
    padding: 10px;
    .value {
      font-family: 'Dosis', sans-serif;
      font-size: 30px;
      font-weight: 600;
    }
    .valuelabel {
      font-family: "Open Sans";
    }
    &.blue {
      background-color: #61b4e4;
    }
    &.green {
      background-color: #7ebe42;
    }
    &.dark-green {
      background-color: #336600;
    }
    &.yellow {
      background-color: #f9be00;
    }
    &.red {
      background-color: #ec0928;
    }
  }
}


.small-box {
  border-radius: 0.375rem;
  box-shadow: 0 0 1px rgba(var(--bs-body-color-rgb), 0.125), 0 1px 3px rgba(var(--bs-body-color-rgb), 0.2);
  position: relative;
  display: block;
  margin-bottom: 1.25rem;
  --bs-link-color-rgb: none;
  --bs-link-hover-color-rgb: none;
  --bs-heading-color: none;
}
.small-box > .inner {
  padding: 10px;
}
.small-box > .small-box-footer {
  position: relative;
  z-index: 10;
  display: block;
  padding: 3px 0;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.07);
}
.small-box > .small-box-footer:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
.small-box h3, .small-box .h3 {
  font-size: calc(1.345rem + 1.14vw);
  padding: 0;
  margin: 0 0 10px;
  font-weight: 700;
  white-space: nowrap;
}
@media (min-width: 1200px) {
  .small-box h3, .small-box .h3 {
    font-size: 2.2rem;
  }
}
@media (min-width: 992px) {
  .col-xl-2 .small-box h3, .col-xl-2 .small-box .h3, .col-lg-2 .small-box h3, .col-lg-2 .small-box .h3, .col-md-2 .small-box h3, .col-md-2 .small-box .h3 {
    font-size: calc(1.285rem + 0.42vw);
  }
}
@media (min-width: 992px) and (min-width: 1200px) {
  .col-xl-2 .small-box h3, .col-xl-2 .small-box .h3, .col-lg-2 .small-box h3, .col-lg-2 .small-box .h3, .col-md-2 .small-box h3, .col-md-2 .small-box .h3 {
    font-size: 1.6rem;
  }
}
@media (min-width: 992px) {
  .col-xl-3 .small-box h3, .col-xl-3 .small-box .h3, .col-lg-3 .small-box h3, .col-lg-3 .small-box .h3, .col-md-3 .small-box h3, .col-md-3 .small-box .h3 {
    font-size: calc(1.285rem + 0.42vw);
  }
}
@media (min-width: 992px) and (min-width: 1200px) {
  .col-xl-3 .small-box h3, .col-xl-3 .small-box .h3, .col-lg-3 .small-box h3, .col-lg-3 .small-box .h3, .col-md-3 .small-box h3, .col-md-3 .small-box .h3 {
    font-size: 1.6rem;
  }
}
@media (min-width: 1200px) {
  .col-xl-2 .small-box h3, .col-xl-2 .small-box .h3, .col-lg-2 .small-box h3, .col-lg-2 .small-box .h3, .col-md-2 .small-box h3, .col-md-2 .small-box .h3 {
    font-size: calc(1.345rem + 1.14vw);
  }
}
@media (min-width: 1200px) and (min-width: 1200px) {
  .col-xl-2 .small-box h3, .col-xl-2 .small-box .h3, .col-lg-2 .small-box h3, .col-lg-2 .small-box .h3, .col-md-2 .small-box h3, .col-md-2 .small-box .h3 {
    font-size: 2.2rem;
  }
}
@media (min-width: 1200px) {
  .col-xl-3 .small-box h3, .col-xl-3 .small-box .h3, .col-lg-3 .small-box h3, .col-lg-3 .small-box .h3, .col-md-3 .small-box h3, .col-md-3 .small-box .h3 {
    font-size: calc(1.345rem + 1.14vw);
  }
}
@media (min-width: 1200px) and (min-width: 1200px) {
  .col-xl-3 .small-box h3, .col-xl-3 .small-box .h3, .col-lg-3 .small-box h3, .col-lg-3 .small-box .h3, .col-md-3 .small-box h3, .col-md-3 .small-box .h3 {
    font-size: 2.2rem;
  }
}
.small-box p {
  font-size: 1rem;
}
.small-box p > small, .small-box p > .small {
  display: block;
  margin-top: 5px;
  font-size: 0.9rem;
  color: #f8f9fa;
}
.small-box h3, .small-box .h3,
.small-box p {
  z-index: 5;
}
.small-box .small-box-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 0;
  height: 70px;
  font-size: 70px;
  color: rgba(0, 0, 0, 0.15);
  transition: transform 0.3s linear;
}
@media (prefers-reduced-motion: reduce) {
  .small-box .small-box-icon {
    transition: none;
  }
}
.small-box:hover .small-box-icon {
  transform: scale(1.1);
}

@media (max-width: 575.98px) {
  .small-box {
    text-align: center;
  }
  .small-box .small-box-icon {
    display: none;
  }
  .small-box p {
    font-size: 12px;
  }
}