/* general */
.se-pre-con {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: url(Preloader_5.gif) center no-repeat #fff;
}

html,
body {
  font-family: 'IBM Plex Sans', sans-serif !important;
  height: 100%;
  margin: 0;
}

main {
  min-height: 100%;
  padding-bottom: -150px;
  background-color: #F5F6FA;
  margin-right: 0px !important;
}

.row {
  margin-right: 0px !important;
}

p {
  font-weight: 300 !important;
}

.container-fluid {
  padding: 0px !important;
}

header {
  width: 100% !important;
  background: linear-gradient(35deg, var(--primary-color) 0%, var(--secondary-color) 100%), no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  padding: 2em;
  margin: 0px !important;
  text-align: left;
}

header h3,
header p,
header span.tip i {
  color: white !important;
}

header .btn {
  margin-top: 1.4em;
}

header,
.homepage {
  border-bottom-left-radius: 60px;
}

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

.secondary {
  background-color: var(--secondary-color) !important;
}

.primary .btn {
  background-image: none !important;
  background-color: var(--secondary-color) !important;
  color: black !important
}

a {
  text-decoration: underline !important;
  color: black !important;
}

.logo img {
  width: auto;
  height: 3em;
  margin-right: 1em;
}

button,
input.btn,
.link_btn {
  border-radius: 0px !important;
  border: solid 1px black !important;
  box-shadow: 3px 4px black !important;
  transition: background 0.7s linear;
  background-image: linear-gradient(to left, var(--secondary-color), var(--primary-color), var(--primary-color), var(--primary-color));
  background-size: 300%;
  background-position: 0 0;
  -webkit-appearance: none !important;
  background-origin: border-box, border-box;
}

button:hover {
  background-position: 100% 0;
  cursor: pointer;
}

.link_btn,
.btn {
  background-color: var(--primary-color);
  padding: 0.4em 1em;
}

.link_btn {
  color: white !important;
  text-decoration: none !important;
  padding: 0.5em;
}

.link_btn:hover {
  cursor: pointer;
  background-color: var(--secondary-color);
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
  text-decoration: none;
}

.noBtn {
  border: none !important;
  box-shadow: none !important;
  background-color: white;
  margin-top: 15px;
}

.modal-bg {
  z-index: 1021;
  display: block;
  width: 100%;
  left: 0%;
  position: fixed;
  top:0%;
  height: 100%;
  background-color: rgba(0, 0, 0);
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.italic {
  font-style: italic;
}

/* button in backend*/
.menu_btn {
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  font-weight: 500;
}

.menu_btn:focus {
  border: none !important;
}

button.filter_btn {
  background-image: none;
  background-color: white !important;
  color: black;
  box-shadow: 3px 4px black;
  padding: 0.4em 1em;
  margin-bottom: 0.5em;
}

button.active {
  background-color: var(--primary-color) !important;
  border: solid 1px black !important;
  box-shadow: 3px 4px black !important;
  color: white;
  padding: 0.4em 1em;
}

.nav-tabs {
  border-bottom: 2px solid rgba(27, 27, 27, 0.12);
  margin-top: 3%;
}

.nav-tabs a {
  border-bottom: none;
  text-decoration: none !important;
  border-color: #F5F6FA;
  font-weight: 500;
}

.item.caption {
  width: 80% !important;
  font-weight: 300 !important;
}
.caption::after {
  content: '';
  display: block;
  bottom: 0;
  left: 0;
  width: 75px;
  border-bottom: 2px solid var(--primary-color);
}
.item.caption + h2 {
  font-size: 4vw !important;
  margin-top: 10px !important;
}

.nav-tabs a.nav-link.active {
  color: var(--primary-color) !important;
  text-decoration: none !important;
  background-color: #F5F6FA !important;
  border-color: #F5F6FA #F5F6FA var(--primary-color);
}

.nav-tabs a.dark-nav.nav-link.active {
  text-decoration: none !important;
  background-color: #f5f6fa3a !important;
  border-color: var(--primary-color);
}

.logo_header {
  display: inline-block;
  padding: 5px;
  color: var(--primary-color);
  font-size: 35px;
  text-transform: uppercase
}

nav,
footer {
  padding: 1em 4em;
  letter-spacing: 0.01em;
  font-weight: 500;
}

nav {
  background-color: white;
  color: black;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px !important;

}

nav a {
  margin-right: 0.6em;
  color: var(--primary-color) !important;
  text-decoration: none !important;
}

nav a:hover,
footer a:hover {
  color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  text-decoration: none;
}

nav * {
  margin: auto 5px;
}

#updateTemplate, #addChart {
  margin-right: 1%;
}

/* footer, .push {height: 450px;} */
footer {
  background-color: black;
  color: white;
  padding-top: 3em;
  padding-bottom: 3em;
}

footer a {
  margin-right: 2em;
  color: white !important;
  text-decoration: none !important;
  font-weight: 500;
}

footer img {
  height: 3em;
}

/* explore section intro */

.intro_explore {
  padding: 2em 3em;
}

.intro_explore * {
  padding-left: 3rem !important;
}

.intro_explore img {
  margin-top: 2em;
  padding-left: 0px !important;
  height: 150px;
  border-radius: 50%;
  margin-right: 2rem;
}

#dropdownMenuLink {
  margin-left: 0.5em;
}

#create_form_menu {
  display: inline-block;
  margin-right: 1em;
}

