/*--------------------
Reset / Base
--------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  margin-bottom: 25%;
  color: white;
  background-color: #312e2b;
  font-family: 'Open Sans', sans-serif;
}

/*--------------------
Typography
--------------------*/
h1 {
  font-size: 52px;
  margin-bottom: 10px;
}
h2 {
  font-size: 24px;
}
h3 {
  font-size: 16px;
  margin: 2px auto;
}

p, label {
  font-size: 22px;
  color: whitesmoke;
}

ul, ol, li {
  font-size: 22px;
  color: whitesmoke;
}

article {
  text-align: left;
  width: 45%;
  margin: auto;
  color: whitesmoke;
}

.h1-icon {
  height: 1em;
  width: auto;
  vertical-align: middle;
  margin: 0 0.2em;
}

.blackText {
  color: black !important;
}

/*--------------------
Selection / Links
--------------------*/
::-moz-selection {
  color: black;
  background: cyan;
}
::selection {
  color: black;
  background: cyan;
}

a:link, a:visited {
  color: rgb(0, 210, 210);
  text-decoration: none;
}
a:active {
  color: #0000EE;
}

/*--------------------
Nav bar (was .tabs)
--------------------*/
.tabs {
  overflow: hidden;
  border: 1px solid #ccc;
  border-bottom: 1px solid black;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 999;
}

.tabs a.tablinks {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
  color: black;
  text-decoration: none;
  display: inline-block;
}
.tabs a.tablinks:hover {
  background-color: #ddd;
}
.tabs a.tablinks.active {
  background-color: #ccc;
}

.nav-logo {
  height: 30px;
  float: left;
  margin: 8px 15px;
  cursor: pointer;
}

/*--------------------
Page fade-in (shared across all pages)
--------------------*/
.page {
  animation: fadeEffect 1s;
}
@keyframes fadeEffect {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*--------------------
Shared leaderboard table styles
(used by Results + Lifetime pages)
--------------------*/
.leaderboard_container {
  display: flex;
  justify-content: center;
}

.leaderboard {
  width: 50%;
  border: 1px white solid;
  border-collapse: collapse;
  margin-bottom: 50px;
}

.wide-leaderboard {
  width: 75% !important;
}

.leaderboard th {
  background-color: #292E3A;
  padding: 20px;
}

.rankHeader {
  width: 10%;
}
.nameHeader {
  width: 40%;
}
.distanceHeader {
  width: 25%;
  text-align: right;
}
.numYearsHeader {
  width: 25%;
  text-align: right;
}
.leaderboardRow {
  border-collapse: collapse;
}
.leaderboardRow:hover {
  background-color: rgb(0, 210, 210) !important;
  color: black !important;
}
.leaderboard td {
  padding: 15px;
  font-size: 15px;
}
.circle {
  background-color: white;
  display: block;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  margin: auto;
  color: black;
  line-height: 25px;
  text-align: center;
}

.orangeFill {
  background-color: #efa311 !important;
}

.noSelect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/*--------------------
Mobile (shared rules)
--------------------*/
@media screen and (max-width: 600px) {
  h1 {
    font-size: 46px;
    line-height: 120%;
  }
  article {
    width: 90%;
  }
  .leaderboard_container {
    display: block;
  }
  .leaderboard {
    position: static;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  .wide-leaderboard {
    width: 90% !important;
  }
  .leaderboard th {
    padding: 10px 10px;
  }
  .numYearsHeader {
    display: none;
  }
}
