* {
  box-sizing: border-box;
  font-family: Exo, Helvetica, sans-serif;
}

body {
  margin: 0;
  background-color: rgb(40, 40, 40);
  color: white;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1rem;
}

header {
  height: 4.5rem;
  background-image: linear-gradient(black, rgb(40, 40, 40));
}

header .logo-cont,
header .i-cont {
  width: 22%;
}

header img.tach-logo {
  width: 100%;
  max-height: 3rem;
}

header .title-cont {
  width: 56%;
}

header i {
  font-size: 2rem;
  color: white;
  transition: color 0.25s;
}

main {
  max-width: 992px;
  margin: 0 auto;
}

/* Height same as mobile-nav-offset */
.league-nav-mobile {
  height: 4.2rem;
  background-color: black;
  z-index: 1;
}

.mobile-nav-offset {
  height: 4.2rem;
}

.league-nav-item-mobile {
  border-top: 0.15rem solid black;
  transition: color 0.25s, border-bottom 0.25s;
}

.league-nav-img-mobile {
  height: 2.8rem;
  max-width: 100%;
}

.nav-item {
  border-bottom: 0.15rem solid rgb(40, 40, 40);
  transition: color 0.25s, border-bottom 0.25s;
}

.roster-nav {
  max-width: 500px;
}

.roster-nav-item {
  flex-grow: 1;
  max-width: 12rem;
  border-bottom: 0.15rem solid rgb(40, 40, 40);
  transition: color 0.25s, border-bottom 0.25s;
}

.nav-item.selected,
.roster-nav-item.selected {
  border-bottom: 0.15rem solid white;
}

.league-nav-item-mobile.selected {
  border-top: 0.15rem solid white;
}

.responsive-text-1 {
  font-size: 0.8rem;
}

.header-series {
  font-size: 0.8rem;
}

.standings-cont {
  flex-direction: column;
}

.standings-table {
  width: 100%;
}

.standings-header {
  font-size: 0.6rem;
}

.standings-first-name {
  margin-top: -0.15rem;
  font-size: 0.8rem;
}

.standings-table .rank {
  width: 10%;
}

.standings-table .team {
  width: 60%;
}

.standings-table .record {
  width: 15%;
}

.standings-table .points {
  width: 15%;
}

.stats-carousel-cont {
  width: 100%;
}

.stats-carousel {
  height: 9rem;
}

.stats-carousel h1 {
  font-size: 2rem;
  margin: 0.5rem 0;
}

.activity-log-cont {
  border: 2px solid gray;
}

.activity-log {
  height: 15rem;
  overflow-y: auto;
}

.league-chat-cont {
  border: 2px solid gray;
}

.league-chat {
  height: 15rem;
  overflow-y: auto;
}

.message-border {
  border: 1px solid rgb(75, 75, 75);
}

.system-message-border {
  border: 1px solid red;
}

.message-input,
.message-input:focus {
  border: none;
  outline: none;
}

.complete {
  text-decoration: line-through;
}

.schedule-row .event i {
  color: #c5b358;
}

.schedule-row .event {
  width: 50%;
  padding: 0 0.5rem;
}

.schedule-row .date {
  width: 35%;
  padding: 0 0.5rem;
}

.schedule-row .expand {
  width: 15%;
  text-align: center;
}

.schedule-collapse {
  background-color: rgb(40, 40, 40);
}

.full-matchup-cont {
  margin: 2rem 0;
}

.matchup-header {
  padding: 1rem 0;
  transition: background-color 0.25s;
}

.matchup-column {
  width: 48.5%;
}

.vs {
  width: 3%;
  height: 2.25rem;
  font-size: 0.8rem;
}

.team-cont {
  width: 100%;
  height: 2.25rem;
}

.team-info {
  width: 78%;
}

.member-team-name {
  font-size: 1rem;
  line-height: 1.1rem;
}

.team-image-cont {
  width: 22%;
  height: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-image-cont img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
}

