#page-header {
  background: url("/images/jumbotron2.jpg") center center;
  width: 100%;
  height: 100%;
  background-size: cover;
  overflow: hidden;
  padding: 30px;
  margin-bottom: -30px;
  z-index: 2;
}

#page-header .page-last-updated {
  display: inline-block;
}

#page-header .page-last-updated span {
  color: white;
}

#page-header .page-title {
  font-weight: 700;
  font-family: 'Cabin Sketch', cursive;
  font-size: 28px;
  color: white;
  text-align: center;
}

#page-header .page-last-updated {
  display: inline-block;
}

#page-header .page-last-updated span {
  color: white;
}

#page-header .page-search {
  display: inline-block;
}

nav {
  border-radius: 0px !important;
  background-color: #313272;
  /*just the drop down part*/
  min-height: auto !important;
  margin-bottom: 0px !important;
}

nav .icon-bar {
  background-color: #E9AF44;
}

nav svg {
  width: 24px;
  height: 24px;
  margin-left: 15px;
  margin-right: 15px;
  border-radius: 3px;
  fill: #E9AF44;
}

nav .nav > li {
  /*inverse*/
  /* override the white background when the menu item is selected. */
  text-align: center;
}

nav .nav > li :hover {
  background-color: #E9AF44;
  color: #313272;
}

nav .nav > li :hover svg {
  fill: #313272;
}

nav .nav > li :focus {
  background-color: #313272 !important;
  color: #E9AF44 !important;
}

nav .nav > li > a {
  padding: 5px;
  color: #E9AF44;
}

nav .nav > li > a :hover {
  color: #313272;
}

nav .dropdown-menu {
  background-color: #313272;
  color: #E9AF44;
}

nav .dropdown-menu li > a {
  background-image: none !important;
  /* otherwise when hovering selected item goes white. strangely this is not on the hover! */
  background-color: #313272;
  color: #E9AF44;
}

nav .dropdown-menu li > a :hover {
  /*inverse*/
  background-color: #E9AF44;
  color: #313272;
}

svg.expandCollapseButton {
  fill: #808080;
  width: 21px;
  cursor: pointer;
  height: 16px;
  vertical-align: text-bottom;
}

svg.expand.expandCollapseButton {
  -webkit-transform: rotate(-180deg);
  -ms-transform: rotate(-180deg);
  transform: rotate(-180deg);
}

#races-main .panel-heading {
  margin-bottom: 4px;
}

#races-main .panel-body {
  padding: 4px 4px 4px 15px;
  margin-bottom: 4px;
}

svg {
  padding: 3px;
  display: block;
  box-sizing: content-box;
  width: 30px;
  height: 30px;
  fill: #313272;
}

