* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-size: 1.0rem;
  line-height: 1.3;
  overflow: hidden;
}

ul {
  margin-left: 0;
  padding-left: 0;
  list-style-type: none;
  list-style-position: inside;
  margin-bottom: 0;
}

li {
  margin-left: 0;
  padding-left: 0;
}

div[no-scrollbar]{
  scrollbar-width: none;
}

div[no-scrollbar]::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

header {
  height: 56px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px 1px rgba(0,0,0,0.4);
}

#img_logo {
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: 24px;
}

header > h1 {
  margin-top: 8px;
  margin-left: 8px;
  cursor: pointer;
  font-size: 1.8rem;
  padding-left: 4px;
  padding-right: 4px;

  --b: 2px;
  --c: grey;
  --w: 15px;
  --h: 10px;

  border: var(--b) solid #0000;
  --_g: #0000 90deg,var(--c) 0;
  --_p: var(--w) var(--h) border-box no-repeat;
  background:
          conic-gradient(from 90deg  at top    var(--b) left  var(--b),var(--_g)) 0    0    / var(--_p),
          conic-gradient(from -90deg at bottom var(--b) right var(--b),var(--_g)) 100% 100% / var(--_p);
}

#img_charts {
  visibility: hidden;
  position: relative;
  justify-self: right;
  margin-right: 24px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

#img_keyness {
  visibility: hidden;
  position: relative;
  justify-self: right;
  margin-left: auto;
  margin-right: 24px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

#img_help {
  position: relative;
  justify-self: right;
  margin-right: 24px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

#img_filter {
  position: relative;
  justify-self: right;
  margin-right: 24px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

#img_passage_chart {
  position: relative;
  justify-self: right;
  margin-right: 24px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

#main_container {
  width: 100%;
  height: calc(100% - 56px);
  display: flex;
  flex-direction: row;
}

#map_container {
  flex-basis: 50px;
  height: calc(100% - 8px);
}

#map { 
  width: 100%;
  height: calc(100% - 8px);
  margin-top: 5px;
  margin-left: 5px;
}

/* Introduction */

#template_container {
  font-size: 1.1rem;
  margin-top: 0;
  border-top: 0 solid #ccc;
  padding-top: 0;
}

#template_container > p, #references_container > p {
  margin-top: 8px;
}

#template_container h3, #references_container h3:nth-of-type(n+2) {
  margin-top: 16px;
}

/* References */
#references_container {
  font-size: 1.1rem;
}

#references_container #img_hu_logo {
  position: relative;
  width: 100px;
  height: 100px;
  float: right;
  margin-left: 16px;
}

#references_container #img_dfg_logo {
  position: relative;
  width: 300px;
  height: auto;
  margin-top: 0;
}

/* source */

#source_container > h2 {
  margin-bottom: 16px;
}

#source_and_target_container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
}

#source_container {
  position: relative;
  flex-basis: 50%;
  height: calc(100% - 8px);
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 16px;
  box-shadow: 0 1px 10px 1px rgba(0,0,0,0.2);
  border-radius: 4px;
}

.prologue {
  display: inline-block;
  font-weight: bold;
  font-size: 1.4em;
  pointer-events: none;
}

#source_container .act {
  display: inline-block;
  margin-top: 16px;
  font-weight: bold;
  font-size: 1.4em;
  pointer-events: none;
}

#source_container .act:first-child {
  margin-top: 0;
}

.scene {
  display: inline-block;
  margin-top: 16px;
  padding-left: 4px;
  padding-right: 4px;
  font-weight: bold;
  font-size: 1.3em;
  pointer-events: none;

  --b: 2px;
  --c: grey;
  --w: 15px;
  --h: 10px;

  border: var(--b) solid #0000;
  --_g: #0000 90deg,var(--c) 0;
  --_p: var(--w) var(--h) border-box no-repeat;
  background:
          conic-gradient(from 90deg  at top    var(--b) left  var(--b),var(--_g)) 0    0    / var(--_p),
          conic-gradient(from -90deg at bottom var(--b) right var(--b),var(--_g)) 100% 100% / var(--_p);
}