.total-score {
  width: 3.5rem;
  height: 2.5rem;
  margin-top: 0.5rem;
  align-self: flex-end;
  background-color: red;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.racer {
  padding: 0 0.25rem;
}

.matchup-table {
  display: flex;
}

.matchup-table .racer {
  width: 50%;
}

.matchup-table .pred {
  width: 15%;
}

.matchup-table .finish {
  width: 20%;
}

.matchup-table .racer-points {
  width: 15%;
}

.class-column-titles-row {
  font-size: 0.6rem;
}

.class-column-titles-row img {
  height: 0.6rem;
  margin-bottom: 0.1rem;
}

.racer-row {
  height: 1.8rem;
}

.racer-row .number {
  font-size: 2rem;
  font-weight: 800;
}

.racer-row .name {
  font-size: 0.8rem;
}

.racer-row .team {
  margin-top: -0.15rem;
  font-size: 0.75rem;
}

.racer-row .pred {
  font-size: 0.9rem;
  font-weight: 400;
}

.racer-row .finish {
  font-size: 0.9rem;
  font-weight: 700;
}

.racer-row .racer-points {
  border: 2px solid rgb(75, 75, 75);
  font-size: 1.1rem;
  transition: color 0.25s, background-color 0.25s;
}

.pred-total {
  height: 2rem;
  width: 2.25rem;
  font-size: 1.25rem;
}

.pred-total-text {
  margin: 0 2rem;
}

.racer-divider-left {
  height: 1px;
  background-image: linear-gradient(90deg, gray, rgb(40, 40, 40));
}

.racer-divider-right {
  height: 1px;
  background-image: linear-gradient(270deg, gray, rgb(40, 40, 40));
}

.gray-divider {
  border-top: 1px solid gray;
}

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

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

.justify-flex-end {
  justify-content: flex-end;
}

.separator-1px {
  height: 1px;
  background-color: rgba(0, 0, 0, 0);
}

.roster .rank {
  width: 10%;
  text-align: center;
}

.roster .pts {
  width: 12%;
  text-align: center;
}

.roster .racer {
  width: 36%;
}

.roster .owner-full {
  width: 42%;
}

.roster .owner {
  width: 33%;
}

.roster .status {
  width: 9%;
  text-align: center;
}

.roster-header {
  font-size: 0.6rem;
}

.roster-header img {
  height: 0.6rem;
  margin-bottom: 0.1rem;
}

.roster-row {
  font-size: 0.8rem;
}

.roster-row .number {
  font-size: 2rem;
  font-weight: 800;
  font-style: italic;
}

.roster-row .name {
  font-size: 0.8rem;
}

.roster-row .team {
  margin-top: -0.15rem;
  font-size: 0.65rem;
}

.roster-add {
  font-size: 1.75rem;
  color: lime;
}

.roster-drop {
  font-size: 1rem;
}

.roster-note {
  font-size: 0.8rem;
}

.team-name-edit-cont {
  height: 2.5rem;
}

.my-team .number {
  width: 12.5%;
  text-align: center;
}

.my-team .racer {
  width: 47.5%;
}

.my-team .pred {
  width: 30%;
  text-align: center;
}

/* Hide prediction input field arrows */
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.my-team .status {
  width: 10%;
  text-align: center;
}

.my-team-row .number {
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
}

.my-team-row .racer {
  padding-right: 0.5rem;
}

.my-team-row .name {
  font-size: 0.8rem;
}

.my-team-row .team {
  margin-top: -0.15rem;
  font-size: 0.65rem;
}

.pred-input {
  max-width: 3rem;
}

.copyright {
  font-size: 0.8rem;
}

.status-icon {
  width: 1rem;
  height: 1rem;
}

.status-date {
  font-size: 0.7rem;
}

.pass-visible-icon {
  right: 0.75rem;
  bottom: calc((1.5em + 0.75rem + 2px - 1rem) / 2);
}

.custom-checkbox {
  width: 17px;
  height: 17px;
}



/* SEARCH */
.search-icon {
  top: calc(50% - 0.5rem);
  left: 1.75rem;
}

.search-x-icon {
  top: calc(50% - 1rem);
  right: 1.25rem;
}



/* PAGINATION */
.page-item:not(.active) {
  color: #007bff;
}

.page-link {
  border-color: gray;
  padding: 16px;
  font-size: .875rem;
}

.page-link:not([disabled]) {
  cursor: pointer;
}



/*  CUSTOM UTILITIES */
.pointer {
  cursor: pointer;
}

.overflow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-white {
  color: white;
}

.text-black {
  color: black;
}

.text-gray {
  color: gray;
}

.text-green {
  color: lime;
}

.text-yellow {
  color: rgb(219, 205, 0);
}

.text-red {
  color: red;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.bg-black {
  background-color: black;
}

.bg-default {
  background-color: rgb(40, 40, 40);
}

.bg-dark-gray {
  background-color: rgb(75, 75, 75);
}

.sub-text {
  font-size: 0.65rem;
  margin-top: -0.15rem;
}



/* TOAST (bootstrap colors) */
.Toastify__toast-container--top-right {
  top: 4.5em !important;
  right: 1.5em !important;
}

.Toastify__toast--error {
  background: #dc3545 !important;
}

.Toastify__toast--success {
  background: #28a745 !important;
}

.Toastify__toast--info {
  background: #007bff !important;
}

.Toastify__toast--warn {
  background: #ffc107 !important;
}

/* SIZE SM & BIGGER */
@media screen and (min-width: 576px) {
  .team-info {
    width: 88%;
  }

  .team-image-cont {
    width: 12%;
  }

  .matchup-table .racer {
    width: 63%;
  }

  .matchup-table .racer-points {
    width: 12%;
  }
}

/* SIZE MD & BIGGER */
@media screen and (min-width: 768px) {
  .chat-act-schedule-cont {
    width: 48.5%;
  }
}

/* SIZE LG & BIGGER */
@media screen and (min-width: 992px) {
  header {
    height: 6rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  header .full-logo {
    width: 8rem;
  }

  header p {
    font-size: 1.25rem;
  }

  .team-info {
    width: 78%;
  }

  .team-image-cont {
    width: 22%;
  }

  .responsive-text-1 {
    font-size: 1rem;
  }

  .header-series {
    font-size: 1rem;
  }

  .standings-cont {
    flex-direction: row;
  }

  .standings-table {
    width: 70%;
  }

  .stats-carousel-cont {
    width: 30%;
    padding-left: 1.5rem;
    margin-top: 0;
  }

  .standings-header {
    font-size: 1rem;
  }

  .my-team .number {
    width: 8%;
  }

  .my-team .racer {
    width: 52%;
  }

  .my-team-row {
    font-size: 1rem;
  }

  .my-team-row .number {
    font-size: 2rem;
  }

  .my-team-row .name {
    font-size: 1rem;
  }

  .my-team-row .team {
    font-size: 0.75rem;
  }

  .matchup-header {
    height: 5.75rem;
  }

  .vs {
    height: auto;
    font-size: 1rem;
  }

  .team-cont {
    width: 83.5%;
    height: 100%;
  }

  .member-team-name {
    font-size: 1.25rem;
  }

  .team-image-cont img {
    width: 3.75rem;
    height: 3.75rem;
  }

  .total-score {
    width: 16.5%;
    height: 100%;
    margin-top: 0;
    font-size: 2.25rem;
  }

  .matchup-table .number {
    width: 13%;
  }

  .matchup-table .racer {
    width: 51%;
  }

  .matchup-table .pred {
    width: 10%;
  }

  .matchup-table .finish {
    width: 15%;
  }

  .matchup-table .racer-points {
    width: 11%;
  }

  .class-title-row {
    font-size: 1.25rem;
  }

  .class-column-titles-row {
    font-size: 1rem;
  }

  .class-column-titles-row img {
    height: 1rem;
  }

  .racer-row {
    height: 2.55rem;
  }

  .racer-row .name {
    font-size: 1rem;
  }

  .racer-row .pred,
  .racer-row .finish {
    font-size: 1.25rem;
  }

  .racer-row .racer-points {
    font-size: 1.75rem;
  }

  /* Widths of pred-total & pred-total-text calculated so they are aligned with PRED column */
  .pred-total {
    font-size: 1.75rem;
    height: 3rem;
    width: 5.17%;
  }

  .pred-total-text {
    margin: 0;
    width: 28.5%;
  }

  .roster .rank {
    width: 8%;
  }

  .roster .pts {
    width: 8%;
  }

  .roster .number {
    width: 8%;
  }

  .roster .racer {
    width: 35%;
  }

  .roster .owner-full {
    width: 41%;
  }

  .roster .owner {
    width: 35%;
  }

  .roster .status {
    width: 6%;
  }

  .roster-header {
    font-size: 1rem;
  }

  .roster-header img {
    height: 1rem;
  }

  .roster-row {
    font-size: 1rem;
  }

  .roster-row .name {
    font-size: 1rem;
  }

  .roster-row .team {
    font-size: 0.75rem;
  }

  .sub-text {
    font-size: 0.65rem;
  }
}

@media (hover: hover) {
  header i:hover {
    color: gray;
  }

  .clickable:hover {
    text-decoration: underline;
  }

  .matchup-header.summary:hover {
    background-color: rgb(75, 75, 75);
  }

  .racer-row .racer-points:hover {
    background-color: rgb(40, 40, 40);
  }

  .nav-item:hover,
  .roster-nav-item:hover,
  .next-prev-matchup:hover {
    color: gray;
  }

  .nav-item:hover:not(.selected),
  .roster-nav-item:hover:not(.selected) {
    border-bottom: 0.15rem solid gray;
  }

  .league-nav-item-mobile:hover:not(.selected) {
    border-top: 0.15rem solid gray;
  }

  .roster-add:hover {
    color: rgb(0, 220, 0);
  }
}

.animate-spin {
  animation: animate-spin 2s infinite linear;
}

@keyframes animate-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.lds-dual-ring {
  display: inline-block;
  width: 80px;
  height: 80px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== Scrollbar CSS ===== */
  /* Firefox */
  * {
    scrollbar-width: auto;
    scrollbar-color: gray rgb(40, 40, 40);
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 16px;
  }

  *::-webkit-scrollbar-track {
    background: rgb(40, 40, 40);
  }

  *::-webkit-scrollbar-thumb {
    background-color: gray;
    border-radius: 10px;
    border: 3px solid rgb(40, 40, 40);
  }
