.trv-root { margin: 1rem 0; }
.trv-heading { display: flex; align-items: center; min-height: 2.75rem; }
.trv-title { margin: 0; font-weight: 600; }
.trv-body { padding: 15px; }
.trv-video, .trv-youtube-shell iframe { width: 100%; max-width: 100%; border: 0; background: #000; }
.trv-video { display: block; min-height: 240px; }
.trv-youtube-shell { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.trv-youtube-shell iframe { position: absolute; inset: 0; height: 100%; }
.trv-status { margin-top: .75rem; }
.trv-completed .trv-status { font-weight: 600; }
.trv-empty { padding: 15px; }

.trv-video-shell {
  position: relative;
}

.trv-question-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, .55);
}

.trv-question-overlay[hidden] {
  display: none;
}

.trv-question-card {
  width: min(760px, 100%);
  max-height: 90%;
  overflow: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  padding: 20px;
}

.trv-question-time {
  color: #777;
  font-size: 12px;
  margin-bottom: 6px;
}

.trv-question-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.trv-answer-list {
  margin-bottom: 15px;
}

.trv-answer-option {
  display: block;
  padding: 9px 12px;
  margin-bottom: 7px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f9f9f9;
  cursor: pointer;
}

.trv-answer-option:hover {
  background: #f2f2f2;
}

.trv-question-actions {
  margin-top: 15px;
  text-align: right;
}

.trv-correct-answer {
  margin-top: 8px;
}

.trv-question-editor {
  margin-bottom: 10px;
}

.trv-qe-toolbar {
  margin-bottom: 10px;
}

.trv-qe-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trv-qe-answer-row {
  margin-bottom: 6px;
}

.trv-qe-feedback-row {
  margin-top: 12px;
}


.trv-video-no-seek {
  cursor: pointer;
}


.trv-question-overlay-has-bg {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.trv-editor-tabs {
  margin-bottom: 15px;
}

.trv-editor-tabs .nav-tabs {
  margin-bottom: 0;
}

.trv-qe-background + .help-block {
  margin-bottom: 0;
}

.trv-editor-tabs {
  margin: 0 0 15px 0;
}

.trv-editor-tabs .trv-editor-tab-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  list-style: none;
  padding-left: 0;
  margin: 0 0 15px 0;
  border-bottom: 1px solid #ddd;
}

.trv-editor-tabs .trv-editor-tab-nav > li {
  display: block;
  margin: 0 2px -1px 0;
}

.trv-editor-tabs .trv-editor-tab-nav > li > a {
  display: block;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  text-decoration: none;
}

.trv-editor-tabs .trv-editor-tab-nav > li.active > a,
.trv-editor-tabs .trv-editor-tab-nav > li.active > a:hover,
.trv-editor-tabs .trv-editor-tab-nav > li.active > a:focus {
  border-color: #ddd #ddd transparent #ddd;
  background: #fff;
}


/* Editor tabs: keep the tab navigation horizontal even inside legacy ILIAS form tables. */
.trv-editor-tabs .trv-editor-tab-nav,
.trv-editor-tabs ul.nav.trv-editor-tab-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 0 15px 0 !important;
  border-bottom: 1px solid #ddd !important;
}

.trv-editor-tabs .trv-editor-tab-nav > li {
  display: block !important;
  float: none !important;
  width: auto !important;
  margin: 0 2px -1px 0 !important;
}

.trv-editor-tabs .trv-editor-tab-nav > li > a {
  display: block !important;
  padding: 8px 15px !important;
  border: 1px solid transparent !important;
  border-radius: 4px 4px 0 0 !important;
  text-decoration: none !important;
}

.trv-editor-tabs .trv-editor-tab-nav > li.active > a,
.trv-editor-tabs .trv-editor-tab-nav > li.active > a:hover,
.trv-editor-tabs .trv-editor-tab-nav > li.active > a:focus {
  border-color: #ddd #ddd transparent #ddd !important;
  background: #fff !important;
}
