
:root {
    --filter-results-height: 418px;

    /* Main colors */
    --background: #fdfdfd;
    --primary: #030517;
    --secondary: #2c2e40;
    --accent: #2c3369;
    --text: #ddd;
    --special-text: #c5dada;
    --text-inverse: #11162c;
    --special-text-inverse: #333;
    --shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);

    /* Info card */
    --info-card: #f2f2f2;
    --info-card-shadow: rgba(0, 0, 0, .15);

    /* Grouping */
    --cluster0: #cab2d6;
    --cluster1: #fdbf6f;
    --cluster2: #fb9a99;
    --cluster3: #b2df8a;
    --cluster4: #a6cee3;
    --coauthors: #1f78b4;
    --cograntees: #ff7f00;
}

#viz {
    height: 95%;
}

#app-title {
    align-content: center;
    padding-left: 20px;
}

#main-container {
    padding-left: 20px;
    height: 100%;
}

#network {

}

/* Loading */
#running-sim {
    /* color: var(--primary); */
    color: var(--special-text);
    visibility: visible;
    position: absolute;
    z-index: 100;
    left: calc(16.66666667%);
    font-size: 42px;
    width: 70vw;
    padding-left: 150px;
    background-image: linear-gradient(to right, var(--primary), var(--secondary));
    height: 152px;
}

#simulation-running {
    position: absolute;
    top: 25px;
}


#spinner {
    position: absolute;
}

/* General */
html,
body {
    width: 100%;
    height: 100%;
    font-size: 18px;
    background-color: var(--background) !important;
}

#main {
    transition: margin-left .5s;
    padding: 20px;
}

thead, th {
    padding-left: 10px;
}

a {
    color: var(--special-text);
}

.btn {
    font-size: 12px;

    background-color: var(--secondary);
    text-align: center;
    color: var(--text);
    box-shadow: var(--shadow);
    z-index: 1;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

li {
    padding-left: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 1.25rem;
    /* color: var(--special-text); */
}

h3 {
    text-align: center;
}

b {
    font-weight: 500;
    color: var(--black);
}

.fa-brands {
    font-size: 20px;
}

@font-face {
    font-family: "fa-brands";
    src: url("fa-brands-400.woff2");
}

::-webkit-scrollbar {
    width: 12px;
    background-color: var(--off-gray);
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
    background: var(--scroll-thumb);
}

#small-display {
    display: none;
}

#home {

}

#instructions {
    padding-left: 15px !important;
}

#instructions ul {
    list-style-type: circle !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    padding-left: 2rem !important;
}

#instructions ul li {
    font-size: 18px !important;
}

.instruction-header {
    text-align: left !important;
}

/* Visualization */
.svg-container {
    display: inline-block;
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    vertical-align: top;
    overflow: hidden;
    background: var(--background);
}

.svg-content {
    display: inline-block;
    z-index: 100;
}

.tab-content {
    border: 4px solid var(--accent);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    height: 95%;

}

/* Visualization Filter */
#node-options {
    position: absolute;
    left: 0;
    top: -177px; /* Hard coded to 95px because that seemed to be the permanent height of this div, but not sure where this is set. */
    z-index: 999;
    color: var(--text);
    transition: top 250ms ease-in-out;
}

#node-container {
    min-width: 260px;
    background-color: var(--primary);
    opacity: 80%;
}

#node-options.expanded {
    top: 0
}

#node-options #node-header:after {
    content: "\FE3E"
}

#node-options.expanded #node-header:after {
    content: "\FE3D"
}

#node-header {
    position: relative;
    left: calc(2%);
    width: fit-content;
    border: var(--accent) solid 3px;
    border-top: none;
    background-color: var(--secondary);
    margin: 0px 10px;
    padding: 0 5px 5px 5px;
    /* display: none; */
}

.filter-options-heading {
    border-top: 2px;
    padding-left: 10px;
    color: var(--text);
}

.sidebar-item-containter {
    margin-left: 17px;
    padding-bottom: 14px;
}

#cluster0 {
    accent-color: var(--cluster0);
}

#cluster1 {
    accent-color: var(--cluster1);
}

#cluster2 {
    accent-color: var(--cluster2);
}

#cluster3 {
    accent-color: var(--cluster3);
}

#cluster4 {
    accent-color: var(--cluster4);
}

#c0-label {
    color: var(--cluster0);
}

#c1-label {
    color: var(--cluster1);
}

#c2-label {
    color: var(--cluster2);
}

#c3-label {
    color: var(--cluster3);
}

#c4-label {
    color: var(--cluster4);
}

#coauth-label {
    color: var(--coauthors);
}

#cogrant-label {
    color: var(--cograntees);
}

#coauth-display {
    accent-color: var(--coauthors);
}

#cogrant-display {
    accent-color: var(--cograntees);
}

.cluster-checks {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

#cluster-change {
    display: grid;
}

.filter-content .removable-dropdown-container:not(:first-child) .fa-xmark {
    display: flex;
}

