/*
 * Presentation compatibility for the Bootstrap 3 to 5.3 migration.
 *
 * The application markup uses Bootstrap 5 components and data attributes. These
 * rules retain the original Bootstrap 3 container sizing and a few presentation
 * helpers that Bootstrap 5 intentionally removed, minimizing visual regressions.
 */

body {
  line-height: 1.42857143;
}

.container {
  --bs-gutter-x: 30px;
  max-width: none;
}

.row {
  --bs-gutter-x: 30px;
}

.ratio-2x1 {
  --bs-aspect-ratio: 45%;
}

/* Flowplayer overrides Bootstrap's positioned ratio child with position: relative.
   Keep the player inside the ratio box so the spacer and video do not stack. */
.ratio > [data-player-id] {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

@media (min-width: 768px) {
  .container {
    width: 750px;
    max-width: 750px;
  }
}

@media (min-width: 992px) {
  .container {
    width: 970px;
    max-width: 970px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 1170px;
    max-width: 1170px;
  }
}

.btn-block {
  display: block;
  width: 100%;
}

.well {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.panel {
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.panel-default {
  border-color: #ddd;
}

.panel-body {
  padding: 15px;
}

.label {
  display: inline;
  padding: 0.2em 0.6em 0.3em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25em;
}

.label-info {
  background-color: #5bc0de;
}

.form-group {
  margin-bottom: 15px;
}

.control-label {
  margin-bottom: 5px;
  font-weight: 700;
}

.help-block {
  display: block;
  margin-top: 5px;
  margin-bottom: 10px;
  color: #737373;
}

.has-error .control-label,
.has-error .help-block,
.has-error .form-control-feedback {
  color: #a94442;
}

.has-error .form-control {
  border-color: #a94442;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.nav-main .navbar-header {
  width: 100%;
}

.navbar-toggle {
  display: block;
  border: 0;
}

@media (min-width: 768px) {
  .nav-main .navbar-header {
    width: auto;
  }

  .navbar-toggle {
    display: none;
  }

  .nav-main .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .nav-main .navbar-nav {
    flex-direction: row;
  }
}

@media (min-width: 992px) {
  .resource-table .table-row-title.d-lg-block {
    display: table !important;
  }
}

.feedback-modal .modal-header {
  align-items: center;
}