#create_form_menu button,
#create_form button,
.gradient_dropbox {
  border: none;
  background: var(--secondary-color);
  background: -moz-linear-gradient(35deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  background: -webkit-linear-gradient(35deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  background: linear-gradient(35deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  cursor: pointer;
}

.navbar-toggler {
  margin: 10px auto;
}

.gradient_dropbox {
  margin-top: 0.2em;
  border: solid 1px black;
}

.gradient_dropbox,
.gradient_dropbox a {
  color: black;
}

.gradient_dropbox input {
  background: transparent !important;
}

/* search bar menu */
.searchmenu {
  color: var(--primary-color);
}

.searchmenu * {
  display: inline-block !important;
  font-family: "IBM Plex Sans", sans-serif;
}

.searchmenu input {
  /* width: 90% !important; */
  padding-left: 5px;
  background-color: white !important;
}

.searched_term {
  font-weight: bold;
  color: black;
}

.scrollable {
  max-height: 250px;
  overflow-y: scroll;
}

.scrollable::after {
  position: fixed;
  top: 265px;
  right: 10px;
  content: 'scroll to view more results';
  height: 33px;
  color: white;
  background-color: var(--primary-color);
  padding: 5px;
}

/* main content */
.h3,
h3 {
  font-size: 2.5rem;
  text-transform: uppercase;
  opacity: 70%;
}

h2,
h3 {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  margin: 0.5em 0px !important;
}

h2 span {
  font-size: 0.2em;
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.3em;
  vertical-align: super;
}

article {
  padding-bottom: 3em;
  padding-top: 0.5em;
  padding-left: 2em;
  padding-right: 2em;
}

article h4 {
  font-size: 1.3em
}

article h3 {
  font-size: 2em;
  opacity: 100%;
  border-bottom: 2px solid var(--primary-color);
  /* width: 12%; */
  margin-bottom: 3% !important;
  padding-bottom: 0.5%;
}

article:nth-child(even),
.articleBox,
#yasr {
  background-color: #F5F6FA;
}

article p {
  font-size: 1em;
  line-height: 1.7em;
  padding: 0.5em 2em;
}

.info-item {
  margin-top: 2em;
}
.info-item img, .info-item video, .info-item iframe, .info-item audio{
  max-width: 100%;
}
.info-item iframe {
  height: 15em;
}

.top-border {
  border-top: solid 2px var(--primary-color);
  margin-right: 0.5em;
  padding-top: 1em;
}

.top-border h4 {
  margin-bottom: 1em;
}

/* messages */
.messageError {
  padding: 18%;
}

#delConfirm {
  z-index: 100000;
}

/* login */
.dropdown-menu {
  padding: 2em !important;
}

/* .dropdown-menu a {color: var(--secondary-color) !important;} */
.field-wrap label {
  width: 100%;
  margin-top: 0.5em;
}

.field-wrap input {
  width: 100%;
  margin: 0.5em 0px;
}

/* homepage */
.homepage {
  background: linear-gradient(35deg, var(--secondary-color) 0%, var(--primary-color) 100%), no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo_homepage {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  display: inline-block;
  margin: 0 auto;
  padding: 0px 0.2em;
  font-size: 7vw;
  color: white;
  border: solid 0.5vw white;
  vertical-align: top;
  font-weight: 500;
}

.homepage h1 {
  color: white;
  font-size: 6.4vw;
  line-height: 1.2em;
  padding: 1em;
  font-weight: 300;
  white-space: preserve;
}

.homepage h2,
.homepage p {
  color: white !important;
  text-align: left;
}

.box:nth-child(even) {
  background-color: var(--primary-color);
}

.box:nth-child(odd) {
  background-color: #87eccd;
}

.box:hover {
  background-color: #189871;
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
  text-decoration: none;
}

.box h2:hover {
  color: white !important;
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
}

.highlights a {
  color: white !important;
  text-decoration: none !important;
}

.highlights a h2 {
  color: white !important;
}

.homedesc {
  padding-top: 20px !important;
}

.homeheading,
.homeheadingtext {
  padding: 2em 2em 0em 4em;
}
.set_template_field .homeheading,
.set_template_field .homeheadingtext {
  padding: 4em !important;
}

.corners.row .homeheading:nth-child(3) {
  padding-top: 0.35em !important;
  padding-left: 0.5em !important;
}

.homeheading.col-md-12 + .homeheading.col-md-6 {
  padding-right: 2em !important;
  padding-left: 0em !important;
}

.homeheading.col-md-12 + .homeheading.col-md-6 .buttonsSection {
  padding-left: calc(2em + 5.2%) !important;
}

.caption {
  color: var(--primary-color);
  padding: 5px;
  font-size: 25px;
}

.homeheading h2 {
  color: black !important;
  text-transform: none;
  font-size: 2em !important;
  margin-top: 1em !important;
}

.caption,
.homeheading h2 {
  text-align: left;
}

.homeheadingtext h3 {
  color: black !important;
  text-align: left;
  text-transform: none;
}

.homeheading .caption {
  font-weight: 500 !important;
  padding-top: 0.6em;
}

.homeheadingtext p,
.info-item p {
  font-size: 1.1em;
  line-height: 1.5em;
  margin-top: 1em;
}

/* backend homepage */
.index_menu form button {
  cursor: pointer;
}

.filters {
  margin: 0 auto;
  text-align: center;
  padding: 2em;
}

.filters form {
  display: inline;
}

.filters button {
  margin: 5px;
}

.delete,
.delete_template,
.discard {
  background: rgba(255, 10, 10, 1) !important;
}

.delete:hover,
.delete_template:hover,
.discard:hover {
  background-color: rgba(255, 10, 10, 1) !important;
}

.delete i {
  color: white !important;
}

/* templates access */
#selectTemplateClassModal,#showTemplateClassModal {
  display: none;
}

#selectTemplateClassModal.open-modal, #showTemplateClassModal.open-modal, #modifyNlp {
  display: block;
  position: fixed;
  background-color: #F5F6FA !important;
  z-index: 1022;
  width: 600px;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  overflow-y: visible !important; 
  max-height: 90vh;
}

#modifyNlp {
  padding-bottom: 16px;
}

#selectTemplateClassModal > form > section:first-of-type, 
#showTemplateClassModal > section:first-of-type,
#modifyNlp > section:first-of-type {
  width: 100%;
  padding: 15px 10px 10px 7%;
  border-bottom: 3px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 500;
  font-size: 22px;
}

#showTemplateClassModal p {
  font-weight: 500 !important;
}

#showTemplateClassModal table, #modifyNlp table {
  margin: 5%;
  width: 90%;
}

#showTemplateClassModal table th:nth-child(2), #showTemplateClassModal table td:nth-child(2) {
  width: 25%;
}

#selectTemplateClassModal {
  display: none;
}

#selectTemplateClass button {
  border: none;
  outline: none;
  display: inline-block;
  margin: 10px 10px 0px 0px !important;
  position: relative;
}

#selectTemplateClassModal .modal-input, #modifyNlp .modal-input {
  width: 86%;
  margin-left: 7%;
  background-color: inherit;
}

#selectTemplateClassModal .modal-input .label {
  display: inline-block;
  margin-bottom: 5px;
  font-size: 18px;
  color: #231F20;
  border-bottom:  none !important;
  height: auto !important;
}

#selectTemplateClassModal .modal-input .comment {
  font-size: 14px;
}

#selectTemplateClassModal .modal-input input, #selectTemplateClassModal .modal-input textarea {
  margin-top: 10px;
}

#selectTemplateClassModal .modal-input:is(:nth-of-type(2), :nth-of-type(3)) { 
  margin-top: 40px;
}

#selectTemplateClassModal .fa-times, #showTemplateClassModal .fa-times, #modifyNlp .fa-times  {
  position: absolute;
  right: 7%;
  margin-top: 6px;
  color: var(--primary-color);
  font-size: 0.9em;
  cursor: pointer;
}

#uri-container {
  height: 100px;
  max-height: 100px;
  overflow-y: auto;
  border-bottom: 1pt #acacac solid;
}

#uri-container::before {
  content: 'press return to add a URI';
  font-size: 0.7em;
  color: grey;
  display: block;
}

button#showTemplates {
  border: none;
  outline: none;
}

/* template stepper */

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 2.5em 0 3em 0;
  padding: 0 calc(20% - 4em);
}

.step-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

.step {
  width: 36px;
  height: 36px;
  background-color: #e9ecef;
  color: #495057;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.step-wrapper.active .step, .step-wrapper:first-child .step {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

.stepper-label {
  color: #495057;
}

.line {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #e9ecef;
  z-index: 0;
}

.stepper .step-wrapper.active ~ .line {
  background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 22%, #e9ecef 22%, #e9ecef 100%) !important;
}

.stepper .line {
  background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 78%, #e9ecef 78%, #e9ecef 100%);
}


/* records table */
table {
  width: 100%;
}

tr {
  text-align: left;

}

form table tbody tr th label {
  margin: 1rem 0;
}

#recordsList tr:nth-of-type(1) {
  padding-bottom: 10px;
}

th {
  width: 200px !important;
  text-transform: uppercase;
  font-family: 'Karla', sans-serif;
  padding-bottom: 15px;
}

#recordsList td, #templatesList td {
  font-weight: 300;
  border-top: solid 1px grey;
  vertical-align: super;
}

#recordsList td form button, #templatesList td form button {
  margin-top: 12px;
}

#recordsList td:nth-of-type(1), #templatesList td:nth-of-type(1) {
  font-weight: 500 !important;
}

#recordsList td:nth-of-type(2),
#recordsList td:nth-of-type(3),
#recordsList td:nth-of-type(4),
#recordsList td:nth-of-type(5) {
  font-size: 0.9em !important;
}

#templatesList i {
  padding: 0;
}

.res_class_small {
  font-weight: 300;
  text-transform: uppercase;
  font-size: 0.7em;
  padding-top: 0.4em;
  padding-left: 0px !important;
  padding-bottom: 0.2em !important;
}

#paginate {
  text-align: center;
}

#paginate button, #paginate > input {
  background: white;
  margin: 0.5em 0.1em;
  color: black;
  margin-top: 50px;
  background: transparent
}

#paginate > input[type="button"] {
  width: 55px !important;
  margin: 0px 5px !important;
}

