@media (prefers-color-scheme: dark) {
  body {
    background-color: black;
  }

  #headerTitle,
  footer,
  .spinner-border,
  #README,
  #updateContainer,
  .stats-header {
    color: white;
  }

  .back-to-top {
    background-color: #505050;
  }

  /*JS Grid Dark mode*/
  .jsgrid-header-row > .jsgrid-header-cell {
    background: #202020;
    color: white;
  }
  .jsgrid-row > .jsgrid-cell,
  .jsgrid-nodata-row > .jsgrid-cell {
    background: black;
  }
  .jsgrid-alt-row > .jsgrid-cell {
    background: #202020;
  }
  .jsgrid-selected-row > .jsgrid-cell {
    background: #505050;
    border-color: #505050;
  }
  .jsgrid-cell {
    border: 1px solid #202020;
    color: white;
  }
  .jsgrid-edit-row > .jsgrid-cell,
  .jsgrid-filter-row > .jsgrid-cell,
  .jsgrid-grid-body,
  .jsgrid-grid-header,
  .jsgrid-header-row > .jsgrid-header-cell,
  .jsgrid-insert-row > .jsgrid-cell {
    border: 1px solid #202020;
  }

  .jsgrid-pager {
    color: white;
  }

  .searchbar,
  .searchbar:focus {
    background-color: black;
  }
}

@media (prefers-color-scheme: light) {
  .back-to-top {
    background-color: #d9d9d9;
  }
}

@media (prefers-color-scheme: no-preference) {
  .back-to-top {
    background-color: #d9d9d9;
  }
}

.jsgrid-grid-header,
.jsgrid-grid-body {
  overflow-y: hidden;
}

#votesContainer {
  height: 45vh;
}

#pieContainer {
  height: 30vh;
}

#topBotsContainer,
#topSubsContainer {
  height: 45vh;
}

.spinner-border {
  z-index: 1;
  width: 5rem;
  height: 5rem;
  position: fixed;
  left: calc(50% - 45px);
  top: calc(50% - 45px);
}

.back-to-top {
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  height: 45px;
}

hr {
  background-color: #505050;
}

code {
  color: gray !important;
}

@media (min-width: 768px) {
  .navbar-brand.abs {
    position: absolute;
    width: 100%;
    left: 0;
    text-align: center;
    z-index: -1;
  }
}

@media (max-width: 576px) {
  #updateContainer {
    text-align: center;
  }
}

.searchbar {
  border: 0;
  border-bottom: 1px solid #ced4da;
  border-radius: 0;
  display: none;
}

#updateContainer {
  display: none;
}