.parallax {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.caption {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  text-align: center;
  color: #000;
}

.caption span.border {
  background-color: #111;
  color: #fff;
  padding: 18px;
  font-size: 25px;
  letter-spacing: 10px;
}

h3 {
  letter-spacing: 5px;
  text-transform: uppercase;
  font: 20px "Lato", sans-serif;
  color: #111;
}

.img2017 {
  /* images based from content directory */
  background-image: url("../Images/Endure24-2017-pencil.jpg");
  min-height: 700px;
}

.img2016 {
  /* images based from content directory */
  background-image: url("../Images/Endure24-2016-pencil.jpg");
  min-height: 700px;
}

.img2015 {
  /* images based from content directory */
  background-image: url("../Images/Endure24-2015-pencil.jpg");
  min-height: 700px;
}

.list-as-table {
  /* Layout as definition list */
  list-style-type: none;
  /* Layout as table */
}

.list-as-table li {
  background: #f5f5f5;
  padding: 1em;
  margin: 0 0 .5em;
}

.list-as-table li:after {
  content: '';
  display: block;
  height: 0;
  visibility: hidden;
  clear: both;
}

.list-as-table li dt, .list-as-table li dd {
  border-bottom: 1px solid gainsboro;
  padding: 5px 0;
}

.list-as-table li dt {
  font-weight: bold;
  float: left;
  clear: right;
  width: 30%;
}

.list-as-table li dd {
  float: right;
  width: 70%;
  text-align: right;
}

@media only screen and (min-width: 900px) {
  .list-as-table {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
    /* Table body */
  }
  .list-as-table li dt, .list-as-table li dd {
    border: none;
    text-align: left;
  }
  .list-as-table:after {
    content: '';
    display: block;
    height: 0;
    visibility: hidden;
    clear: both;
  }
  .list-as-table * {
    margin: 0;
    padding: 0;
  }
  .list-as-table dt, .list-as-table dd {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  .list-as-table li {
    margin: 0;
    padding: 0;
  }
  .list-as-table li dt, .list-as-table li dd {
    float: none;
    padding: 0;
    margin: 0;
  }
  .list-as-table li {
    float: none;
  }
  .list-as-table li:first-child dt {
    position: absolute;
    background: gray;
    color: white;
    width: 16.66667%;
    line-height: 1em !important;
    padding: 1em;
    top: 0;
  }
  .list-as-table li:first-child dt:nth-of-type(2) {
    left: 16.66667%;
  }
  .list-as-table li:first-child dt:nth-of-type(3) {
    left: 33.33333%;
  }
  .list-as-table li:first-child dt:nth-of-type(4) {
    left: 50%;
  }
  .list-as-table li:first-child dt:nth-of-type(5) {
    left: 66.66667%;
  }
  .list-as-table li:first-child dt:nth-of-type(6) {
    left: 83.33333%;
  }
  .list-as-table li:first-child:before {
    content: ".";
    display: block;
    background: gray;
    width: 100%;
    height: 3em;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }
  .list-as-table li:not(:first-child) dt {
    display: none;
  }
  .list-as-table li {
    width: 100%;
    /* First row */
  }
  .list-as-table li:after {
    content: '';
    display: block;
    height: 0;
    visibility: hidden;
    clear: both;
  }
  .list-as-table li dd {
    float: left;
    width: 16.66667%;
    padding: 1em;
  }
  .list-as-table li:first-child dd {
    margin-top: 3em;
  }
  .list-as-table li {
    border-bottom: 1px solid gainsboro;
  }
  .list-as-table li:last-child {
    border-bottom: none;
  }
  .list-as-table li {
    background: #f5f5f5;
  }
  .list-as-table li:nth-child(odd) {
    background: #fff;
  }
  .list-as-table li dt.has-2 + dd + dd {
    width: 8.33333%;
  }
  .list-as-table li dt.has-2 + dd {
    width: 8.33333%;
  }
  .list-as-table li dt.has-3 + dd + dd + dd {
    width: 5.55556%;
  }
  .list-as-table li dt.has-3 + dd + dd {
    width: 5.55556%;
  }
  .list-as-table li dt.has-3 + dd {
    width: 5.55556%;
  }
}

table.leagueTable {
  border-collapse: collapse;
  border-spacing: 5px;
  border-style: ridge;
}

table.leagueTable .invisibleCell {
  display: none;
}

table.leagueTable .visibleCell {
  display: table-cell;
}

table.leagueTable tbody > tr {
  padding: 8px;
  /* Name column in bold */
}

table.leagueTable tbody > tr td, table.leagueTable tbody > tr th {
  text-align: center;
  padding: 8px;
  vertical-align: top;
}

table.leagueTable tbody > tr td:first-child {
  font-weight: bold;
}

table.leagueTable td.bigger {
  font-size: larger;
}

table.leagueTable.twoRowHeader {
  /* line under the headings row */
}

table.leagueTable.twoRowHeader tr:nth-child(3) {
  border: solid;
  border-color: black;
  border-width: 0;
  border-bottom-width: 1px;
}

table.leagueTable.twoRowHeader .points {
  font-weight: bolder;
  width: 100px;
}

table.leagueTable.twoRowHeader th.race {
  cursor: pointer;
}

table.leagueTableMini {
  font-size: 8px;
}

body {
  /*background: url('/images/background.jpg') no-repeat center center fixed;
    background-size: cover;*/
  font-family: Arial, Verdana, 'Helvetica Neue', Helvetica, sans-serif;
  color: #313272;
}

#homeContent .card {
  width: 20rem;
  min-height: 400px;
  max-height: 400px;
  margin-bottom: 30px;
}

h2 {
  background-color: #313272;
  color: #E9AF44;
  text-align: center;
  vertical-align: middle;
  /*padding: 10px;*/
  font-family: Arial, Verdana, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 30px;
  margin-top: -10px;
}

h2:after {
  position: relative;
  color: #313272;
  font-size: 30px;
  line-height: 1;
  margin-top: -30px;
  top: 24px;
  content: '\25BC';
  display: block;
  text-align: center;
  padding: 0;
}

.centralize {
  display: inline-block;
  text-align: center;
}

.main-container {
  margin-left: 30px;
  margin-right: 15px;
}