.pagination input.btn.extractor_2 {
  width: 50px;
}

.pagination > .active-page {
  color: var(--primary-color) !important;
  border: solid 1px var(--primary-color) !important;
  box-shadow: 3px 4px var(--primary-color) !important;
}

/* create record */
.template-select-section {
  padding: 1em 10em 0em 0em !important;
}

#recordForm .row > section, #modifyForm .row > section {
  padding: 2em 2em 0em 4em
}

.form_row {
  padding-bottom: 0.7em;
}

.form_row.block_field {
  padding: 0px 0px 1.5em 0px !important;
  font-weight: 500;
}

.form_row.block_field .input_or_select {
  padding-right: 8.5% !important;
  position: relative;
}

.block_field.form_row input[type='text'], 
.block_field.form_row input[type='date'],
.block_field.form_row input[type='month'],
.block_field.form_row select,
.block_field.form_row textarea {
  margin-top: 3em;
  padding-right: 8.5% !important;
}


#recordForm table tbody tr th {
  width: 30%;
}

.mandatory {
  color: red !important;
}

/* hidden input fields titles */
.sectionTitle {
  color: var(--primary-color);
  font-size: 2em;
  width: 100%;
  margin: 1em 2rem;
}

#lookup,
#close_section {
  margin-top: 1em;
}

#templates-description {
  margin-top: 1.5em;
  margin-left: -6em;
}

/* modify record */
.label {
  color: var(--primary-color);
  font-family: 'Karla', sans-serif;
  font-size: 1.3em;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0.5em 0px 5% 0px;
  border-bottom: 2px solid var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 40px;
}

.label .title {
  flex: 1;
  font-size: 1em;
}

.label img, .label i {
  max-height: 1em;
  margin-left: 0.2em;
}

.label img:last-of-type, .label i:last-of-type {
  margin-right: calc(8.5% - 15px + 0.1em);
}

#templateForm .buttonsSection, #chartForm .buttonsSection {
  margin-bottom: 10em !important;
}

.buttonsSection {
  margin: 0 !important;
  padding-left: 4em;
  padding-top: 3% !important;
}

#savetheweb {
  width: 0.1px;
  display: inline;
}

/* both forms */
.tip {
  width: 35px;
  margin-right: 0em;
}

.wditem,.viafitem,.vocableitem,.yearOptions {
  padding: 8px;
  border-bottom: solid 0.5px grey;
  z-index: 2000;
}

.wditem:last-of-type,.viafitem:last-of-type,.vocableitem:last-of-type,.yearOptions:last-of-type {
  border-bottom: none;
}

.yearOptions a:hover {
  cursor: pointer;
}

.blue {
  color: var(--primary-color) !important;
  cursor: pointer;
  font-weight: 500;
}

.intermediatetext {
  padding: 8px;
  color: gray;
  font-style: italic;
  margin-bottom: 0px !important;
}

sub {
  display: block;
  margin: 25px;
}

nav .wditem, nav .viafitem {
  text-transform: none !important;
}


/*.orange {background-color: #FF8C00 !important; cursor: pointer;}
.orange:hover {background-color: #cc7000 !important;}
.orangeText {color: #FF8C00 !important;}*/
/*.tag {display: inline-block; cursor: pointer; color: white; background-color: var(--primary-color); border-radius: 2px; padding: 0.2em; margin: 0.2em 0.2em 0.2em 35px;}
*/
.tags-nlp {
  margin-top: 0.2em !important;
}

.tag, .tag-subrecord {
  display: inline-block;
  cursor: pointer;
  color: black;
  background-color: white;
  border: solid 1px black;
  padding: 0.2em;
  margin: 0.2em;
}

.tag~.tag {
  clear: left !important;
}

.tag::after {
  content: ' x';
  color: grey;
}

span[class^='tag MD']:hover {
  border-color: red !important;
  color: red !important;
}

span[class^='tag Q']:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.tags-nlp::before {
  content: 'press return to extract entities';
  font-size: 0.7em;
  color: grey;
  display: block;
  position: relative;
  left: 0.4em;
}

.tags-url::before {
  content: 'press return to add a URL';
  font-size: 0.7em;
  color: grey;
  display: block;
  position: relative;
  left: 0.4em;
}

.tags-extraction {
  margin-left: 20px;
}

.hide-container {
  position: absolute;
  right: 5em;
  display: flex;
  align-items: center;
  margin-top: -31px;
  font-weight: 500;
}

.autocompletion-container {
  position: absolute;
  right: 8.5%;
  display: flex;
  align-items: center;
}

.toggle-comment {
  margin-bottom: 10px;
  margin-right: 5px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 17px; 
  width: 17px; 
  left: 1.5px;
  bottom: 1.5px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(20px); /* Dimensione proporzionata */
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.searchWikidata ~ .tags-url {
  padding-bottom: 3em;
}

.searchWikidata + .tags-url::before {
  content: none !important;
  font-size: 0.7em;
  color: grey;
  display: block;
  position: relative;
  left: 0.4em;
}

.manual-entity + .tags-url::before {
  content: 'press return to add this entity';
}

.searchWikidata ~ .toggle-comment {
  color: grey;
  font-size: 14px;
  top: 1em;
  position: relative;
  left: 1em;
  margin-right: 1.2em;
}

input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--primary-color);
}

input[type='text'],
input[type='date'],
input[type='month'],
textarea {
  padding-left: 0.4em !important;
  padding-bottom: 0.5em;
  border: none;
  border-bottom: 2px solid rgba(27, 27, 27, 0.12);
  width: 100%;
  background-color: #F5F6FA;
  font-weight: 300;
}

input[type='text']:focus,
input[type='date']:focus,
input[type='month']:focus,
textarea:focus {
  outline: none !important;
  border-bottom: solid 2px var(--primary-color);
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
  padding-left: 0.6em !important;
}

input[type='text'].error-input, 
textarea.error-input {
  animation: border-error 0.5s linear forwards;
}

@-webkit-keyframes border-error {
  from { border-bottom: solid 2px var(--primary-color); }
  to { border-bottom: solid 2px rgb(200, 22, 22); }
}

@keyframes border-error {
  from { border-bottom: solid 2px var(--primary-color); }
  to { border-bottom: solid 2px rgb(200, 22, 22); }
}


input[value="Save"],
input[value="Start review process"] {
  margin: 2em auto;
  width: 15em;
}

input[value="Publish"] {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color);
}

input[value="Publish"]:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color);
}

input.checkbox_group {
  max-width: 20px;
  margin-left: 2.2em;
  border-radius: 0px;
}

input.checkbox_group:not(.following_checkbox) {
  margin-top: 2em;
}

input.manual-entity {
  margin-top: 0.2em !important;
}

span.manual-entity {
  display: block;
  font-size: 1em;
  font-weight: 500;
  width: 100%;
}

span.manual-entity:first-of-type {
  margin-top: 3em;
}
span.manual-entity:nth-of-type(2){
  margin-top: 1em;
}

.error-message {
  padding: 0px 10px ;
  display: block;
  color: rgb(200, 0, 0);
  background-color: rgba(253, 168, 168, 0.7);
  height: 0px;
  animation: upToDown 0.3s ease-in forwards;
  font-size: 14px;
}

i.fa-exclamation-triangle {
  color: rgb(200, 0, 0);
  padding-right: 5px;
}

i.fa-info-circle {
  padding-left: 0.15em;
  color: var(--primary-color);
}

i.fa-info-circle:hover {
  color: var(--primary-color);
}

::placeholder {
  color: lightgrey !important;
}

.bkg_hover {
  border-color: black !important;
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
  opacity: 1;
}

.color_hover {
  color: black !important;
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
  opacity: 1;
}

#searchresult {
  max-width: 600px;
}

table.hidden {
  display: none;
}

table.url-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5em;
}

