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

body {
  background: #f5f5f7;
}

.jumbotron {
    padding: 5rem 2rem;
}

/* hide outlines */
* {
  outline: 0 !important;
}

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
}

nav.bg-dark {
  background: #111 !important;
}

.jumbotron {
  background-image: url('/static/assets/header.png');
  background-size: cover;
  position: relative;
  -webkit-box-shadow: 0px 2px 20px -10px rgba(0,0,0,0.1);
  -moz-box-shadow: 0px 2px 20px -10px rgba(0,0,0,0.1);
  box-shadow: 0px 2px 20px -10px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.container#route {
  padding-top: 1rem;
}

/* Adapted from code example at https://stackoverflow.com/a/47578102 */
.jumbotron > .overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.jumbotron > .inner {
    position: relative;
    z-index: 2;
}

.jumbotron h1, .jumbotron p {
  color: white;
}

.jumbotron h1 {
  font-size: 3rem;
  font-weight: 700;
}

.jumbotron p.lead {
  margin-bottom: 1rem;
}

.jumbotron p.lead b {
  font-weight: 500;
}

.jumbotron p.sub {
  margin-bottom: 1rem;
  font-size: 90%;
  line-height: 1.7;
}

.route-selector {
  text-align: right;
  margin-bottom: 1rem;
}

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

.map-info {
  margin-bottom: .5rem;
}

.map-info a:not(.btn) {
  font-weight: 400;
  color: #777;
  text-decoration: underline;
  padding: .5rem 0;
  line-height: 1.875rem;
  font-size: .9rem;
  display: inline-block;
  margin-right: 15px;
}

.map-info a:not(.btn):hover {
  color: #007bff;
}

.map-info .fas {
  font-size: 1rem;
  vertical-align: middle;
  margin-top: -2px;
}

.clearfix {
  clear: both;
}

.image-float img {
  margin: 0 1rem 2rem;
  max-width: calc(50% - 1rem);
  max-height: fit-content;
}

.image-float img.float-right {
  margin-right: 0;
}

.image-float img.float-left {
  margin-left: 0;
}

main p {
  line-height: 1.8rem;
}

main > h3 {
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

main > figure {
  display: inline-block;
}

main > figure > figcaption {
  background: #eee;
  border-left: 5px solid #ccc;
  padding: 8px 16px;
  margin-top: 10px;
  border-radius: 5px;
  font-style: italic;
}

main a {
  font-weight: 600;
}

footer .col-md a {
  line-height: 1.9rem;
  font-size: .9rem;
}

main footer a {
  font-weight: 400;
}

main footer small a {
  line-height: inherit;
  font-size: inherit;
  text-decoration: underline;
}

main footer small a:hover {
  color: #007bff !important;
}

footer h5 {
  font-weight: 600;
}

#map a {
  font-weight: 400;
}

.lang {
  margin-left: 1rem;
  margin-top: 6px;
}

.lang img {
  height: 24px;
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-left: .8rem !important;
  padding-right: .8rem !important;
}

.modal-body {
  font-size: .9rem;
  line-height: 2rem;
}

.modal-body img {
  min-width: 100%;
  max-width: 100%;
  padding: .25rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: .25rem;
  height: auto;
}

.modal-body a {
  text-decoration: underline;
}

.modal-body strong {
  font-weight: 600;
}

.modal-body p {
  color: #6c757d;
  margin-bottom: .5rem;
  font-size: 95%;
}

.modal-body span, .modal-body span *, .modal-body *:not(a) {
  color: #6c757d !important;
}

.modal-body blockquote {
  color: #6c757d;
  font-size: 95%;
  border-left: 0 !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  padding-left: 0 !important;
}

.modal-body li, .modal-body ol {
  color: #6c757d;
  font-size: 95%;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

span.mins {
  font-size: .75rem;
  opacity: .75;
  margin-left: 5px;
  margin-top: -1px;
  display: inline-block;
}

.col.text-right .btn {
  margin-bottom: .5rem;
  min-width: 192px;
}

.number {
  opacity: 0;
}

.dropdown-menu {
  top: 130%;
  font-size: 90%;
  min-width: 12rem;
}

.dropdown-item {
  padding: .5rem 1.5rem;
}

.dropdown-item.active, .dropdown-item:active {
  color: #212529;
  background: none;
}

.dropdown-item:focus, .dropdown-item:hover {
  background: #eee;
}

.modal-body .img-thumbnail {
  min-width: 100%;
  max-width: 100%;
}

iframe.ql-audio {
  height: 85px;
}

.embed-container { margin-top: 1rem; position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

@media (max-width: 991px) {
  .dropdown-menu {
    background: #111;
  }

  .dropdown-menu a {
    color: rgba(255,255,255,.5);
    padding: .75rem 1.5rem;
  }

  .dropdown-item:focus, .dropdown-item:hover {
    background: none;
    color: rgba(255,255,255,.75);
  }

  .dropdown-item.active, .dropdown-item:active {
    color: #fff;
  }

}

@media (max-width: 768px) {

  .row.map-info {
    display: block;
    margin-bottom: .5rem;
  }

  .row.map-info .col {
    display: block;
    width: 100%;
  }

  .col.text-right .btn {
    width: 49%;
    text-align: center;
    min-width: auto !important;
  }

  span.mins {
    display: block !important;
    margin-left: 0;
  }

  .col:first-child {
    text-align: center;
  }

  .map-info a:not(.btn) {
    display: none;
  }

  .jumbotron {
    display: none;
  }

  footer select {
    margin-bottom: 2.5rem;
  }

  main > h3 {
    margin-top: 1rem;
    font-size: 1.5rem;
  }

  .image-float {
    text-align: center;
  }

  .image-float p {
    text-align: left;
  }

  .image-float img {
    float: none !important;
    max-width: 100%;
    margin: 0 auto 1rem;
  }

}

@media only screen and (max-width: 1200px)  {

  body {
    margin-bottom: 0;
  }

  footer {
    position: relative;
    bottom: auto;
    height: auto;
    line-height: 2rem;
    width: 100%;
    margin-top: 2rem;
    text-align: center;
  }

  footer .row {
    display: inline-block;
    margin: auto;
  }

  footer .col {
    width: auto;
    display: inline;
    text-align: left !important;
  }

  footer .col-6 {
    max-width: 100%;
  }

}
