body {
    --primary-bg-color: #fff;
    --secondary-bg-color: #f9fafb;
    --semi-transparent-bg-color: rgba(47, 50, 58, .8); 
    --primary-fg-color: #535263; /* Texts Borders etc. */
    --secondary-fg-color: rgba(220, 220, 220, 1); /* Secondary Texts, Borders, Editable Panels etc. */
    --semi-transparent-fg-color: rgba(255, 255, 255, .3);
    --semi-transparent-fg-highlight-color: rgba(255, 255, 255, .4);
    --semi-transparent-fg-active-color: var(--secondary-fg-color);
    --annotation-preview-bg-color: rgba(100 ,100, 100, .2);
    /*--highlight-color: rgba(246, 138, 102, 1);*/
    --highlight-color: var(--primary-fg-color);
    --tooltip-bg-color: #D8D3AD; /* Tooltips */
    --video-background-color: #000;
    --border-color: #DFDFDF;
    --shadow-color: #CFCFCF;
    --custom-select-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    --custom-checkbox-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
    --transparent-loading-bg: rgba(249, 250, 251, .8);
}

@font-face {
    font-family: 'Open Sans';
    src: url("../fonts/OpenSans-Light.ttf");
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Open Sans';
    src: url("../fonts/OpenSans-Regular.ttf");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Open Sans';
    src: url("../fonts/OpenSans-SemiBold.ttf");
    font-weight: 500;
    font-style: normal;
}

html, body {
    height: 100%;
}

body {
    color: var(--primary-fg-color);
    background: #f9fafb;
    font-family: "Open Sans","Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;
    font-size: 16px;
    font-weight: 300;
}

#header {
    position: relative;
    height: 40px;
    z-index: 1030;
}

#header .navbar {
    background: #fff;
    padding: 5px 15px;
    line-height: 100%;
    box-shadow: 0px 0px 4px #cfcfcf;
}

#header .navbar .navbar-text {
    color: var(--primary-fg-color);
    padding: 0.5rem 0.25rem;
    line-height: 1.5;
    vertical-align: middle;
    text-decoration: none;
}

#header .navbar .navbar-text.brand {
    font-size: 1rem;
    padding-left: 44px;
}

#header .navbar .navbar-text.brand img {
    position: absolute;
    top: 6px;
    left: 16px;
    width: 37px;
    height: auto;
}

#header .navbar .navbar-text:hover, #header .navbar .navbar-text:focus {
    text-decoration: none;
}

#header .navbar .nav-link {
    position: relative;
}

#header .navbar .navbar-collapse:not(.show):not(.collapsing) .nav-link.active:after {
    position: absolute;
    content:  '';
    bottom: -9px;
    left: 0px;
    width: 100%;
    height:  2px;
    background: var(--primary-fg-color);
}

#header .navbar .navbar-collapse.show .nav-link.active, 
#header .navbar .navbar-collapse.collapsing .nav-link.active {
    border-left-color: var(--primary-fg-color);
}

#frontpage-header {
    background-image: url(../images/bg.png);
    background-clip: padding-box;
    background-position: center center;
}

footer {
    margin-top: 40px;
    padding: 10px 15px;
    min-height: 100px;
    background: #fff;
    box-shadow: 0px 0px 4px #cfcfcf;
}

footer .partnerLogos {
    margin-top: 20px;
}

footer .partnerLogos img {
    height: 36px;
    margin: 0 20px 20px 0;
    float: left;
}

main {
    z-index: 1;
}

main.container-fluid, header > .container-fluid {
    margin-left: auto;
    margin-right: auto;
    max-width: 1500px;
}

main.container, main.container-fluid {
    min-height: calc(100% - 232px);
}

main.container.subpage {
    padding-top: 30px;
    margin-bottom: 0px;
}

section {
    padding-top: 20px;
    padding-bottom: 20px;
}

.bg-light {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

h1, h2, h3, h4, h5, h6 {
    font-size: 1rem;
    font-weight: 200;
}

h1, h2 {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.3rem;
}

h1.brand {
    margin-left: 50px;
    font-size: 36px;
    font-weight: 200;
    padding-top: 80px;
    text-align: center;
}

@media (max-width: 768px) {
    h1.brand {
        padding-top: 0px;
        padding-bottom: 50px;
        margin-left: 0px;
    }
}

blockquote {
    position: relative;
    padding: 0px 40px;
    margin: 40px 0;
    text-align: center;
}

blockquote:before, blockquote:after {
    position: absolute;
    font-weight: bold;
    font-size: 60px;
    opacity: .8;
    line-height: 60px;
    font-family: Georgia, "Times New Roman", Times, serif;
}

blockquote::before {
    top: -16px;
    left: 0;
    content: "\201C";
}

blockquote::after {
    bottom: -40px;
    right: 0;
    content: "\201D";
}

a {
    color: #0056b3;
}

hr {
    border-color: #9F9F9F;
}

.card {
    border-color: var(--border-color);
}

.lead {
    font-size: 1rem;
}

.dropdown-item {
    font-weight: 300;
}

.btn, input, select {
    font-weight: 300 !important;
    color: var(--primary-fg-color);
    border-color: var(--border-color);
    background: #fff;
}

.btn:not(.btn-primary):hover, .btn:not(.btn-primary):focus, .btn:not(.btn-primary):not(:disabled).active {
    background: var(--primary-fg-color) !important;
    border-color: var(--primary-fg-color) !important;
    color: #fff;
}

.btn.btn-primary {
    background: var(--primary-fg-color);
    color: var(--primary-bg-color);
    opacity: 1;
}

.btn.btn-primary:hover, .btn.btn-primary:focus, .btn.btn-primary:not(:disabled).active {
    opacity: 0.9;
    border-color: var(--border-color);
}

.btn:disabled, .btn.disabled {
    opacity: .6;
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    border-color: #dee2e6;
}

main .btn[data-bs-toggle="collapse"]:not(.collapsed) {
    z-index: 2;
    position: relative;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.btn[data-bs-toggle="collapse"].collapsed .icon-up-open-big::before {
    content: '\e8f7';
}

.btn[data-bs-toggle="collapse"] .labelShow, .btn[data-bs-toggle="collapse"].collapsed .labelCollapse {
    display: none;
}

.btn[data-bs-toggle="collapse"].collapsed .labelShow {
    display: inline;
}

.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
    top: 3px;
    margin-right: 5px;
}

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

.switch-container {
    cursor: pointer;
}

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

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

input:checked + .slider, .switch-container.active .slider {
    background-color: var(--primary-fg-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-fg-color);
}

input:checked + .slider:before, .switch-container.active .slider:before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
}

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

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