.extractor-2 table th, .extractor-2 table td {
  padding: 10px 8px;
}
.extractor-2 span, .extractor-2 a {
  display: inline-block;
  max-width: 90%;
}
.extractor-2 i {
  float: right;
}
.block_field:not(.form_row) .extractor-2 table input[type='text'] {
  margin: 0 !important;
  padding: 0 0 0.5em 0 !important;
  width: 90% !important;
}

table.extraction-table {
  width: 100%;
  margin-top: 2em;
  margin-bottom: -2.5em;
}
table.extraction-table + span + .block_field {
  margin-top: 3.5em;
}

table.url-table th, table.url-table td, table.extraction-table th, table.extraction-table td {
  border: 1px solid black;
  text-align: left;
  padding: 10px 8px;
}

table.url-table th:nth-child(1), table.url-table td:nth-child(1),
table.extraction-table th:nth-child(1), table.extraction-table td:nth-child(1) {
  width: 75%;
}
table.url-table th:nth-child(2), table.url-table td:nth-child(2),
table.extraction-table th:nth-child(2), table.extraction-table td:nth-child(2)  {
  width: 25%;
}
table.url-table span {
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  display: block;
}
table.url-table i, table.extraction-table i {
  color: white !important;
}


/* about */
.articleBox {
  padding-left: 2em;
  padding-right: 2em;
}

.counterBox {
  border: solid 2px var(--primary-color);
  color: var(--primary-color);
  padding: 1.5em 2em;
  margin: 1em;
}

.counterNum {
  font-size: 3em;
  font-weight: 500 !important;
  height: 1.5em;
}

.counterLabel {
  font-weight: 400 !important;
  color: #333;
}

.chart-heading {
  display: block;
  margin: 0 2em 0 1em;
}

.chart-heading.full-width {
  max-width: 100% !important;
  flex: 100% !important;
  width: 100%;
}

.chart-heading + .col-lg-6 {
  top: 1.2em;
}

.map-chart {
  width: 100%;
  height: 500px;
  overflow: hidden;
  border: 1px solid #332421;
  z-index: 1001;
  font-size: 12px;
}

.articleTitle {
  font-size: 5em;
  text-transform: none !important;
  text-align: left;
}

.documentation .articleTitle {
  font-size: clamp(2em, 3.2vw, 3em);
}

.articleSubtitle,
.info-label {
  text-transform: uppercase;
  color: grey;
  font-size: 0.9em !important;
}

.chart-heading .articleSubtitle {
  text-transform: none;
  color: grey !important;
}

.charthr {
  margin: 5em 0px;
}

.stats-block > section > p {
  font-size: 1em;
}

.stats-block > section > h2 {
  margin-bottom: 1.5em;
}

.section-fade {
  opacity: 0;
  transform: translateY(50px);  
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.section-fade-visible {
  opacity: 1;
  transform: translateY(0);
}

.subtemplateField:last-child {
  margin-bottom: 2em;
}


/*display: inline !important;*/
.columns {
  padding: 1em 0.2em;
  -webkit-column-count: 2;
  /* Chrome, Safari, Opera */
  -moz-column-count: 2;
  /* Firefox */
  column-count: 2;
}

.columns p {
  display: inline;
}

/* other pages */

.searchBox form {
  margin-left: 2em;
}

.entryBox {
  margin: 20px;
  border: solid 1px black;
  box-shadow: 5px 10px;
  padding: 0px;
  background-color: white;
}

.entryBox a {
  color: black;
  text-decoration: none !important;
}

.entryBox a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.imageBox {
  height: 100px;
  width: auto;
}

.noImage img {
  width: 100%;
  margin-top: 40px;
}

.imageBox:hover {
  filter: brightness(125%);
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
}

.withImage img {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  max-width: 100%;
}

.noImage {
  background-color: var(--primary-color);
  position: relative;
  z-index: 0;
}

/*.noImage:hover { background-color: yellow; -webkit-transition-duration: 0.4s; transition-duration: 0.4s;}*/
.noImage p {
  padding-top: 40%;
}

.noImage:hover .ImageCHI {
  background-color: var(--primary-color);
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
}

.entryTitle {
  background-color: white;
  font-size: 1.0em;
  padding: 0.3em;
  position: relative;
}

.hideRes,
.showRes,
.showMore {
  margin: 20px 0px;
  background-color: var(--primary-color);
  color: white;
}

.hideRes:hover,
.showRes:hover,
.showMore:hover {
  filter: brightness(125%);
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
}

.related-resources-container .articleSubtitle {
  margin: 2em 0 0 0;
  display: inline-block;
}
.related-resources-container button {
  display: inline-block;
  margin-bottom: 0 !important;
}


/* historian/collection template */
/*.info-item {font-style: italic;}*/
.sideBoxes {
  margin-top: 3em;
  margin-bottom: 3em;
}

.inverse-subtitle {
  padding-top: 1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary-color);
  display: inline-block;
}

.inverse-results-container {
  display: flex;
  flex-wrap: wrap; 
  align-items: flex-start;
  gap: 20px; 
}

.inverse-template:not(:last-of-type) .inverse-results-container {
  border-bottom: 2px solid rgba(27, 27, 27, 0.12);
}

.inverse-results-container i {
  padding-left: 0;
}

.tip {
  position: relative;
}

.inverse-property {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  padding: 10px 30px 10px 0; 
}

.inverse-property:nth-child(odd) {
  width: 20%;
}

.inverse-property:nth-child(even) {
  width: 70%;
}

.inverse-property span {
  font-weight: 400;
  color: #333;
}

.inverses {
  margin: 3em 0 -0.8em 0; 
  max-height: 100%;
  background-color: lightgray;
}

.info-bio {
  margin-top: 2em;
}

.biblio:first-of-type {
  background-color: lightgray;
  color: white;
}

.biblio {
  background-color: gray;
  color: white;
  padding: 1em 3em 3em 3em;
}

.biblio-label {
  color: white !important;
  text-align: left;
  font-size: 32px;
}

.biblio-navigate {
  font-weight: 500;
  text-decoration: underline;
  color:#333;
  cursor:pointer;
}

.bibliospace {
  padding-top: 25px !important;
  padding-bottom: 10px !important;
}

.onlineres {
  background-color: var(--primary-color);
  color: white !important;
  padding: 1em 3em 3em 3em;
}

.onlineres a {
  color: white !important;
}

.onlineres p {
  padding-top: 30px !important;
}

.info-url {
  word-wrap: break-word !important;
}

.white a {
  color: white !important;
}

.circles {
  margin: 2em auto;
}

.circles a {
  color: white !important;
  text-decoration: none !important;
}

.box-small {
  cursor: pointer;
  margin-top: 0.1em;
  display: inline-block;
  color: white;
  text-decoration: none;
  padding: 0.4em;
  border-radius: 5px;
  background-color: var(--primary-color);
  text-align: center;
  vertical-align: middle;
  opacity: 0.7;
  margin-left: 0.2em;
}

.circle {
  display: table-cell;
  color: white;
  text-decoration: none;
  width: 300px;
  height: 300px;
  padding: 4em;
  border-radius: 50%;
  background-color: var(--primary-color);
  text-align: center;
  vertical-align: middle;
}

.circle:hover,
.box-small:hover {
  color: white;
  text-decoration: none;
  background-color: var(--primary-color);
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
  opacity: 1;
}

.info-graphic,
.info-graphic-items {
  padding: 1em;
}

.info-graphic {
  background-color: silver;
  color: white;
  font-size: 5em;
  text-align: center;
}

.info-graphic p {
  font-size: 0.3em !important;
}

.info-graphic-items {
  background-color: gainsboro;
}

.notes {
  background-color: transparent !important;
  margin: 0 15px;
}

.notes .info-icon {
  padding: 0.7em;
  background-color: silver;
  color: white;
  font-size: 4em;
  text-align: center;
}

