html {
  font-size: 62.5%;
  /*scroll-behavior: smooth;*/
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Raleway', sans-serif;
  padding: 0;
  margin: 0;
  font-size: 1.6rem;
  color: #282828;
  letter-spacing: .5px;
  line-height: 1.5;
  height: 100%;
}

body:not(.user-is-tabbing) *:focus {
  outline: none;
  box-shadow: none;
}

body.opened {
  overflow: hidden;
  height: 100%;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

main {
  flex: 1 0 auto;
  flex-direction: column;
  background: #fff;
  margin-bottom: 3rem;
}

header, footer {
    /*flex: none;*/
    position: relative;
}

footer .top {
  background: #8C2924;
  color: #fff;
  padding: 3rem 0;
}

footer .bottom {
  background: #000;
  color: #fff;
  padding: 1.5rem 0;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 1.5rem;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  color: #fff;
  text-decoration: none;
}

footer h3 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.BDS {
  margin: -2px auto 0 auto;
}

table.BDS tr td {
  padding: 0;
  font-size: 0;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
  padding-right: var(--bs-gutter-x,1.5rem);
  padding-left: var(--bs-gutter-x,1.5rem);
}

.navbar>.container-fluid {
  padding: 0;
  align-items: flex-start;
}

.navbar>.container-fluid>.container {
  display: flex;
}

.navbar {
  margin-top: 2.5rem;
  padding: 0;
}

.navbar-brand {
  transform: translate(-50%,0%);
  position: absolute;
  top: 0;
  left: 50%;
  margin: 0;
  padding: 0;
}

.navbar-nav {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.navbar-nav ul {
  list-style: none;
}

.navbar-expand-lg .navbar-nav .nav-link {
  font-size: 1.8rem;
  color: #fff;
  padding: 1rem 0;
  line-height: 1.3;
}

.navbar-toggler {
  transition: all 0.3s;
  padding: 0;
  border: none;
  z-index: 10;
  background: transparent;
  position: relative;
}

.navMenu-icon {
  height: 30px;
  width: 32px;
  cursor: pointer;
  display: inline-block;
  position: relative;
}

.navMenu-icon span {
  background: #000;
  border-radius: 1.5px;
  display: block;
  height: 4px;
  left: 0;
  opacity: 1;
  position: absolute;
  transform: rotate(0deg);
  transition: .25s;
  width: 32px;
}

.navMenu-icon span:first-child {
  top: 0;
  transform-origin: left center;
}

.navMenu-icon span:nth-child(2) {
  top: 10px;
  transform-origin: left center;
  width: 24px;
}

.navMenu-icon span:nth-child(3) {
  top: 20px;
  transform-origin: left center;
  width: 28px;
}

.opened .navbar-toggler .navMenu-icon span {
  background: #fff;
}

.opened .navbar-toggler .navMenu-icon span:first-child {
  transform: rotate(45deg);
}

.opened .navbar-toggler .navMenu-icon span:nth-child(2) {
  opacity: 0;
  width: 0;
  transform-origin: left center;
}

.opened .navbar-toggler .navMenu-icon span:nth-child(3) {
  transform: rotate(-45deg);
  top: 23px;
  width: 32px;
}

.banner {
  background: rgba(252, 223, 98, 0.23);
  margin: 20rem 0 3rem;
  letter-spacing: 0;
  padding: 8px 0;
  text-align: center;
  font-size: 1.4rem;
}

.banner a {
  color: #000;
  text-decoration: underline;
}

.banner a:hover {
  color: #000;
  text-decoration: none;
}

.alert {
  background: #eee;
  border-radius: .4rem;
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.alert.attention {
  border-top: 6px solid #FF5047;
}

.alert.note {
  border-top: 6px solid #e6bb2c;;
}

main .alert h2, main .alert h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.alert ul, main ul {
  list-style: none;
  padding: 0 0 0 .2rem;
}

main ul {
  padding-left: 1.5rem;
}

.alert ul li, main ul li {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  position: relative;
}

.alert ul li:before, main ul li:before {
  content: "\f1b9";
  font-size: 1rem;
  font-family: "Material Icons";
  font-weight: 900;
  position: absolute;
  top: 4px;
  left: 0;
  content: "\e531";
}

.alert .btn {
  margin-bottom: 1.5rem;
}

.alert.attention h2 i, .alert.attention h3 i {
  color: #FF5047;
}

.alert.note h2 i, .alert.note h3 i {
  /*color: #6CA565;*/
  color: #e6bb2c;
}

.alert p:last-of-type {
  margin: 0;
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 0;
}

.subtitle1 {
  font-size: 2.4rem;
  font-weight: 200;
  line-height: 1.1;
  margin-top: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: #037FAE;
  text-decoration: none;
}

a:hover {
  color: #037FAE;
  text-decoration: underline;
}

.small {
  font-size: 80%;
}

.btn {
  white-space: nowrap;
}

.btn-lg, .btn-sm {
  font-weight: 700;
  font-size: 1.4rem;
  padding: 1.1rem 5rem;
  border-radius: 4px;
  height: 4.4rem;
  text-decoration: none;
}

.btn-sm {
  font-size: 1.3rem;
  padding: 1rem 2rem;
  height: 4rem;
}

.btn-lg:hover, .btn-sm:hover {
  text-decoration: none;
}

.btn-lg:focus, .btn-sm:focus {
  box-shadow: 0px 0px 0px 4px #7edcff;
  text-decoration: none;
}

.btn-primary {
  background: #037FAE;
  border-color: #037FAE;
}

.btn-primary:hover {
  background: #016A92;
  border-color: #037FAE;
}

.btn-primary:focus {
  background: #016A92;
}

.btn-secondary {
  background: #fff;
  border: 1px solid #037FAE;
  color: #037FAE;
}

.btn-secondary:hover {
  background: #016A92;
}

.btn-secondary:focus {
  background: #016A92;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.btn-ghost:hover {
  background: #fff;
  color: #8C2924;
}

.row {
  --bs-gutter-x: 3rem;
}

.cities {
  column-count: 2
}

main h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.table-container {
  width: 100%;
  overflow: auto;
  border: 1px solid #000;
}

main table {
  /*border: 1px solid #000;*/
  width: 100%;
}

main table tr {
  border-bottom: 1px solid #000;
  vertical-align: top;
}

main table tr th {
  background: #fef8dc;
  box-shadow: 0px 1px 0px 0px rgba(0,0,0,0.75);
}

main table tr:last-child {
  border-bottom: none;
}

main table tr th, table tr td {
  padding: 5px 10px;
}

main table.prices tr th:nth-of-type(1) {
  width: 40%;
}

main table.prices tr th:nth-of-type(2) {
  width: 15%;
}

main table.prices tr th:nth-of-type(3) {
  width: 45%;
}

.google-maps {
  position: relative;
  padding-bottom: 75%;
  height: 0;
  overflow: hidden;
}

.google-maps iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

a.back {
    opacity: 0;
    color: #5f6368;
    position: fixed;
    border-radius: 100%;
    height: 50px;
    width: 50px;
    text-decoration: none;
    text-align: center;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    display: flex;
    border: none;
    justify-content: center;
    align-items: center;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgb(60 64 67 / 30%), 0 2px 6px 2px rgb(60 64 67 / 15%);
}

.fadeInUp, .fadeOutDown {
  -webkit-animation-duration: .5s;
  animation-duration: .5s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 50%, 0);
    transform: translate3d(0, 50%, 0);
  }

  to {
    opacity: .9;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 50%, 0);
    transform: translate3d(0, 50%, 0);
  }

  to {
    opacity: .9;
    -webkit-transform: none;
    transform: none;
  }
}

