@font-face {
  font-family: 'BlackMango';
  src: url('fonts/BlackMango-Black.ttf');
}

@font-face {
  font-family: 'Hatton';
  src: url('fonts/pp-hatton-medium-500.otf');
}

@font-face {
  font-family: 'Hatton';
  font-weight: bold;
  src: url('fonts/pp-hatton-bold-700.otf');
}

header {
  position: fixed;
  width: 100%;
  z-index: 100;
}

#cookieConsent {
  position: fixed;
  bottom: 0;
  height: fit-content;
  width: 100%;
  z-index: 101;
  margin: 0;
}

.display-4, .display-5, .display-6, h1 {
  font-family: 'BlackMango';
}

nav, footer {
  background-color: #22bcf6;
}

footer p {
  /* otherwise, it does not break it for some reason */
  white-space: normal;
  line-height: 25px;
}

body {
  font-size: 16px;
  font-family: 'Hatton';
  color: #3F3532;
  background-color: #FCFAF6;
  margin-bottom: 60px;
  width: 100%;
}

main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 200px auto;
  /* to leave space for the header */
  padding-top: 120px;
  padding-left: 10px; padding-right: 10px;
}

img.portrait {
  display: block;
  width: 200px;
  margin: 10px auto;
}

.carousel {
  width: view-width();
  margin: 20px 0;
}

.carousel-caption {
  background-color: black;
  position: static;
  font-size: 18px;
  padding: 4px;
}
.carousel-caption .title {
  font-size: 20px;
  margin-bottom: 5px;
}
.carousel-caption .subtitle {
  margin-bottom: 0;
}
.carousel-caption .subtitle a {
  color: inherit;
}
/* Except for buttons: */
.carousel-caption .subtitle a.btn {
  color: #3F3532;
}

html {
  position: relative;
  min-height: 100%;
}

.btn {
  background-color: #22bcf6;
  border-color: #3F3532;
  color: #3F3532;
}

.btn:disabled {
  background-color: #cccccc;
  color: black;
}

.btn:hover {
  background-color: #aadff3;
  border-color: #36528e;
}

.btn:active {
  background-color: #445c44 !important; /* I had no time for raping Bootstrap with Saas */
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #622244;
}

/* there was an ugly small distance after the consultation form, so: */
form {
  margin-bottom: 1rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.logo {
  max-height: 75px;
}

/* at registration */
#terms-checkbox-div {
  padding: 5px;
  margin-bottom: 15px;
}

/* for the numeric details of ticket types in the table */
#ticket-type-table tr > *:not(:first-child) {
  text-align: right;
}
#ticket-type-table tr > *:first-child {
  padding-left: 15px;
}
#ticket-type-table tr > *:last-child {
  padding-right: 15px;
}

tr.expired-ticket td {
  color: #999999;
}

/* for the lesson detail page */
img.location-image {
  display: block;
  width: 400px;
}

main #homeCarousel .carousel-item img {
  max-height: 300px;
  object-fit: cover;
}

@media (min-width: 768px) {
  html {
    font-size: 20px;
  }

  main {
    margin-left: 5%;
    width: 80%;
  }

  main #homeCarousel {
    margin-left: 10%;
    width: 95%;
    max-width: 1400px;
  }

  img.portrait {
    float: right;
    width: 20%;
    min-width: 180px;
    margin: 10px;
  }

  .carousel-caption {
    background-color: rgba(0, 0, 0, 0.8);
    position: absolute;
    bottom: -10px; left: 0; right: 0;
    font-size: 20px;
  }
  .carousel-caption .title {
    font-size: 24px;
  }
  .carousel-caption .subtitle {
    margin-bottom: 15px;
  }
}