.notes .info-icon p {
  font-size: 0.3em !important;
  text-align: center;
}

.notes .info-note {
  padding: 2em;
  background-color: gainsboro;
}

#mapid {
  height: 400px;
}

.tooltip-inner p a,
.tooltip-inner p a:hover {
  color: white !important;
}

/* sort alphabetically records */
.alphabet span,
.queryGroup {
  display: inline-block;
  margin: 5px;
  padding: 5px !important;
  border: solid 1px;
  box-shadow: 3px 5px;
  background-color: white !important;
  color: black !important;
  background-image: none;
}

.alphabet span:hover,
.queryGroup:hover {
  color: var(--primary-color) !important;
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
}

.alphaActive {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.accordion-group,
.resultAccordion {
  top: 20px;
  left: 5px;
  position: relative;
  overflow-y: auto;
  font-weight: 500;
}

.change_background:last-of-type .resultAccordion {
  top: 0;
  margin-bottom: 20px;
}
.change_background > section.homeheading {
  height: 100%;
  margin-bottom: 3em !important;
}

.accordion-group .hidden {
  display: none !important;
}

/* height: 300px; border-bottom: solid 1px var(--primary-color);*/
.showMore {
  margin: 5px;
  padding: 5px;
}

/* filter by URI/label */


.documentation {
  margin-top: 5em;

}

.documentation img {
  margin: 1em 0px;
  border: solid 1px grey;
  width: 100%;
}

.documentation h3 {
  margin-top: 1em;
}

.documentation h4 {
  font-size: 1.1em;
  color: var(--primary-color);
  margin-top: 1em;
  font-weight: bold;
}

/* sliding right menu */
#showRight, #scrollToTop, #saveForm {
  position: fixed;
  right: 35px;
  transition: 0.3s;
  padding: 15px 15px 15px -15px;
  background-color: #343a40 !important;
  width: 100px;
  color: white;
  font-size: 1.3em;
  font-weight: bold;
  border-radius: 5px 0 0 5px;
  border: none;
  z-index: 2;
}

#showRight:hover, #scrollToTop:hover {
  cursor: pointer;
}

#scrollToTop {
  bottom: 35px;
  display: none;
  transition: visibility 0.3s;
}

#showRight {
  bottom: 85px;
}

#saveForm {
  bottom: 135px;
}

.cbp-spmenu {
  background-color: #F5F6FA;
  position: fixed;
  overflow-y: scroll;
  box-shadow: rgba(50, 50, 93, 0.25) -6px 6px 12px -2px, rgba(0, 0, 0, 0.3) -3px 3px 7px -3px !important;
}

.cbp-spmenu a:active {
  background: #afdefa;
  color: #47a3da;
}

/* Orientation-dependent styles for the content of the menu */
.cbp-spmenu-vertical {
  width: 30%;
  height: 100%;
  top: 0;
  z-index: 1000;
}

.cbp-spmenu-left {
  left: -30%;
}

.cbp-spmenu-right {
  right: -30%;
}

.cbp-spmenu-left.cbp-spmenu-open {
  left: 0px;
}

.cbp-spmenu-right.cbp-spmenu-open {
  right: 0px;
}

/* Push classes applied to the body */
.cbp-spmenu-push {
  overflow-x: hidden;
  position: relative;
  left: 0;
}

.cbp-spmenu-push-toright {
  left: -30%;
}

.cbp-spmenu-push-toleft {
  left: -30%;
}

/* Transitions */
.cbp-spmenu,
.cbp-spmenu-push {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

/* Example media queries */
@media screen and (max-height: 26.375em) {
  .cbp-spmenu-vertical {
    font-size: 90%;
    width: 190px;
  }

  .cbp-spmenu-left,
  .cbp-spmenu-push-toleft {
    left: -190px;
  }

  .cbp-spmenu-right {
    right: -190px;
  }

  .cbp-spmenu-push-toright {
    left: 190px;
  }
}


/* map */

.leaflet-top {
  position: absolute;
  z-index: 500 !important;
  pointer-events: none;
}

.leaflet-bottom {
  position: absolute;
  z-index: 500 !important;
  pointer-events: none;
}

/* contents */
.page_intro {
  color: var(--primary-color);
  padding: 2em 3em;
  font-size: 1.8em;
  text-align: center;
}

.collectionsVizContainer {
  background-color: var(--primary-color);
  padding: 2em;
}

.collectionsVizContainer section h3,
.collectionsVizContainer section p {
  color: white !important;
}

.collectionsVizContainer section h3 {
  font-size: 2em !important;
  padding-bottom: 1em !important;
}

.intro_vis {
  font-size: 1.5em;
  padding-top: 1em;
}

.smaller {
  font-size: 0.8rem;
  font-style: italic;
  padding: 0.2rem 0px;
  margin: 0px;
}

/* timeline visualisation */
.vis-panel.vis-bottom,
.vis-panel.vis-center,
.vis-panel.vis-left,
.vis-panel.vis-right,
.vis-panel.vis-top {
  border: 1px white
}

.vis-timeline {
  border: none !important;
}

.vis-item {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

.vis-delete::after {
  color: var(--primary-color) !important;
}

.vis-delete:hover:after,
.vis-delete:hover {
  color: var(--primary-color) !important;
  background-color: none !important;
}

/* popovers */
.popover {
  overflow: visible;
  font-family: 'IBM Plex Sans', sans-serif;
  padding: 0 10px;
  z-index: 1000;
}

.popover-header {
  padding: 0rem .75rem !important;
  background-color: white !important;
  text-align: left;
  border-bottom: none !important;
  color: grey !important;
  font-weight: normal !important;
}

.pop_item_title {
  font-weight: bold;
  font-size: 1.2rem;
}

.popover .close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  z-index: 1002;
}

.popover .close-btn:hover {
  color: red;
}

.read_more {
  background-color: var(--primary-color);
  color: white !important;
  text-decoration: none !important;
  display: inline-block;
  padding: 3px 5px;
  margin-left: 5px;
  border-radius: 3px;
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
}

.read_more:hover {
  background-color: var(--primary-color);
}

/* overwrite */
footer .articleSubtitle {
  display: block !important;
  text-align: left;
  color: white !important;
  margin-bottom: 10px;
  margin-top: 0px !important;
}

.custom-select select {
  display: none;
  /*hide original SELECT element: */
}

option[selected='selected'] {
  background-color: #ced4da;
}

/* Style the arrow inside the select element: */
select-selected:after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #fff transparent transparent transparent;
}

/* Point the arrow upwards when the select box is open (active): */
select-selected.select-arrow-active:after {
  border-color: transparent transparent #fff transparent;
  top: 7px;
}

/* style the items (options), including the selected item: */
.select-items div,
.select-selected {
  color: #ffffff;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
}

/* Style items (options): */
.select-items {
  position: absolute;
  background-color: DodgerBlue;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}

/* Hide the items when the select box is closed: */
.select-hide {
  display: none;
}

.select-items div:hover,
.same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}

/* template page */
.block_field {
  padding: 1em;
  border: solid 1px black;
  box-shadow: 3px 5px;
  margin-bottom: 2em;
  font-family: 'Karla', sans-serif;
}

.block_field section {
  margin-bottom: 1em;
}

.block_field:not(.form_row) input[type='text'],
.block_field:not(.form_row) input[type='checkbox'],
.block_field:not(.form_row) select,
.block_field:not(.form_row) textarea {
  margin-left: 1em !important;
}

.block_field:not(.form_row) input[type='checkbox'] {
  right: 1em;
  position: relative;
}

.block_field:not(.form_row) label input[type='checkbox'] {
  right: 0;
}

.block_field input[type='url'] {
  white-space: nowrap;
}

.block_field label {
  text-align: right;
}

.block_field label.col-md-3 {
  font-weight: 600;
}