/* Table Filter */
.hasValue .btn .fa-xmark, .hasValue .btn .fa-search-plus {
    display: flex !important;
}

.dropdown .fa-xmark, .dropdown .fa-search-plus {
    display: none;
}

.btn:hover {
    color: var(--text);
}

.removable-dropdown-container.hasValue .fa-eraser {
    display: block;
}

.table > :not(caption) > * > * {
    background-color: unset !important;
}

div.dt-info {
    padding-top: 0 !important;
}

#filter-header {
    position: relative;
    left: calc(80%);
    width: fit-content;
    border: var(--accent) solid 3px;
    border-bottom: none;
    background-color: var(--secondary);
    margin: 0px 10px;
    padding: 0 5px 5px 5px;
}

/* #filter-row {
    visibility: hidden;
} */

#filter-container #filter-header:after {
    content: "View filter results \FE3D"
}

#filter-container.expanded #filter-header:after {
    content: "Hide filter results \FE3E"
}

#filter-container {
    z-index: 999;
    color: var(--text);
    left: 0;
    position: fixed;
    display: block;
    top: calc(100% - 40px);
    /*transition: top 250ms ease-in-out;*/
}

#filter-container.expanded {
    top: calc(100vh - var(--filter-results-height));
}

.filter-heading {
    font-size: 13px;
}

#filter-content {
    border-top: var(--accent) solid 3px;
    background: var(--primary);
}

#filter-container li {
    padding: 2px 10px;
}

#filter-content .btn {
    line-height: 0.5;
}

#filter-dropdowns {
    margin-left: 10px;
    overflow-y: scroll;
    max-height: calc(var(--filter-results-height) - 120px);
    border: 1px solid var(--secondary);
    border-radius: 5px;
    padding: 5px 5px 5px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.dropdown-toggle {
    overflow-x: hidden;
    width: 88% !important;
}

.dropdown-toggle::after {
    position: absolute;
    right: 10px;
    top: 15px;
    font-size: 15px;
}

.dropdown .btn {
    width: 100%;
    margin-left: 10px;
}

.dropdown-button {
    margin-top: -4px;
    flex: 1 10 100%;
    background-color: var(--primary) !important;
    width: 10px !important;
    padding: 0 !important;
    box-shadow: none;
}

.dropdown-button-remove, .dropdown-button-zoom {
    margin-top: 4px;

}

.btn-check:focus + .btn, .btn:focus {
    box-shadow: none !important;
}

.removable-dropdown-container {
    display: flex;
    flex-flow: row nowrap;
    height: 28px;
}

.remove-dropdown-button {
    margin-left: 0 !important;
    margin-top: 6px;
}

.erase-dropdown-button {

    margin-left: -5px !important;
}

.query-param {
    margin-bottom: 5px;
    flex: 1 1 100%
}

#jump-search {
    margin-right: 10px;
    margin-top: 9px;
    border-radius: 5px;
    border-style: solid;
    margin-bottom: 10px;
}

#reset, #filter-button-bar {

    border-radius: 5px;
    text-align: center;

}

#reset-btn {

    margin-bottom: 17px;
    text-align: center;
}

.container {
    max-width: none !important;
    padding: 0px !important;
}

.row {
    --bs-gutter-x: 0px;
}

#overlay-row {
    position: absolute;
    height: 100%;
}

.row > * {
    padding-right: 0px;
    padding-left: 0px;
    margin-right: 0px;
    margin-left: 0px;
}

.dropdown-item {
    font-size: 14px;
    color: var(--text-inverse)
}

.dropdown-item a:hover {
    background-color: var(--secondary);
    color: var(--text);
}

.dropdown-item.active {
    background-color: var(--secondary);
    color: var(--text);
}

.dropdown-item:hover {
    background-color: var(--secondary);
    color: var(--text);
}

#txt-field {
    height: 31px;
}

.dropdown-menu {
    width: 100%;
}

.search-column {
    padding-left: 10px;
    padding-right: 10px;
}

.nav-link {
    border: 1px solid var(--accent) !important;
}

.nav-link.active {
    background-color: var(--accent) !important;
    /* color: var(--text-inverse) !important; */
    color: var(--text) !important;
}

.nav-link {
    font-size: 14px;
}

#nav-tabs {
    padding-left: 10px;
}

.row-count {
    font-size: 11px;
}

.query-results-container {
    padding-top: 10px;
    background-color: var(--primary);
    display: flex;
    flex-direction: column;
    font-size: 12px;
    border-top: var(--accent) solid 3px;
}

.query-results-container a {
    color: var(--special-text);
    text-decoration: none;
}

.query-results-container a:hover {
    color: var(--special-text);
    text-decoration: underline;
}

#filter-container tr:nth-of-type(2n) {
    background-color: var(--secondary) !important;
}

tr {
    border-color: transparent;
}

.pagination li {
    font-size: 75%;
    color: var(--text);
}

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

.w-12 {
    width: 12% !important;
}

.w-16 {
    width: 16% !important;
}

.w-60 {
    width: 60% !important;
}