.scene_start {
  display: inline-block;
  margin-top: 16px;
  padding-left: 4px;
  padding-right: 0;
  font-weight: bold;
  font-size: 1.3em;
  pointer-events: none;

  --b: 2px;
  --c: grey;
  --w: 15px;
  --h: 10px;

  border: var(--b) solid #0000;
  --_g: #0000 90deg,var(--c) 0;
  --_p: var(--w) var(--h) border-box no-repeat;
  background:
          conic-gradient(from 90deg  at top    var(--b) left  var(--b),var(--_g)) 0    0    / var(--_p);
}

.scene_end {
  display: inline-block;
  margin-top: 16px;
  padding-left: 0;
  padding-right: 4px;
  font-weight: bold;
  font-size: 1.3em;
  pointer-events: none;

  --b: 2px;
  --c: grey;
  --w: 15px;
  --h: 10px;

  border: var(--b) solid #0000;
  --_g: #0000 90deg,var(--c) 0;
  --_p: var(--w) var(--h) border-box no-repeat;
  background:
          conic-gradient(from -90deg at bottom var(--b) right var(--b),var(--_g)) 100% 100% / var(--_p);
}

#source_container:not(:has(.act)) .scene:first-child {
  margin-top: 0;
}

.stage {
  display: inline;
  font-style: italic;
  margin-top: 4px;
  margin-bottom: 0;
  pointer-events: none;
  white-space: pre-wrap;
}

.stage::before {
  display: inline-block;
  margin-top: 4px;
}

.stage_con {
  display: inline;
  font-style: italic;
  margin-top: 0;
  pointer-events: none;
}

.stage_inline, .stage_inline_con {
  font-style: italic;
  pointer-events: none;
}

.speaker, .speaker_con {
  display: inline-block;
  margin-top: 16px;
  margin-bottom: 0;
  font-weight: bold;
  pointer-events: none;
  white-space: pre-wrap;
}

.emph, .emph_con {
  font-style: italic;
  white-space: pre-wrap;
}

ul#home_collections .collection_title {
  font-size: 1.2rem;
  font-weight: bold;
}

ul#home_collections .collection_description {
  font-size: 1.0rem;
  font-weight: normal;
  font-style: italic;
  margin-left: 8px;
}

ul#home_collections .collection_work_stats {
  font-size: 1.0em;
  font-style: italic;
  padding-left: 8px;
  color: #989898;
}

ul#home_collections li ul li a {
  font-size: 1.1rem;
  font-weight: normal;
  color: #000000;
  text-decoration: none;
}

ul#home_collections ul {
  margin-left: 16px;
}

ul#home_collections li ul li {
  list-style-type: none;
  --icon-path: url(../img/article.svg);
}

ul#home_collections li ul li::before {
  display: inline-block;
  content: "";
  height: 20px;
  width: 20px;
  background-size: 20px 20px;
  background-image: var(--icon-path);
  background-repeat: no-repeat;
  margin-right: 8px;
  vertical-align: -25%;
}

ul#home_collections li ul li a:hover {
  color: #989898;
}

ul#home_collections > li:nth-child(n+2) {
  margin-top: 16px;
}

ul#home_collections li ul li {
  margin-top: 0;
}

/* target */

#target_main_container {
  position: relative;
  flex-basis: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#target_text_container {
  position: relative;
  width: calc(100% - 16px);
  flex-basis: 40%;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 16px;
  font-size: 1.0rem;
  box-shadow: 0 1px 10px 1px rgba(0,0,0,0.2);
  margin-left: 8px;
  border-radius: 4px;
}

#target_main_container .bibl {
  margin-bottom: 16px;
}

#target_link_and_statistics_container {
  position: relative;
  display: flex;
  width: 100%;
  flex-basis: 60%;
  overflow-y: hidden;
  overflow-x: hidden;
  flex-direction: row;
}

