@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100%;
    height: 100%;
}

.main {
    height: 100%;
}

.nav-link .oi,
.nav-link .fa-solid {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

h1:focus {
    outline: none;
}

.logo {
    height: 30px;
}

.index-logo {
    height: 250px;
}

.index-logo-container {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.content {
    padding-top: 1.1rem;
    height: 100%;
}

.content-container {
    display: flex;
    /* height: 100%; */
    /* min-height: 100%; */
}

/* COMPOUND DETAILS START */

.side-section {
    height: 100%;
    flex: 1 0 500px;
    padding: 20px;
    /* display: flex; */
    /* flex-direction: column; */
    background-color: rgba(46, 173, 121, 0.35);
    /* height: 500px; */
    height: 1100px;
}

.side-section-filter-container {
    /* height: 90%; */
    overflow-y: auto;
}

.cytoscape-section {
    width: 100%;
    max-width: 1100px;
    height: 100%;
    position: relative;
}

.cytoscape-container {
    width: 100%;
    /* max-width: 1100px; */
    height: 1100px;
    /* height: 500px; */
    position: relative;
}

#cy {
    width: 100%;
    /* max-width: 1100px; */
    height: 100%;
    background-color: #eee;
}

.cytoscape-legend .legend-title {
    position: absolute;
    top: 10px;
    right: 20px;
    margin-bottom: 5px;
    margin-right: 5px;
    font-weight: bold;
    font-size: 90%;
}

.cytoscape-legend .legend-scale ul {
    margin: 0;
    padding: 15px;
    position: absolute;
    bottom: 5px;
    right: 10px;
    list-style: none;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

.cytoscape-legend .legend-scale ul li {
    font-size: 80%;
    list-style: none;
    margin-left: 0;
    line-height: 18px;
    margin-bottom: 2px;
}

.cytoscape-legend ul.legend-labels li span {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin-right: 5px;
    margin-left: 0;
    margin-top: 3px;
    /* border: 1px solid rgb(0,102,153); */
    border-radius: 50%;
}

.cytoscape-legend ul.legend-labels li i {
    display: inline-block;
    height: 10px;
    width: 10px;
    font-size: 10px;
    margin-right: 5px;
    margin-left: 0;
    margin-top: 3px;
    /* border: 1px solid rgb(0,102,153); */
    /* border-radius: 50%; */
}

.cytoscape-details-panel {
    height: 100%;
    width: 250px;
    position: absolute;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    color: #fff;
    display: none;
}

.cytoscape-details-panel.show {
    display: block;
}

#cytoscape-details-panel th {
    color: #86e6fc;
}

#cytoscape-details-panel-body {
    overflow: auto;
    height: 90%;
    font-size: 0.7em;
    padding-right: 5px;
    /* scrollbar-width: thin; */
}

#close-details-panel-button {
    cursor: pointer;
}

/* COMPOUND DETAILS END */

/* COMPOUND LIST START */

.compound-list-table td:nth-child(3) {
    font-size: 12px;
}

/* COMPOUND LIST END */

/* COMPARE LIST START */

.compare-list-table td {
    font-size: 12px;
}

.currently-selected-compound-text.compound-1 strong {
    color: #00aeef;
}

.currently-selected-compound-text.compound-2 strong {
    color: #41ad49;
}

.btn-compare {
    height: 95px;
}

/* COMPARE LIST END */

/* LOGIN START */

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.login-img {
    height: 80px;
    margin-bottom: 20px;
}

