/*!
 * Adjusted Stylesheet originally from: 
 * Start Bootstrap - Resume v5.0.8 (https://startbootstrap.com/template-overviews/resume)
 * Copyright 2013-2019 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-resume/blob/master/LICENSE)
 */

:root {
  --text-color: #868e96;
  --dark-background: #495057;
  --accent-color: #17a2b8;
  --link-active-color: #17a2b8;
  --nav-text-color: #b1b4c3;
  --nav-text-color-highlight: #ffffff;
}

body {
  font-family: "Noto Sans", "Noto Sans Arabic", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  padding-top: 54px;
  color: var(--text-color);
}

@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: 17rem;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Saira Extra Condensed", "Noto Sans Arabic", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 700;
  text-transform: uppercase;
  color: #343a40;
}

h1 {
  font-size: 6rem;
  line-height: 5.5rem;
}

h2 {
  font-size: 3.5rem;
}

h3 {
  font-size: 2rem;
}

p.lead {
  font-size: 1.15rem;
  font-weight: 400;
}

.subheading {
  text-transform: uppercase;
  font-weight: 500;
  font-family: "Saira Extra Condensed", "Noto Sans Arabic", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1.5rem;
}

.amiri {
  font-family: "Amiri", "Noto Sans", "Noto Sans Arabic", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.social-icons a {
  display: inline-block;
  height: 3.5rem;
  width: 3.5rem;
  background-color: var(--dark-background);
  color: #fff !important;
  border-radius: 100%;
  text-align: center;
  font-size: 1.5rem;
  line-height: 3.5rem;
  margin-right: 1rem;
}

.social-icons a:last-child {
  margin-right: 0;
}

.social-icons a:hover {
  background-color: var(--accent-color);
}

.dev-icons {
  font-size: 3rem;
}

.dev-icons .list-inline-item i:hover {
  color: var(--accent-color);
}

#sideNav .navbar-nav .nav-item .nav-link {
  font-weight: 800;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  font-family: "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
}

#sideNav .navbar-toggler:focus {
  outline-color: var(--accent-color);
}

@media (min-width: 992px) {
  #sideNav {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 17rem;
    height: 100vh;
  }
  #sideNav .navbar-brand {
    display: flex;
    margin: auto auto 0;
    padding: 0.5rem;
  }
  #sideNav .navbar-brand .img-profile {
    max-width: 15rem;
    max-height: 15rem;
    border: 0.5rem solid rgba(255, 255, 255, 0.2);
  }
  #sideNav .navbar-collapse {
    display: flex;
    align-items: flex-start;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
  }
  #sideNav .navbar-collapse .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  #sideNav .navbar-collapse .navbar-nav .nav-item {
    display: block;
  }
  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link {
    display: block;
  }
}

section.resume-section {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
  max-width: 75rem;
}

section.resume-section .resume-item .resume-date {
  min-width: none;
}

@media (min-width: 768px) {
  section.resume-section {
    min-height: 100vh;
  }
  section.resume-section .resume-item .resume-date {
    min-width: 18rem;
  }
}