.w-20 {
    width: 20% !important;
}

.w-80 {
    width: 80% !important;
}

/* Info Card */
#card-info {
    padding-right: 5px;
    padding-left: 5px;
}

.card {
    background-color: var(--info-card);
    box-shadow: var(--info-card-shadow);
    color: var(--text-inverse);
}

.card a {
    color: var(--special-text-inverse);
}

#info-row {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
}

#info-card {
    transition: opacity 200000000s;
    display: none;
    position: absolute;
    top: 0;
    left: calc(100vw - 300px);
    z-index: 99999;
    height: fit-content;
}

#info-card:hover {
    opacity: 100% !important;
    transition: opacity 2s;
}

.image {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 40%;
}

.image img {
    visibility: visible;
    max-width: 120px;
    height: 120px;
    max-height: 120px;
    padding: 10px;
    border-radius: 10%;
    object-fit: cover;
}

.info-field-text {
    font-size: 14px;
    margin-top: 10px;
    text-align: left;
}

.row .image {
    display: block;
}

.right-card {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 5px;
    min-width: 100%;
    height: fit-content;
}

.underline {
    border-bottom: var(--info-card-shadow);
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

#info-panel {
    padding-left: 0;
}

.info-row {
    margin-top: 10px;
    padding-right: 5px;
    padding-left: 5px;
}

.section-title {
    margin-top: 15px;
    font-size: 18px;
}

.page-title {
    padding-top: 7px;
    padding-right: 10px;
    padding-left: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    font-size: 25px;

    color: var(--text-inverse);
}

.info-row-address {
    margin-top: 5px;
    margin-left: 5px;
    margin-right: 5px;
}

.socials {
    font-size: 20px !important;
}

.socials a {
    padding-left: 2px;
    padding-right: 2px;
}

#name {
    font-size: 20px;
}

#coauthors {
    font-size: 12px;
    overflow-y: scroll;
    max-height: 100px;
    padding-left: 10px;
    margin-top: 5px;
}

#publications {
    font-size: 12px;
    overflow-y: scroll;
    max-height: 100px;
    text-align: left;
    padding-left: 10px;
    margin-top: 5px;

}

#publications > ul > li {
    font-size: 12px;
    margin-left: 10px;
    list-style-type: disc;
}

#grants {
    font-size: 12px;
    overflow-y: scroll;
    max-height: 100px;
    text-align: left;
    padding-left: 10px;
    margin-top: 5px;

}

#grants > ul > li {
    font-size: 12px;
    margin-left: 10px;
    list-style-type: disc;

}

.info-field-address {
    font-size: 14px;
    text-align: left;
    overflow: hidden;
    text-align: center;
    padding-bottom: 5px;
}

#children {
    font-size: 16px;
}

#organization {
    white-space: normal;
    /* text-overflow: ellipsis; */
}

#address {

    font-size: 12px;
}

#papers {
    margin-top: 5px;
    font-size: 18px;
}

/* Responsive design */
@media only screen and (min-width: 400px) and (max-width: 768px) {
    #overlay-row {
        display: none;
        /* width: 100%;
        justify-content: center; */
    }

    #node-options {
        display: none;
    }

    .svg-content * {
        visibility: hidden;
    }

    #running-sim {
        display: none;
    }

    #info-card * {
        display: none;
    }

    #small-display {
        display: block;
        color: var(--text);
        position: absolute;
        background: var(--primary);
        top: 50%;
        margin-right: -50%;
        left: 50%;
        text-align: center;
        transform: translate(-50%, -50%);
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .info-field-text {
        margin-top: 1px;
    }

    .row .image {
        display: none;
    }

    .right-card {
        bottom: 0;
        position: fixed;
        height: auto;
        opacity: 100%;
        min-width: 0%;
    }

    .image img {
        visibility: hidden;
        width: 0px;
        max-width: 0px;
        height: 0px;
    }

    .graph-pane {
        height: auto;
        z-index: 0;
    }

    #name-dropdown-container {
        width: 100%;
    }

    #info-panel {
        display: none;
        /* width: 100%; */
    }

    .sidebar {
        display: none;
        /* padding-top: 15px; */
    }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
    .right-card {
        height: auto;
    }

    #info-panel {
        width: 60%;
    }

    .svg-content {
        visibility: visible;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .image img {

        width: 100px;
        max-width: 100px;
        height: 100px;
    }

    #name-dropdown-container {
        width: 100%;
    }

    #info-panel {
        width: 60%;
    }

    .svg-content {
        visibility: visible;
    }
}

@media only screen and (min-width: 1200px) {
    .btn {
        font-size: 14px;
    }

    #name-dropdown-container {
        width: 100%;
    }

    #info-panel {
        width: 60%;
    }

    .svg-content {
        visibility: visible;
    }
}

.tut-img {
    border: solid 1px var(--accent);
    margin-bottom: 15px;
}

h4 {
    padding-top:10px;
    padding-bottom:10px;
    text-decoration: italic;
}

p a {
    color: blue;
}

p {

}