.block_field label.inner-label {
  text-align: left;
  font-weight: 600;
  color: grey;
}

.block_field:not(.form_row) label.inner-label+input {
  margin-left: 0 !important;
}

.block_field .row ul {
  padding-left: 0;
  list-style: none;
}

.block_field .row ul .fa-edit {
  color: var(--primary-color) !important;
  cursor: pointer;
}

.comment {
  color: grey;
  font-size: 0.8em;
  font-weight: 400 !important;
}

.up,
.down,
.trash {
  color: var(--primary-color) !important;
  margin: 0.2em;
  text-align: center;
}

.up:hover,
.down:hover,
.trash:hover {
  color: var(--secondary-color) !important;
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
}

.dropdown-menu {
  text-align: center;
}

.dropdown-menu p {
  margin-top: 0.5em;
  color: black;
}

.dropdown-menu.show {
  display: block;
  padding: 0;
  padding-left: 1%;
  padding: 5% 10% 5% 10% !important;
}

section.dropdown-menu.gradient_dropbox.show {
  background: #eae2f6;
}

section.dropdown-menu.gradient_dropbox.show input[type='text'] {
  border-bottom: 1px solid var(--primary-color);
  margin: 0;
  padding: 0;
  opacity: 70%;
}

.homeheading a.link_btn {
  margin-right: 1% !important;
}

.homeheading #table-of-contents {
  padding-right: 0.5em !important;
}

.homeheading .fields-list {
  list-style-type: none;
  padding-left: 0%;
}

.homeheading .fields-list li {
  margin-top: 0.6em;
  margin-right: 1% !important;
  font-weight: 300;
  font-size: 1.1em;
  cursor: pointer;
  border-bottom: 1pt solid rgba(0, 0, 0, 0.1);
}

.homeheading .fields-list li:hover {
  animation: highlightField forwards 300ms ease-in;
}

@keyframes highlightField {
  from { padding-left:  0px; color: black; font-weight: 200;}
  to { padding-left: 0.5em; color: var(--primary-color); font-weight: 500;}  
}

@media screen and (min-width: 760px) and (max-width:992px) {
    .navbar-expand-lg .navbar-toggler {
      display: none;
    }

    #navbarSupportedContent {
      display: flex;
    }
}

@media screen and (max-width: 992px) {

  /* documentation */
  .documentation .articleTitle {
    padding-top: 1em !important;
    font-size: 2em !important;
  }

  .cbp-spmenu-vertical {
    width: 70%;
    border-left: solid 1px;
  }

  .cbp-spmenu-left {
    left: -70%;
  }

  .cbp-spmenu-right {
    right: -70%;
  }

  .cbp-spmenu-push-toright {
    left: -70%;
  }

  .cbp-spmenu-push-toleft {
    left: -70%;
  }

  .documentation-modal {
    position: relative;
    z-index: 0;
  }
  
  .documentation-modal::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    pointer-events: none;
  }
}

@media screen and (min-width: 320px) and (max-width: 760px) {

  /* menu */
  .logo_header:before {
    content: 'Home ';
  }

  .biblio {
    padding: 2em 2em 2em 2em !important;
  }

  .info-item {
    padding-right: 0;
  }

  header h3 {
    font-size: 2em;
  }

  .articleBox > section:first-child {
    padding: 2em !important;
  }

  .articleTitle {
    font-size: 3em !important;
  }

  .documentation .articleTitle {
    font-size: 2em !important;
  }

  .logo_header {
    border: none;
    box-shadow: none;
    font-size: 1em
  }

  .navbar-toggler span {
    color: white !important;
  }

  #navbarSupportedContent span {
    display: block;
    margin: 0 auto;
    text-align: center;
  }

  #navbarSupportedContent button,
  #navbarSupportedContent form {
    display: block;
    margin: 10px auto !important;

  }

  /* homepage */
  .homepage {
    height: 60%;
  }

  .filters form {
    display: -webkit-box;
    margin: 0;
    padding: 0 !important;
    text-align: left;
  }

  .filters > section > button {
    display: -webkit-box;
    text-align: left;
  }

  .homeheadingtext {
    padding: 10% !important;
  }

  .dropdown-menu {
    text-align: center;
  }

  .dropdown-menu p {
    margin-top: 0.5em
  }

  .dropdown-menu.show {
    display: block;
    padding: 0em !important;
  }

  article h3 {
    margin-bottom: 10% !important
  }

  .homeheading,
  .homeheadingtext {
    padding: 10%;
    padding-left: 6% !important;
    padding-right: 2% !important;
  }

  .homeheading#form-section {
    padding: 0% !important;
  }

  .tip {
    display: block;
  }

  .homeheading h2 {
    font-size: 2em !important;
  }

  .homeheadingtext h3 {
    font-size: 1.5em;
  }

  .logo_homepage {
    margin: 1em;
    text-align: center;
    font-weight: 500;
    padding: 4% !important;
  }


  .homepage h1 {
    text-align: center;
  }

  .homeheading h2 {
    font-size: 3em;
  }

  .homeheading {
    padding-bottom: 0px;

  }

  .homeheadingtext {
    padding-top: 0px;
  }

  .suggested-vocabs-div {
    margin-left: -2px;
    margin-top: 0px !important;
  }


  /* backend: force Records' table columns to behave like rows */

  tr,
  td {
    display: grid !important;
    width: 100%;
  }

  tr:nth-of-type(1) {
    display: none !important;
  }

  tr {
    margin-top: 20px;
    border-bottom: 1px solid rgba(27, 27, 27, 0.12) !important;
  }

  tr td {
    border: none !important;
    position: relative;
    padding-left: 50%;
  }

  .res_class_small {
    margin-bottom: 0px !important;
  }

  td:before {
    position: absolute;
    top: 6px;
    left: 6px;
    font-weight: 500;
    font-family: 'Karla', sans-serif;
    font-size: 15px !important;
    padding-right: 10px;
    white-space: nowrap;
  }

  #recordsList td:nth-of-type(1):before {
    content: "RECORD";
  }

  #recordsList td:nth-of-type(2):before {
    content: "CREATED BY";
  }

  #recordsList td:nth-of-type(3):before {
    content: "MODIFIED BY";
  }

  #recordsList td:nth-of-type(4):before {
    content: "LAST MODIFIED";
  }

  #recordsList td:nth-of-type(5):before {
    content: "STAGE";
  }

  #recordsList td:nth-of-type(6):before {
    content: "ACTIONS";
  }

  /* backend: force Templates' table columns to behave like rows */

  #showTemplateClassModal, #selectTemplateClassModal {
    max-width: 90%;
  }

  #templatesList td:nth-of-type(1):before {
    content: "TEMPLATES";
  }

  #templatesList td:nth-of-type(2):before {
    content: "ACTIONS";
    margin-top: 12px;
  }

  #templatesList td:nth-of-type(2) form {
    display: flex;
    gap: 10px
  }

  #templatesList .tip {
    display: inline-block;
    width: auto;
  }

  /* form */
  form .homeheading h2 {
    display: none;
  }

  .template-select-section {
    padding: 1em 0em 0em 0em !important;
  }

  #recordForm > .row, #modifyForm > .row {  
    margin-left: 20px;
  }

  #recordForm .row > section, #modifyForm .row > section {
    padding: 0 !important;
  }

  #lookup {
    position: fixed;
    top: 10px;
    left: 3em;
    box-shadow: 3px 5px;
    z-index: 100000;
    border: solid 1px;
    background-color: white;
    width: 30em;
    padding: 1em;
  }

  /* #create_form button {
    margin-left: 33%;
  } */

  .intro_explore * {
    padding-left: 0.5rem !important;
  }

  .intro_explore img {
    height: 100px;
  }

  /* template */
  .inner-label {
    text-align: right !important;
    margin-right: 0 !important;
  }

  #chartForm ul, #templateForm ul, #chartForm ul label, #templateForm ul label  {
    padding-right: 0px !important;
    text-align: right !important;
  }

  .set_template_field .homeheading, .set_template_field .homeheadingtext {
    padding-top: 2em;
    padding-left: 6% !important;
    padding-right: 2% !important;
  }

  #chartForm .row, #templateForm .row {
    text-align: right;
  } 

  #chartForm .center-checkbox, #chartForm .center-checkbox label {
    display: block;
  }

  #chartForm .center-checkbox input[type="checkbox"] {
    right: 0;
  }

  .hide-container {
    right: 6%;
    margin-top: -100px;
  }

  #templateForm .buttonsSection, #chartForm .buttonsSection {
    margin-bottom: 3em !important;
  }

  #templates-description {
    padding: 0 3em;
    margin-left: 0px;
  }

}