@media (min-width: 992px) {
  section.resume-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

.bg-primary {
  background-color: var(--accent-color) !important;
}

.text-primary {
  color: var(--accent-color) !important;
}

a {
  color: var(--accent-color);
}

a:hover,
a:focus,
a:active {
  color: var(--link-active-color);
}

body {
  background: url("/local/img/dust_scratches.png");
}

.badge-info,
.btn-info,
.btn-primary {
  background-color: #2a385f;
  border-color: #2a385f;
}

.btn-info:hover,
.btn-primary:hover,
.btn-info:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: #565d7d;
  border-color: #2a385f;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

html .bg-primary {
  background-color: #212048 !important;
  background: url("/local/img/vintage-wallpaper.png");
}

h1.text-primary,
a {
  color: #2a385f !important;
}

.navbar-nav .text-primary,
.navbar-nav a {
  color: var(--nav-text-color) !important;
}

.navbar-nav a.active {
  text-shadow: 1px 1px 2px black;
  color: var(--nav-text-color-highlight) !important;
}

thead tr {
  border-bottom: 1px solid #565d7d;
}

.search-table-head {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: -1px;
  text-shadow: 0.1ex 0.1ex 0.2ex white, 0 0 0.1ex white;
  z-index: 100;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.search-table-head.compact {
  width: 0;
}

@media only screen and (max-width: 992px) {
  th {
    top: 54px;
  }
}

@media only print {
  th {
    position: inherit;
  }
}

tr.entry > td:first-of-type::before {
  content: counter(rowNumber);
  display: block;
  float: left;
  text-align: right;
  width: 50px;
  margin-right: -50px;
  right: 63px;
  top: -11px;
  padding-right: 0.5ex;
  position: relative;
  font-size: 75%;
  opacity: 0.25;
  pointer-events: none;
}

tr.entry {
  counter-increment: rowNumber;
}

.table-striped tr .card tr,
.modal .card tr {
  background: none;
  cursor: initial;
}

tr ul {
  margin-bottom: 0;
}

.card .table > tr > :first-child {
  width: 200px;
}

.card .table {
  width: 100%;
  margin-bottom: 0.5rem;
}

ul.dropdown-menu {
  z-index: 100;
}

.modal {
  padding-right: 0px !important;
}

.modal-open .modal-backdrop.show {
  opacity: 0.25;
}

.modal-open .navbar {
  padding-right: 17px !important;
}

.qr_code rect {
  fill: var(--dark-background) !important;
}

.qr_code {
  transition: transform 1s ease-in-out;
  background: white;
  border: 2px solid white;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: sticky;
  z-index: 10;
  display: inline-block;
}

.btn.zoomed .qr_code {
  transform: scale(8) translate(13px, 13px);
}

.modal .btn.zoomed .qr_code {
  transform: scale(8) translate(16px, -17px);
}

.entry_details .card-header,
.modal .card-header {
  background: floralwhite;
}

.connection-card {
  border: none;
}
.connection-card .card-header {
  padding: 0 1ex;
}

.connection-card .card-body {
  padding: 1ex 0;
}

tr.entry:hover + tr + tr.entry_details {
  background-color: rgba(0, 0, 0, 0.2);
}

tr:nth-of-type(odd).entry_details:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

tr.entry_details:hover {
  background-color: unset !important;
}

@media (min-width: 992px) {
  .modal-lg,
  .modal-xl {
    max-width: 1200px;
  }
}

#modal_network .modal-dialog {
  position: fixed;
  left: 10px;
  right: 10px;
  margin: unset;
  max-width: unset;
  top: 10px;
  bottom: 10px;
  max-height: unset;
}

#modal_network .modal-dialog .modal-content {
  max-height: unset;
}

#modal_network .modal-dialog .modal-body {
  padding: 0;
  margin: 0;
}

.prov_dropdown {
  margin-right: 0.8ex;
  margin-left: 0.8ex;
  padding-bottom: 0.4rem;
}
.value_details {
  margin-left: 0.8ex;
}

.centuryvis {
  text-shadow: 1px 1px 1px #ffffff88;
}

.centuryvis td,
.centuryvis th {
  text-align: center;
}

.centuryvis th {
  position: unset;
}

.century_filled {
  cursor: pointer;
}

.century_filled:hover {
  box-shadow: 0 0 8px white, inset 0 0 4px #212529;
}

tr {
  transition: background-color 0.25s ease-in-out;
}

.nav-item {
  transition: background 0.25s ease-in-out;
}

.nav-item:hover {
  text-shadow: 2px 2px 5px rgb(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.bootstrap-select button {
  border: 1px solid #ced4da;
}

#people_search_results .dates {
  display: flex;
  justify-content: space-between;
}

#people_search_results .dates .alive {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

span.birth {
  color: #6d7953;
}

span.death {
  color: #931e06;
}

.card-text h6 {
  opacity: 50%;
}

.badge-info,
.btn-info {
  color: #fff !important;
  background-color: #e56c0e !important;
}

.badge-dark,
.btn-dark {
  color: #fff !important;
  background-color: #3d5192 !important;
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #fba322;
}

.table td,
.table th {
  padding: 0.5rem;
}

.card-body .table td,
.card-body .table th {
  border: none;
}

.table .card-text td,
.table .card-text th {
  border-top: none;
}

.card-text table td {
  vertical-align: text-bottom;
}

.entry-details .card-title {
  text-transform: none;
  font-variant-caps: small-caps;
  font-weight: 700;
  font-family: "Saira", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  text-decoration-line: underline;
  text-decoration-color: #00000011;
}

.entry-details .card-body {
  overflow-x: auto;
}

/*
  <pre> is used for keeping whitespace intact inside of fields;
*/

.entry-details .card-body pre {
  font: inherit;
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  white-space: pre-wrap;
  overflow: visible;
}

/* only used in ba_admin.haml */
.card-text code pre {
  text-align: initial;
  display: block;
  font: inherit;
  background: transparent;
  box-shadow: none;
  white-space: pre-wrap;
}

#modal_network_details {
  position: absolute;
  padding: 1em;
  background: rgba(255, 255, 255, 0.75);
  z-index: 100;
  margin: 1em;
  border-radius: 1ex;
  backdrop-filter: blur(0.5ex);
  border: 1px solid white;
  box-shadow: 0.25ex 0.25ex 0.5ex rgb(0 0 0 / 25%);
  color: black;
  cursor: default;
}