#target_link_container {
  position: relative;
  flex-basis: 50%;
  height: calc(100% - 16px);
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 16px;
  font-size: 1.0rem;
  box-shadow: 0 1px 10px 1px rgba(0,0,0,0.2);
  margin-top: 8px;
  margin-left: 8px;
  border-radius: 4px;
}

ul.target_link_without_location li {
  font-weight: normal;
  cursor: pointer;
  list-style-type: none;
}

ul.target_link_without_location li::before {
  display: inline-block;
  content: "";
  height: 20px;
  width: 20px;
  background-size: 20px 20px;
  background-image: url(../img/article.svg);
  background-repeat: no-repeat;
  margin-right: 4px;
  vertical-align: -25%;
}

ul.target_link_without_location li:hover {
  color: #ED0009;
}

ul.target_link_with_location li {
  font-weight: bold;
}

ul.target_link_with_location ul li {
  cursor: pointer;
  list-style-type: none;
  margin-left: 0;
  font-weight: normal;
}

ul.target_link_with_location ul li::before {
  display: inline-block;
  content: "";
  height: 20px;
  width: 20px;
  background-size: 20px 20px;
  background-image: url(../img/quote.svg);
  background-repeat: no-repeat;
  margin-right: 4px;
  vertical-align: -25%;
}

ul.target_link_with_location  ul li:hover {
  color: #ED0009;
}

#statistics_frequent_segments_container {
  position: relative;
  flex: 1;
  width: calc(100% - 16px);
  box-shadow: 0 1px 10px 1px rgba(0,0,0,0.2);
  border-radius: 4px;
  font-size: 1rem;
  margin-top: 8px;
  margin-left: 8px;
  margin-bottom: 8px;
  overflow-y: scroll;
  overflow-x: hidden;
}

#statistics_frequent_segments_container:has(#source_segment_graph) {
  overflow: hidden !important;
}

#statistics_container {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-basis: 50%;
  height: 100%;
}

#statistics_container ul {
  list-style-type: none;
  margin-top: 0;
  margin-left: 0;
  padding-left: 0;
}

#statistics_container > ul {
  margin-top: 8px;
}

#statistics_container > ul li {
  font-weight: bold;
}

#statistics_container > ul > li {
  box-shadow: 0 1px 10px 1px rgba(0,0,0,0.2);
  margin-left: 8px;
  margin-right: 8px;
  padding: 8px;
  border-radius: 4px;
}

#statistics_container > ul li ul li {
  padding-left: 8px;
  font-weight: normal;
}

#statistics_frequent_segments_container > ul {
  margin: 8px;
}

#statistics_frequent_segments_container > ul li {
  font-weight: bold;
}

#statistics_frequent_segments_container > ul li ul li {
  cursor: pointer;
  margin-left: 8px;
  font-weight: normal;
}

#statistics_frequent_segments_container > ul li ul li:hover {
  font-size: 1.0rem;
  color: #ED0009;
  font-weight: normal;
}

#source_segment_graph {
  position: relative;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  margin-top: 8px;
  margin-left: 8px;
  overflow: hidden;
}

.link_selected {
  color: #ED0009;
  font-weight: normal;
}