.logout-button-container {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.box-background {
    background-color: rgb(209, 228, 235);
    padding: 20px;
    border-radius: 10px;
    min-width: 450px;
}

.login-bg {
    background-image: linear-gradient(120deg, rgb(0, 174, 239) 0%, rgb(63, 173, 75) 70%);
}

/* LOGIN END */

/* UTILS START */

.thin-scrollbar::-webkit-scrollbar {
    width: 0.1em;
}

.thin-scrollbar::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.thin-scrollbar::-webkit-scrollbar-thumb {
    background-color: #ddd;
    outline: 1px solid #ddd;
}

.thin-scrollbar.scrollbar-green::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.thin-scrollbar.scrollbar-green::-webkit-scrollbar-thumb {
    background-color: rgb(74 151 96) !important;
    outline: 1px solid rgb(74 151 96) !important;
}

.fit-btn-container {
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 1;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    padding: 1px 5px 0px;
}

.info-btn-container {
    position: absolute;
    left: 4px;
    top: 4px;
    z-index: 1;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    padding: 1px 5px 0px;
    width: 25px;
    text-align: center;
    display: none;
}

.info-btn-container.show {
    display: block;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

.ml-1 {
    margin-left: 0.25rem !important;
}

.mh-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.pr-0 {
    padding-right: 0 !important;
}

.pr-calc-025 {
    padding-right: calc(var(--bs-gutter-x) * .25) !important;
}

.pl-calc-025 {
    padding-left: calc(var(--bs-gutter-x) * .25) !important;
}

.clear-blue-bg {
    background-color: rgba(143, 208, 237, 0.5);
}

.bg-compound {
    background-color: rgb(166, 166, 166);
}

.bg-reaction {
    background-color: rgb(77, 77, 77);
}

.color-reaction {
    color: rgb(77, 77, 77);
}

.bg-compound-searched-1 {
    background-color: rgb(10, 229, 245);
}

.color-compound-searched-1 {
    color: rgb(10, 229, 245);
}

.bg-compound-searched-2 {
    background-color: rgb(10, 245, 45);
}

.color-compound-searched-2 {
    color: rgb(10, 245, 45);
}

.bg-node-selected {
    background-color: rgb(252, 116, 43);
}

.bg-substrate-1 {
    background-color: rgb(0, 174, 239);
}

.color-substrate-1 {
    color: rgb(0, 174, 239);
}

.bg-product-1 {
    background-color: rgb(0, 113, 156);
}

.color-product-1 {
    color: rgb(0, 113, 156);
}

.bg-substrate-2 {
    background-color: rgb(81, 214, 91);
}

.color-substrate-2 {
    color: rgb(81, 214, 91);
}

.bg-product-2 {
    background-color: rgb(56, 150, 63);
}

.color-product-2 {
    color: rgb(56, 150, 63);
}

.bg-substrate-both {
    background-color: rgb(224, 94, 187);
}

.color-substrate-both {
    color: rgb(224, 94, 187);
}

.bg-product-both {
    background-color: rgb(166, 70, 138);
}

.color-product-both {
    color: rgb(166, 70, 138);
}

.color-not-so-white {
    color: #eee;
}

.tippy-box[data-animation=fade][data-state=hidden] {
    opacity: 0
}

[data-tippy-root] {
    max-width: calc(100vw - 10px)
}

.tippy-box {
    position: relative;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    outline: 0;
    transition-property: transform, visibility, opacity
}

.tippy-box[data-placement^=top]>.tippy-arrow {
    bottom: 0
}

.tippy-box[data-placement^=top]>.tippy-arrow:before {
    bottom: -7px;
    left: 0;
    border-width: 8px 8px 0;
    border-top-color: initial;
    transform-origin: center top
}

.tippy-box[data-placement^=bottom]>.tippy-arrow {
    top: 0
}

.tippy-box[data-placement^=bottom]>.tippy-arrow:before {
    top: -7px;
    left: 0;
    border-width: 0 8px 8px;
    border-bottom-color: initial;
    transform-origin: center bottom
}

.tippy-box[data-placement^=left]>.tippy-arrow {
    right: 0
}

.tippy-box[data-placement^=left]>.tippy-arrow:before {
    border-width: 8px 0 8px 8px;
    border-left-color: initial;
    right: -7px;
    transform-origin: center left
}

.tippy-box[data-placement^=right]>.tippy-arrow {
    left: 0
}

.tippy-box[data-placement^=right]>.tippy-arrow:before {
    left: -7px;
    border-width: 8px 8px 8px 0;
    border-right-color: initial;
    transform-origin: center right
}

.tippy-box[data-inertia][data-state=visible] {
    transition-timing-function: cubic-bezier(.54, 1.5, .38, 1.11)
}

.tippy-arrow {
    width: 16px;
    height: 16px;
    color: #333
}

.tippy-arrow:before {
    content: "";
    position: absolute;
    border-color: transparent;
    border-style: solid
}

.tippy-content {
    position: relative;
    padding: 5px 9px;
    z-index: 1
}

/* .tippy-content svg {
    height: 50px;
    width: 50px;
} */

/* UTILS END */

/* BOOTSTRAP OVERRIDES START */

a,
.btn-link,
.false-link {
    color: #0071c1;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.table-primary {
    --bs-table-bg: rgb(207, 241, 255);
    --bs-table-striped-bg: rgb(197, 231, 242);
    --bs-table-striped-color: #000;
    --bs-table-active-bg: rgb(186, 218, 230);
    --bs-table-active-color: #000;
    --bs-table-hover-bg: rgb(191, 222, 236);
    --bs-table-hover-color: #000;
    color: #000;
    border-color: #bacbe6;
}

.table-success {
    --bs-table-bg: rgb(209, 231, 214);
    --bs-table-striped-bg: rgb(199, 219, 203);
    --bs-table-striped-color: #000;
    --bs-table-active-bg: rgb(188, 208, 193);
    --bs-table-active-color: #000;
    --bs-table-hover-bg: rgb(193, 214, 198);
    --bs-table-hover-color: #000;
    color: #000;
    border-color: #bcd0c7;
}

.nav-item a {
    color: #f1f1f1 !important;
}

/* BOOTSTRAP OVERRIDES END */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxy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