section {

}

section#platform {
    background: #f7f6fb;
    border-top: 1px solid rgba(0,0,0,.1); 
    border-bottom: 1px solid rgba(0,0,0,.1);
}

.loadingIndicator {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(243, 244, 245, .8);
    z-index: 10000;
}

.workingSpinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    margin-left: -30px;
    border-radius: 50%;
    transform-origin: center;
    background: var(--primary-fg-color);
    background: -moz-linear-gradient(left, var(--primary-fg-color) 10%, transparent 42%);
    background: -webkit-linear-gradient(left, var(--primary-fg-color) 10%, transparent 42%);
    background: -o-linear-gradient(left, var(--primary-fg-color) 10%, transparent 42%);
    background: -ms-linear-gradient(left, var(--primary-fg-color) 10%, transparent 42%);
    background: linear-gradient(to right, var(--primary-fg-color) 10%, transparent 42%);
    -webkit-animation: loading 1.4s infinite linear;
    animation: loading 1s infinite linear;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    mask-image: radial-gradient(transparent 65%, #000 66%);
    -webkit-mask-image: radial-gradient(transparent 65%, #000 66%);
}

.workingSpinner:before {
    width: 50%;
    height: 50%;
    background: #9f9b92;
    border-radius: 100% 0 0 0;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
}

.workingSpinner:after {
    background: #dfdbd2;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    content: '';
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@-webkit-keyframes loading {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes loading {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Bootstrap 5 form-check replacement for custom-control */
.form-check-label::before {
    top: .2rem;
}

.relationshipsCategoryHeader {
    font-weight: bolder;
    margin: -4px 0 10px 3px;
}

.relationshipsList {
    margin-left: -5px;
    margin-right: -5px;
}

.relationshipsList .entityPreview {
    padding-left: 10px;
    padding-right: 10px;
}

.relationshipsList .entityPreview .entityContainer {
    background: #fff;
    padding: 0px;
    display: block;
    margin-bottom: 20px;
    border-radius: 4px;
    height: calc(100% - 20px);
    position: relative;
}

.relationshipsList .entityPreview .entityContainer:not(.partyIndicator) {
    border: 1px solid var(--border-color);
}

.relationshipsList .entityPreview .entityContainer .thumbnailContainer {
    width: 100px;
    height: 100px;
    margin: 0 10px 0px 0;
}

.relationshipsList .entityPreview .entityContainer a, 
.relationshipsList .entityPreview .entityContainer .linkWrapper {
    padding: 8px 10px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.relationshipsList .entityPreview[data-type="person"] .entityContainer a, 
.relationshipsList .entityPreview[data-type="person"] .entityContainer .linkWrapper {
    flex-direction: row;
}

.relationshipsList .entityPreview .entityContainer .entityButton {
    padding: 0;
}

.relationshipsList .entityPreview[data-type="document"] .entityContainer .btn {
    padding: 2px 1px;
    position: absolute;
    top: 5px;
    right: 5px;
    margin-right: 0px;
}

.relationshipsList .entityPreview[data-type="document"] .entityContainer .btn span {
    margin: 0px;
}

.relationshipsList .entityPreview .entityContainer .entityType {
    padding: 0 33px 4px 0;
}

.relationshipsList .entityPreview .entityContainer .entityTitle {
    font-weight: bolder;
    max-height: 167px;
    overflow: auto;
    hyphens: auto;
}

.detailsHeader .rounded-circle,
.entityPreview .rounded-circle {
    position: relative;
    overflow: hidden;
    padding-bottom: 100%;
    background: #efefef;
    width: 100px;
}

.detailsHeader .rounded-circle img,
.entityPreview .rounded-circle img {
    position: absolute;
    width: 100%;
    object-fit: cover;
    height: 100%;
    object-position: top;
}

/* Article content images: match featured image border */
.content img {
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
}

/* Mobile menu: larger tap targets and visual separation */
@media (max-width: 1199.98px) {
    #header .navbar .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 1rem;
        border-left: 3px solid transparent;
    }

    #header .navbar .navbar-nav .nav-link span[class^="icon-"] {
        display: inline-block;
        width: 3em;
        text-align: center;
        margin-right: 0.4em !important;
        margin-left: 0 !important;
    }

    #header .navbar .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    #header .navbar .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
}
