html {
  font-size: 16px;
}

header {
  position: fixed;
  width: 100%;
  z-index: 100;
}

#cookieConsent {
  position: fixed;
  bottom: 0;
  height: fit-content;
  width: 100%;
  z-index: 101;
  margin: 0;
}

nav, footer {
  background-color: #c3e2c0;
}

footer p {
  /* otherwise, it does not break it for some reason */
  white-space: normal;
  line-height: 25px;
}

body {
  background-color: seashell;
  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;
}

.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;
}

html {
  position: relative;
  min-height: 100%;
}

/* home page timetable */
#timetable div.row > div {
  background-color: white;
  border-right: 1px solid rgba(128, 128, 128, 0.226);
}
#timetable td {
  border-bottom: none;
}
#timetable-container .btn {
  margin-top: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 20px;
  }

  main {
    margin-left: 5%;
    width: 80%;
  }

  main #homeCarousel, #timetable-container {
    margin-left: 10%;
    width: 95%;
    max-width: 1400px;
  }

  .carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
    bottom: -10px; left: 0; right: 0;
    font-size: 20px;
  }
  .carousel-caption .title {
    font-size: 24px;
  }
  .carousel-caption .subtitle {
    margin-bottom: 15px;
  }
}

.btn {
  background-color: #c3e2c0;
  border-color: #5b2503;
  color: black;
}

.btn:disabled {
  background-color: #cccccc;
  color: black;
}

.btn:hover {
  background-color: #5e7e5e;
  border-color: #5b2503;
}

.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;
}

.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;
}

/* so that the tables reach each other */
#timetable > .row > div  {
  padding: 0;
}

/* 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;
}