.fadeInUp {
  -webkit-animation-name: fadeInUp;
  animation-name: fadeInUp;
}

@-webkit-keyframes fadeOutDown {
  from {
    opacity: .9;
  }

  to {
    opacity: 0;
    -webkit-transform: translate3d(0, 50%, 0);
    transform: translate3d(0, 50%, 0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: .9;
  }

  to {
    opacity: 0;
    -webkit-transform: translate3d(0, 50%, 0);
    transform: translate3d(0, 50%, 0);
  }
}

.fadeOutDown {
    -webkit-animation-name: fadeOutDown;
    animation-name: fadeOutDown;
    pointer-events: none;
}

@media (max-width: 991.98px) {
  .offcanvas-collapse {
    position: fixed;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 100%;
    overflow-y: auto;
    visibility: hidden;
    background-color: #8C2924;
    transition: transform .15s ease-in-out, visibility .15s ease-in-out;
  }
  .offcanvas-collapse.open {
    visibility: visible;
    transform: translateX(100%);
  }
}

/*Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  main table tr th {
    position: sticky;
    top: -1px;
    box-shadow: inset 0 -1px 0 0 #000;
  }

  main table.bds-schedule tr th:nth-of-type(1) {
    width: 21%;
  }

  main table.bds-schedule tr th:nth-of-type(2) {
    width: 20%;
  }

  main table.bds-schedule tr th:nth-of-type(3) {
    width: 12%;
  }

  main table.bds-schedule tr th:nth-of-type(4) {
    width: 18%;
  }

  main table.bds-schedule tr th:nth-of-type(5) {
    width: 12%;
  }

  main table.bds-schedule tr th:nth-of-type(6) {
    width: 17%;
  }
}

/* Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {
  body {
    font-size: 1.8rem;
  }

  body.opened {
    overflow: auto;
    position: inherit;
    transform: inherit;
  }

  .logo img {
    height: 140px;
  }

  .navbar>.container-fluid>.container {
    justify-content: space-between;
    align-items: flex-start;
  }

  .navbar-expand-lg .navbar-collapse {
    flex-grow: inherit;
  }

  .navbar-expand-lg .navbar-nav {
    margin-top: 5rem;
    padding: 0;
    align-items: center;
  }

  .navbar-brand {
    transform: translate(0%,0%);
    position: relative;
    top: -15px;
    left: 0;
    z-index: 1;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    font-weight: 200;
    color: #000;
    padding: 0 0 7px;
    margin-left: 2.5rem;
    text-decoration: none;
    position: relative;
    font-size: 2rem;
  }

  .navbar-expand-lg .navbar-nav .nav-link:after {
    content: "";
    box-shadow: inset 0px -3px 0px 0px #000;
    width: 0%;
    transition: width 0.3s ease-in-out;
    position: absolute;
    bottom: 0;
    height: 3px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar-expand-lg .navbar-nav .nav-link.active:after,
  .navbar-expand-lg .navbar-nav .nav-link:hover:after {
    content: "";
    width: 100%;
  }

  .home-image {
    position: relative;
    background: url(../images/drivingschool.jpg) no-repeat 0 0;
    background-position-y: top;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    min-height: 600px;
    margin-bottom: 5rem;
  }

  .banner {
    margin: 0;
    text-align: right;
    position: absolute;
    top: 0;
    font-size: 1.4rem;
  }

  h1 {
    font-size: 4.6rem;
    margin: 0;
  }

  h2 {
    font-size: 3.2rem;
    margin: 0;
  }

  h3 {
    font-size: 2.4rem;
    margin: 0;
  }

  .subtitle1 {
    font-size: 3.6rem;
  }

  main {
    margin-bottom: 5rem;
    }

  main h2 {
    margin-top: 5rem;
    margin-bottom: 2rem;
  }

  footer .top {
    padding: 5rem 0;
  }

  footer h3 {
    margin-top: 0;
    margin-bottom: 2rem;
  }

  .btn-sm {
    font-size: 1.6rem;
    padding: .9rem 2rem;
    height: 4.2rem;
  }

  .btn-lg {
    font-size: 1.8rem;
    padding: 1rem 5rem;
    height: 4.8rem;
  }

  .btn-ghost {
    color: #037FAE;
    border: 1px solid #037FAE;
    margin: -.5rem 0 0 2rem !important;
  }

  .btn-ghost:hover {
    color: #fff;
    background: #016A92;
    border-color: #016A92;
  }

  .cities {
    column-count: 3;
  }

  .alert ul li:before, main ul li:before {
    font-size: 1.4rem;
  }

  .alert ul li, main ul li {
    padding-left: 2.5rem;
  }

  main table tr th, table tr td {
    font-size: 1.6rem;
  }

  main table.bds-schedule tr th:nth-of-type(1) {
    width: 18%;
  }

  main table.bds-schedule tr th:nth-of-type(2) {
    width: 18%;
  }

  main table.bds-schedule tr th:nth-of-type(3) {
    width: 14%;
  }

  main table.bds-schedule tr th:nth-of-type(4) {
    width: 21%;
  }

  main table.bds-schedule tr th:nth-of-type(5) {
    width: 12%;
  }

  main table.bds-schedule tr th:nth-of-type(6) {
    width: 17%;
  }
}

/* X-Large devices (desktops, 1200px and up)*/
@media (min-width: 1200px) {
  .logo img {
    height: initial;
  }

  .table-container {
    overflow: inherit;
  }

  main table.bds-schedule tr th:nth-of-type(1) {
    width: 20%;
  }

  main table.bds-schedule tr th:nth-of-type(2) {
    width: 18%;
  }

  main table.bds-schedule tr th:nth-of-type(3) {
    width: 14%;
  }

  main table.bds-schedule tr th:nth-of-type(4) {
    width: 17%;
  }

  main table.bds-schedule tr th:nth-of-type(5) {
    width: 10%;
  }

  main table.bds-schedule tr th:nth-of-type(6) {
    width: 21%;
  }
}

/* XX-Large devices (desktops, 1400px and up)*/
@media (min-width: 1400px) {
  .home-image {
    height: 50vh;
    background-position-y: 12%;
  }

 main table.bds-schedule tr th:nth-of-type(1) {
    width: 18%;
  }

  main table.bds-schedule tr th:nth-of-type(2) {
    width: 20%;
  }

  main table.bds-schedule tr th:nth-of-type(3) {
    width: 15%;
  }

  main table.bds-schedule tr th:nth-of-type(4) {
    width: 15%;
  }

  main table.bds-schedule tr th:nth-of-type(5) {
    width: 10%;
  }

  main table.bds-schedule tr th:nth-of-type(6) {
    width: 22%;
  }
}

/* XXX-Large devices (desktops, 1800px and up)*/
@media (min-width: 1800px) {
  .home-image {
    height: 60vh;
    background-position-y: 18%;
  }
}
