html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 280px!important;
}

#content {
   overflow-x: hidden;
}

.navbar-nav > li{
  margin:0 9px 0 9px;
}

.navbar .dropdown-menu a:hover {
  color: black !important;
}

.navbar .login-button {
  background: #ed3239;
}

.nav-card {
  border-top: 8px solid #ed3239 !important;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 280px!important;
}

.footer span {
  display: block;
  color: white;
}

.card-body p {
  margin-bottom: 0!important;
}

.nav-pills {
  display: flex;
  justify-content: center;
}

.nav-pills > li > a.active {
  color: white!important;
  background-color: #212121!important;
}

.nav-pills > li > a{
  color: #212121!important;
}

.racelist a {
  color: black;
}

.table-header-link a {
  color: white!important;
}

.flag {
  width: 200px;
  height: 100px;
  margin-left: auto;
  margin-right: auto;
}

.anchor{
  display: block;
  height: 70px; /*same height as header*/
  margin-top: -70px; /*same height as header*/
  visibility: hidden;
}

.results-dot {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  display: inline-block;
}

.results-dot-pole {
  background-color: green;
}

.results-dot-fastlap {
  background-color: red;
}

.btn-admin {
  background-image: linear-gradient(45deg, black 92%, green 92%);
}

@media (max-width: 768px) {
  body {
    margin-bottom: 440px!important;
  }
  .footer {
    height: 440px!important;
  }
}

@media (max-width: 576px) {
  .flag {
    margin-bottom: 1em;
  }
}

@media (max-width: 380px) {
  .navbar-brand > img {
    width: 210px;
  }
}

@media (min-width: 786px) {
  .navbar .login-button {
    border-radius: 0;
  }

  .table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th{
    background-color: #343a40!important;
    color:#eeeeee;
  }
}

@media (min-width: 500px) {
  .navbar-brand > img {
    width: 280px;
  }
}
/* The logout item is a <button> in a POST form (Django 5.0+ only logs out on POST).
   MDB's navbar dropdown rules only target links (.navbar .dropdown-menu a), so give
   the button the same look as the link items next to it. The form takes the link's
   box (inline-block, full width, overflow hidden, like MDB's .waves-effect links),
   so the spacing in the menu stays exactly as it was. */
.navbar .dropdown-menu .logout-form {
  display: inline-block;
  width: 100%;
  overflow: hidden;
}

.navbar .dropdown-menu .logout-form button.dropdown-item {
  font-size: .9375rem;
  font-weight: 300;
  padding: 10px;
  color: #000 !important;
  cursor: pointer;
}