.prov-dropdown .dropdown-item.active,
.prov-dropdown .dropdown-item:active {
  color: inherit;
  background: inherit;
}

a[data-href] {
  text-decoration: underline;
}

.a-prov-button {
  text-decoration: underline;
  color: #2a385f;
  cursor: pointer;
}

.btn-group.prov_dropdown button {
  background: none;
  border: none;
  margin: -1ex;
}

tr.entry > td.overfull_listentry::before {
  content: "";
}

.tooltip-pre,
.tooltip-wrap {
  font-family: "Noto Sans", "Noto Sans Arabic", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.tooltip-pre {
  white-space: pre;
}

.tooltip-wrap {
  max-width: 400px !important;
}

/*
  Property table
*/

.property-table-value {
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

.table .property-key-column {
  width: 0%;
  min-width: 100px;
  white-space: nowrap;
}

.table .property-value-column {
  width: 100%;
  max-width: 0;
}

/*
  badges
*/

.badge-lg {
  font-size: 1rem;
  margin-bottom: 0.1rem;
  margin-top: 0.1rem;
}

.badge-grey {
  background: #eee;
}

.entry-details .card-body .antagonist-badge-content {
  display: flex;
  align-items: center;
  white-space: normal;
}

.entry-details .card-body .antagonist-icon {
  margin-inline-end: 0.3rem;
}

.entry-details .error-text {
  color: #600;
}

/*
  show details and provinence links only on hover over card
*/
.entry-details .card-body .prov-links {
  transition-property: visibility, opacity;
  transition-duration: 0.5s;
  visibility: hidden;
  opacity: 0;
}

.entry-details .card-body:hover .prov-links {
  transition-property: visibility, opacity;
  transition-duration: 0.5s;
  visibility: visible;
  opacity: 1;
}

/* list of importers: display in columns (no more vertical scrolling all the time) */

#admin-import .list-group {
  display: block;
}
#admin-import .list-group-item {
  display: inline-block;
  column-width: 330px;
  border-top: 1px solid rgba(0, 0, 0, 0.125) !important;
}

/*
#admin-import .card-text .list-unstyled {
  display: block;
}
#admin-import .card-text .list-unstyled li {
  display: inline-block;
  column-width: 330px;
}
*/

/*
  specific styles for detail html:true values
*/
.entry-details .card-body .html-value-wrapper {
  display: flex;
  flex-direction: row;
  align-items: baseline;
}

.entry-details .card-body .html-value {
  overflow: auto;
}

/*
  Depending on whether a html value predominantly contains Latin or Arabic script
  text an additional .ltr vs an .rtl class is assigned
  to the directly wrapping <div class="html-value"> 
*/

.entry-details .card-body .html-value.ltr {
  text-align: left;
  direction: ltr;
}

.entry-details .card-body .html-value.rtl {
  text-align: right;
  direction: rtl;
}

/* data-source specific styles */

/* only required for onomasticon data for now;
 * class ba_internal_source-onomasticon is also
 * available if there should be a conflict */

.entry-details .card-body .ba_original_entry_html {
  border: 1px solid #aaa !important;
  direction: rtl;
}
.entry-details .card-body .ba_original_entry_html td,
.entry-details .card-body .ba_original_entry_html th {
  border: 1px solid #aaa !important;
  z-index: 0;
  box-shadow: none;
}
.entry-details .card-body .ba_original_entry_html th {
  position: static !important;
}

.stat {
  text-align: center;
  border: 1px solid #eee;
  border-radius: 5px;
  background-color: #343b64;
  margin: 5px;
  padding: 5px;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
}

.pointer {
  cursor: pointer;
}

.tooltip-inner {
  width: auto;
  max-width: none;
  text-align: left;
}
.tooltip-inner a {
  color: #7096ff !important;
}

.slide-wrapper {
  display:grid;
}

.slide-enter-active .slide-inner,
.slide-leave-active .slide-inner {
  overflow: hidden;
}

.slide-enter-active, .slide-leave-active {
  transition: grid-template-rows 0.3s ease-out;
}

.slide-enter, .slide-leave-to {
  grid-template-rows: 0fr;
}
.slide-enter-to, .slide-leave {
  grid-template-rows: 1fr;
}