.text_standard {
  font-size: 1.0rem;
  color: transparent;
  text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.text_standard_clear {
  font-size: 1.0rem;
  color: transparent;
  text-shadow: 0 0 0 rgba(0,0,0,0.5);
}

.text_standard:hover {
  font-size: 1.0rem;
  color: transparent;
  text-shadow: 0 0 0 rgba(0,0,0,0.5);
}

.citation_source_selected {
  border-bottom: 1px solid #00A7AD;
}

.source_segment {
  cursor: pointer;
}

.selected_source_segment_highlight {
  color: #ED0009;
  font-weight: normal;
}

.source_segment_highlight {
  color: #3213FF;
}

.source_segment_highlight_other {
  color: #006633;
}

.source_segment_highlight_both {
  color: #d413ff;
}

.source_segment_graph_highlight {
  color: #10bb65 !important;
  font-weight: normal !important; 
  border: 1px inset;
}

.short_quote:not(.source_segment_graph_highlight) {
  color: #d413ff !important;
}

.filter_highlight {
  color: #f3983d !important;
}

.citation_source_container:not(.filter_highlight):not(.passage_graph_highlight) > .source_segment_background_o10 {
  color: transparent;
  text-shadow: 0 0 0 rgba(0,0,0,1.0);
}

.citation_source_container:not(.filter_highlight):not(.passage_graph_highlight) > .source_segment_background_o9 {
  color: transparent;
  text-shadow: 0 0 0 rgba(0,0,0,0.95);
}

.citation_source_container:not(.filter_highlight):not(.passage_graph_highlight) > .source_segment_background_o8 {
  color: transparent;
  text-shadow: 0 0 0 rgba(0,0,0,0.9);
}

.citation_source_container:not(.filter_highlight):not(.passage_graph_highlight) > .source_segment_background_o7 {
  color: transparent;
  text-shadow: 0 0 0 rgba(0,0,0,0.85);
}

.citation_source_container:not(.filter_highlight):not(.passage_graph_highlight) > .source_segment_background_o6 {
  color: transparent;
  text-shadow: 0 0 0 rgba(0,0,0,0.8);
}

.citation_source_container:not(.filter_highlight):not(.passage_graph_highlight) > .source_segment_background_o5 {
  color: transparent;
  text-shadow: 0 0 0 rgba(0,0,0,0.75);
}

.citation_source_container:not(.filter_highlight):not(.passage_graph_highlight) > .source_segment_background_o4 {
  color: transparent;
  text-shadow: 0 0 0 rgba(0,0,0,0.7);
}

.citation_source_container:not(.filter_highlight):not(.passage_graph_highlight) > .source_segment_background_o3 {
  color: transparent;
  text-shadow: 0 0 0 rgba(0,0,0,0.65);
}

.citation_source_container:not(.filter_highlight):not(.passage_graph_highlight) > .source_segment_background_o2 {
  color: transparent;
  text-shadow: 0 0 0 rgba(0,0,0,0.6);
}

.citation_source_container:not(.filter_highlight):not(.passage_graph_highlight) > .source_segment_background_o1 {
  color: transparent;
  text-shadow: 0 0 0 rgba(0,0,0,0.55);
}

.source_segment_font_s10 {
  font-size: 1.45rem;
}

.source_segment_font_s9 {
  font-size: 1.4rem;
}

.source_segment_font_s8 {
  font-size: 1.35rem;
}

.source_segment_font_s7 {
  font-size: 1.3rem;
}

.source_segment_font_s6 {
  font-size: 1.25rem;
}

.source_segment_font_s5 {
  font-size: 1.2rem;
}

.source_segment_font_s4 {
  font-size: 1.15rem;
}

.source_segment_font_s3 {
  font-size: 1.1rem;
}

.source_segment_font_s2 {
  font-size: 1.05rem;
}

.source_segment_font_s1 {
  font-size: 1.0rem;
}

.citation_source_container:hover {
  text-decoration: underline;
}

.target_location_highlight:not(.disabled) {
  color: #3213FF;
  cursor: pointer;
}

.selected_target_location {
  color: #ED0009;
  font-weight: normal;
  cursor: pointer;
}

.censored {
  color: transparent;
  text-shadow: 0 0 0 rgba(0,0,0,0.5);
}

@media only screen and (max-width: 1275px) {
  
  #source_and_target_container {
    flex-direction: column;
  }

  #source_container {
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: 40%;
    width: 100%;
  }

  #target_main_container {
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: 60%;
    height: 0;
    width: 100%;
  }

  #target_text_container {
    margin-top: 8px;
    margin-left: 0;
  }

  #target_link_container {
    margin-left: 0;
  }
}