@media screen and (min-width: 768px) and (max-width: 1024px) {

  .suggested-vocabs-div {
    margin-left: -5px;
    margin-top: 0px !important;
  }

}

/* multimedia preview + iframe preview*/
.modal-previewMM {
  z-index: 1021;
  display: block;
  width: 100%;
  left: 0%;
  position: fixed;
  top:0%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}
.modal-previewMM img,
.modal-previewMM video, 
.modal-previewMM audio {
  display: block;
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 75%;
} 

.modal-previewMM iframe {
  height: 60vh;
  width: 90vw;
  margin: 5vw;
}

.modal-previewMM .previewTitle {
  font-size: inherit; 
  margin: 0px; 
  display: block;
  width: 100%;
  z-index: 1002;
  background: linear-gradient(35deg, var(--primary-color) 0%, var(--secondary-color) 100%), no-repeat center center fixed;
  color: #fff;
  opacity: 80%; 
  padding: 18px;
  position: fixed;
  bottom: 0;
  left: 0;
}
.modal-previewMM a {
  color: #fff !important;
  opacity: 70%;
}
.closePreview{
  display: block; 
  position: fixed; 
  top:30px; 
  left:calc(100% - 45px);
}
.closePreview::after{
  content:' x'; 
  color:white; 
  font-size: 150%; 
  cursor:pointer;
}
.MMtag i{
  color: var(--primary-color); 
  position: absolute; 
  left:16px; 
  margin-top: 12px;
}

.multimediaTag .tag{
  margin-left:15px !important; 
  word-wrap:break-word; 
  max-width: calc(100% - 35px);
}
.iframePreview {
  margin: 10px 0px; 
  padding: 0 !important;
}
/* skos vocabs link */
.vocab-link{
  color:var(--primary-color) !important; 
  cursor: pointer; 
  font-size: 1em; 
  font-weight: 400; 
  text-decoration: none; 
  margin:8px 20px 10px 0px;
}
.suggested-vocabs-div {
  margin-bottom: -15px; 
}
.suggested-vocabs-div::before {
  display: block;
  width: 100%;
  content: 'Lookup:';
}

/* knowledge extraction */
.hidden-result {
  display: none!important;
}

.sparql-results {
  z-index: 3000;
  display: block;
  width: 90%;
  height: 90vh;
}

.extractor_2 th {
  padding: 5px;
}
.extractor_2 td {
  color: #585858;
  font-size: 0.9em;
  padding: 2px;
}

.extraction_documentation code {
  white-space: pre-wrap;
  font-size: 85%;
}

.import-form {
  margin-left: 0px !important;
  margin-top: 0.7em;
}

.import-form input,
.import-form select {
  margin-top: 0 !important;
}

.add-graph-button {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  color: rgba(100, 23, 180, 0.7);
}

.add-graph-button:hover {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  color: rgba(100, 23, 180, 0.9);
  cursor: pointer;
}

.import-form + .block_field {
  margin-top: 15px;
  margin-left: 10px;
}

/* new Knowledge Extraction code */

.extraction-form-div {
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
}

.extraction-form-div:first-of-type {
  color: var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
  margin-top: 0.5em;
}

.extraction-form-div .fa-times {
  position: absolute;
  right: 50px;
  margin-top: 12px;
  color: var(--primary-color);
  font-size: 0.9em;
  cursor: pointer;
}

.import-form .extraction-form-input-large, .extraction-form-label-large {
  width: 47.5%;
  display: inline-block;
}

.import-form .extraction-form-input-small, .extraction-form-label-small {
  width: 30%;
  display: inline-block;
}

.block_field.form_row input[type="text"].extraction-form-input-large:first-child,
.block_field.form_row select.extraction-form-input-small:first-child,
.block_field.form_row select.extraction-form-input-large:first-child,
.extraction-form-input-large:first-child, .extraction-form-label-small:first-child {
  margin-top: 0.1em !important;
  margin-left: 0px !important;
}

.block_field input[type="text"].extraction-form-input-large:nth-child(2),
.block_field input[type="text"].extraction-form-input-small:nth-child(2),
.block_field input[type="text"].extraction-form-input-small:nth-child(3),
.extraction-form-label-large:nth-child(2),
.extraction-form-label-small:nth-child(2),
.extraction-form-label-small:nth-child(3) {
  margin-left: 3% !important;
  padding-top: 0.4em;
}

.add-parameter, .add-filter {
  display: block;
  margin-left: 5%;
  margin-bottom: 1.2em;
  font-size: 0.8em;
  color: var(--primary-color);
  cursor: pointer;
}

.extractor-comment {
  width: 90%;
  margin-left: 5%;
  margin-bottom: 0px;
  padding: 5px;
  font-size: 0.9em;
  border-bottom: 1px solid darkgray;
}

/* subtemplates */
.add-span {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  border-bottom: 2px dotted black;
}
select+.add-span:nth-child(2), .hidden.extraction-table+.add-span:nth-child(2), .add-span:first-child {
  margin-top: 3em;
}

.check_subtemplate {
  margin-left: 1em;
}

.subform_section {
  display: block;
  background-color: white;
  padding: 0px;
  border: solid 1px black;
  margin-bottom: 1.5em !important;
  margin-top: 0.5em;
  font-family: 'Karla', sans-serif;
}

.subform_section:first-of-type {
  margin-top: 3em;
}

.subform {
  display: block;
  margin-top: 0.5em;
  margin-bottom: 1em;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, margin-top 0.3s ease, margin-bottom 0.3s ease; /* Corretta sintassi per la transizione */
  padding: 1em;
  max-height: 10000px;
}

.subform:first-child {
  margin-top: 1.5em;
}

.subform.closed {
  max-height: 0;
  padding: 0 1em;
  margin-top: 0;
  margin-bottom: 0 !important;
}

.subform .form_row {
  background-color: #F5F6FA;
}

.subform .row {
  margin-right: 2em!important;
  justify-content: flex-end;
  align-items: center;
}

.subform .title {
  font-size: 0.8em;
}

.subform-buttons {
  display: flex;
}

.subform-buttons button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 5px;
}

.chevron {
  transition: transform 0.3s ease;
}

.chevron.rotate {
  transform: rotate(180deg);
}

.buttonsSection button i {
  font-size: 1.1em;
  color: white !important;
}

input[subtemplate]+.fa-plus-circle {
  right: 45px; position: absolute; top: 20px;
}

