@font-face {
  font-family: "museo_sans500";
  src: url("../fonts/museosans_500/MuseoSans_500-webfont.eot");
  src: url("../fonts/museosans_500/MuseoSans_500-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/museosans_500/MuseoSans_500-webfont.woff2") format("woff2"), url("../fonts/museosans_500/MuseoSans_500-webfont.woff") format("woff"), url("../fonts/museosans_500/MuseoSans_500-webfont.ttf") format("truetype"), url("../fonts/museosans_500/MuseoSans_500-webfont.svg#museo_sans500") format("svg");
  font-weight: normal;
  font-style: normal;
}
html {
  min-height: 100%;
  position: relative;
}

body {
  font-family: "museo_sans500";
  margin-bottom: 241px;
}

.update-bg {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: black;
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.6);
  /* Black w/ opacity */
}
.update-bg #update-window {
  display: none;
  font-size: 14px;
  position: fixed;
  top: 26vh;
  margin-left: 37.5%;
  height: 48vh;
  width: 25%;
  z-index: 2;
  border-radius: 10px;
}
.update-bg #update-window legend {
  text-align: center;
  font-size: 24px;
}
.update-bg #update-window form {
  height: 26vh;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.update-bg #update-window form input {
  margin-bottom: 10px;
  font-size: 14px;
}
.update-bg #update-window form button {
  float: left;
  margin-bottom: 10px;
  margin-top: 10px;
  font-size: 14px;
  width: 20%;
}
.update-bg #update-window form #submit-update {
  margin-left: 27.5%;
}
.update-bg #update-window form #cancel-update {
  margin-left: 5%;
}

.header {
  margin-top: 20px;
  background-color: #0E0D10;
  background-image: none;
  color: #fff;
  text-align: center;
}

.panel {
  border-color: #1D212D;
}
.panel .panel-heading {
  background-color: #1D212D;
  background-image: none;
  color: #fff;
}
.panel #trains-table .sorter {
  float: right;
  padding: 2px 6px;
  font-size: 16px;
}
.panel #trains-table .fa-caret-down {
  margin-right: 5px;
}
.panel #trains-table button {
  float: right;
  padding: 2px 6px;
  font-size: 12px;
}
.panel #trains-table .edit-button {
  margin-right: 5px;
}

input {
  margin-bottom: 20px;
}

/*! Footer */
footer {
  background: #222222;
  color: #fff;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 241px;
}
footer h3 {
  color: #9d9d9d;
  font-weight: lighter;
  font-style: italic;
  margin-bottom: 0;
  margin-top: 40px;
}
footer p, footer li {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 10px 0;
}
footer a {
  color: #fff;
  text-decoration: none;
  -webkit-transition: color .5s, background .5s;
  transition: color .5s, background .5s;
}
footer a:hover {
  color: #65c2ed;
}
footer .centered {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
footer .centered:before, footer .centered:after {
  content: '\0020';
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0;
  clear: both;
}
footer .centered .footer-contact {
  width: 35%;
}
footer .centered .footer-contact .fa {
  width: 20px;
  padding-right: 10px;
}
footer .centered .footer-connect {
  width: 35%;
}
footer .centered .footer-navigation {
  width: 30%;
}
footer .centered .footer-navigation ul {
  width: 50%;
  float: left;
}
footer .centered .footer-navigation .fa {
  padding-right: 10px;
}
footer .bottom-bar {
  position: relative;
  text-align: center;
  font-size: .8em;
  text-transform: uppercase;
  background: #000;
  padding: 15px 0;
}
footer ul {
  list-style-type: none;
}

.social li {
  float: left;
}
.social a {
  display: inline-block;
  padding: 0 7px;
  margin: 3px 10px 10px 0;
  vertical-align: middle;
}

* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/*! Footer */
@media only screen and (max-width: 769px) {
  .card {
    margin-bottom: 99px;
    padding-bottom: 50px;
  }
  .card .front .start-menu .col-md-6 {
    float: left;
    margin-left: 5%;
    margin-right: 5%;
    width: 40%;
  }
  .card .front .start-menu h1 {
    padding-top: 30px;
  }
  .card .front .start-menu .button {
    margin-left: 0;
    width: 100%;
  }
  .card .front .start-menu #start {
    width: 100%;
    margin-left: 0;
    height: 60px;
  }
  .card .front .trivia .question {
    margin: 30px 50px 5px;
  }
  .card .front .trivia .choices {
    margin: 20px 50px 0;
  }
  .card .back .content {
    margin-top: -30px;
  }
}
@media only screen and (max-width: 749px) {
  body {
    margin-bottom: 377px;
  }

  footer {
    height: 377px;
  }
  footer .centered {
    flex-wrap: wrap;
  }
  footer .centered .footer-contact {
    width: 50%;
    margin: 0 auto;
  }
  footer .centered .footer-connect {
    width: 50%;
    margin: 0 auto;
  }
  footer .centered .footer-navigation {
    width: 100%;
  }
}
@media only screen and (max-width: 500px) {
  body {
    margin-bottom: 600px !important;
  }

  .card {
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    height: 650px;
    margin-bottom: 60px;
    width: 100%;
  }
  .card .face {
    border-radius: 20px;
  }
  .card .front .start-menu .col-md-6 {
    margin-left: 2.5%;
    margin-right: 2.5%;
    width: 45%;
  }
  .card .front .start-menu h1 {
    font-size: 24px;
  }
  .card .front .start-menu .button {
    padding-left: 8px;
    padding-right: 8px;
  }
  .card .front .start-menu #start {
    margin-top: 30px;
  }
  .card .front .trivia .question {
    margin: 30px 33px 5px;
  }
  .card .front .trivia .choices {
    margin: 20px 33px 0;
  }
  .card .back .content {
    margin-top: 0;
  }
  .card .back .correct-content h1 {
    margin-left: -25px;
  }

  footer {
    height: 505px;
  }
  footer .centered {
    margin-right: 0;
    margin-left: 0;
  }
  footer .centered .footer-contact {
    width: 100%;
    margin: 0 auto;
  }
  footer .centered .footer-connect {
    width: 100%;
    margin: 0 auto;
  }
}