h4.subrecord-title {
  font-size: 1.1em;
  font-weight: 600 !important;
  color: black;
  margin-bottom: 0;
  padding: 0.4em 0.7em;
  border-bottom: solid 2px var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h4.subrecord-title .buttons-container {
  margin-left: auto; 
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

h4.subrecord-title .btn {
  margin-left: 10px;
}

h4.subrecord-title .btn i {
  color: white !important;
}

h4.subrecord-title.closed-title {
  border-bottom: none;
}

.form_row .fa-edit, .import-form .fa-edit, .form_row .fa-trash-alt, td > .fa-check-circle {
  color: var(--primary-color); 
  cursor: pointer;
}

/* Subrecords visualisation */

.subtemplateValue {
  background-color: #ececec !important;
  display: block;
  margin-bottom: 0px !important;
}

.subtemplateValue > a {
  background-color: white;
  border: black 1px solid;
  box-shadow: 3px 5px;
  color: black !important;
  display: inline-block;
  font-weight: 400;
  padding: 2px 50px 2px 15px !important;
  text-decoration: none !important;
  width: 100%;
}

.subtemplateValue:last-of-type {
  margin-bottom: 1rem;
}

.subtemplateValue section:last-of-type {
  margin-bottom: 0px !important;
  padding-bottom: 1rem;
}

.subtemplateValue > span {
  display: inline-block;
  position: absolute;
  right: 2em;
}

.subtemplateValue .subtemplateValue {
  border: rgb(152, 128, 177) 1px solid !important;
}

.fa-chevron-down {
  color: #343a406e;
  padding-top: 8px;
}

.fa-chevron-down:hover {
  color: var(--primary-color);
  cursor: pointer;
}

.hidden-subrecord {
  display: none;
}

.subtemplateValue > div > section > p {
  font-size: 1em !important;
}

.subtemplateValue > div .articleSubtitle {
  font-size: 0.8em !important;
}
.subtemplateValueOpen > a,
.subtemplateValue > a:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

/* multiple lang */
.languages-list {
  margin-bottom: -15px; 
}

.languages-list::before {
  display: block;
  width: 100%;
  content: 'Languages:';
}

.language-options {
  display: block;
  max-height: 255px;
  overflow-y: scroll;
  border-radius: 5px;
  border: 1px solid #ced4da;
}

.language-options a {
  display: block;
  background-color: #fff;
  text-decoration: none !important;
  color: #495057 !important;
  line-height: 1.5;
  padding: .375rem 1.75rem .375rem .75rem;
}

.lang-item {
  color:var(--primary-color) !important; 
  cursor: pointer; 
  font-size: 1em; 
  font-weight: 400; 
  text-decoration: none !important; 
  margin:8px 10px 10px 0px;
}
.lang-item.selected-lang, .lang-item:hover {
  text-decoration: underline !important; 
  font-weight: 600 !important;
}

#lang-form {
  display: block;
  position: absolute;
  background: white;
  width: 400px;
  padding: 20px;
  border: solid 1px var(--primary-color);
  border-radius: 5px;
  z-index: 1000;
}

#lang-form:after {
  content: " ";
  position: absolute;
  right: 30px;
  top: -10px;
  border-top: none;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  border-bottom: 10px solid var(--primary-color);
}

#lang-form label {
  display: inline-block;
  margin-bottom: 5px;
  font-size: 1em;
  font-weight: 500;
  color: black;
  border-bottom:  none !important;
  height: auto !important;
}

#lang-form section:first-child div {
  z-index: 1001;
  position: relative;
}
#lang-form section:nth-child(2) div {
  z-index: 1000;
  position: relative;
}
#lang-form .current-lang {
  background-color: #ced4da;
}

.info-language .lang-item {
  font-size: 0.9em !important;
}
.info-language .lang-item:first-of-type {
  padding-left: 0px !important;
}

/* custom YASQE */
.yasqe > .CodeMirror {
  border-radius: .25rem !important;
}

.yasqe-buttons {
  background-color: #F7F7F7;
  border: solid 1px #D1D1D1;
  border-top: none;
  display: flex;
  justify-content: flex-end;
}

.yasqe-buttons span {
  margin-right: 20px;
  font-size: 0.9em;
  padding-top: 8px;
  padding-bottom: 5px;
}

.yasqe-buttons i {
  color: var(--primary-color); cursor: pointer;
}


/* tips */
.bold {
  font-weight: bold;
}

.tips-div {
  padding: 10px 15px;
  overflow:auto;
}

.tips-div .fa-caret-right {
  position: absolute;
  top: 15px;
  font-size: 40px;
  right: 45px;
  color: var(--primary-color);
  cursor: pointer;
}

.tips-div .fa-caret-left {
  position: absolute;
  top: 15px;
  font-size: 40px;
  right: 70px;
  color: var(--primary-color);
  cursor: pointer;
}

/* Swal buttons */
.swal2-actions > button {
  margin: 0.2em;
}

.swal2-confirm {
  background-color: var(--primary-color);
}

/* extra */
.material-icons, .fa-plus-circle, .fa-eye, .fa-trash, .fa-trash-alt, .fa-external-link-alt{color: var(--primary-color);}
#recordsList .fa-eye {color: white !important;} 
.material-icons:hover, .fa-plus-circle:hover, .fa-eye:hover, .fa-trash:hover, .fa-trash-alt:hover, .fa-external-link-alt:hover{cursor: pointer !important;}
.material-icons {font-size: 1em !important}
.link_btn, .btn {white-space: nowrap; font-weight: 500;}
.add_fields .link_btn {display: inline-block; margin-bottom: 8px}
.leaflet-popup-close-button,.leaflet-control-zoom-in,.leaflet-control-zoom-out {text-decoration: none !important;}
#other-filters {
  padding-top: 0 !important;
  display: none;
  opacity: 0;
  position: relative;
  top: -30px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.8;
  }
}

@keyframes upToDown {
  from {height: 0px; padding-top:0px}
  to {height: 32px; padding-top:5px}
}

/*  Charts */
.center-checkbox {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.center-checkbox input {
  margin: 0 !important;
}

.charts-yasqe {
  padding: 0 !important
}

.charts-yasqe > .yasqe {
  margin-right: -30px !important;
}

li.col-md-12 {
  padding: 0 !important;
}

li.col-md-12 label, .inner-label {
  text-align: left;
  padding-left: 0;
}

.yasqe-max {
  margin:0 !important;
  padding:0 !important;
  width: 100%;
}

.articleBox.chartsBox > section:first-child {
  padding: 5em;
}

.mini-chart {
  min-height: 400px;
  max-height: 600px !important;
  width: 80%;
}

.mini-chart > div {
  height: 60% !important;
}

/* Charts - timeline */
.tl-timeline button {
  border-radius: 0px !important;
  border: none !important;
  box-shadow:none !important;
  background-image: none !important;
  -webkit-appearance: none !important;
  background-origin: none !important;
}

.tl-full-image-background .tl-text a {
  color: #fff !important;
}

.tl-slide .tl-slide-background { 
  background-position-y: 20% !important;
}

.tl-timeline h2, .tl-timeline .tl-text-headline-container h3, .tl-timeline p,
.tl-timeline .tl-text-headline-container .tl-headline-date, .tl-text-headline-container.tl-timeline h3.tl-headline-date,
.tl-timeaxis, .tl-timeline .tl-slidenav-next {
  font-family: 'IBM Plex Sans', sans-serif !important;;
}
.tl-timeline .tl-text-headline-container > h2 {
  text-transform: none !important;
  max-width: 70%;
  font-size: 2rem !important;
}

/* NLP KEYWORDS */

.custom-select-wrapper {
  position: relative;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
}

.custom-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  margin-top: 2px;
  z-index: 1040;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  max-height: 250px;
  overflow-y: scroll;
}

.custom-option {
  padding: .375rem .75rem;
  line-height: 1.5;
  color: #495057;
  background: #fff;
  cursor: pointer;
}

.custom-option:first-of-type {
  border-radius: .25rem .25rem 0 0;
}

.custom-option:last-of-type {
    border-radius: 0 0 .25rem .25rem   ;

}

.custom-option:hover {
  background: #f8f9fa;
}

.custom-option.selected {
  background: #e9ecef;
}

.custom-option .option-label {
  font-weight: bold ;
  display: block;
}

.custom-option .option-description {
  font-size: 0.85em;
  color: #666;
}