:root {
    --primary: rgb(0, 0, 0);
    --primary-dark: rgb(51, 51, 51);
    /* --secondary: #eb9c34; */
    --secondary: #28b2b2;
    /* --secondary: #7ee4f2; */
    --tooltip-bg: rgba(33, 33, 33, 0.8);
}

* {
    scrollbar-width: thin;
    /* "auto" or "thin"  */
    scrollbar-color: darkgrey rgba(0, 0, 0, 0.2);
    /* scroll thumb & track */
    font-family: "Open Sans", verdana, arial, sans-serif;
}

.offcanvas-body {
    padding: 0rem;
}

*::-webkit-scrollbar {
    width: 0.5em;
}

*::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.2);
}

*::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    outline: 1px solid slategrey;
}

body {
    background-color: rgb(72, 72, 72);
}

#body {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.hidden {
    display: none !important;
}

.form-row {
    margin-bottom: 0.5rem;
}

.form-select {
    /* color: #28b2b2; */
    appearance: auto;
    /* width: 5rem; */
    /* width: min-content; */
}

.form-check-input:checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #2e2e2e;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, .25);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
}

.input-group {
    flex-wrap: nowrap;
}

.input-group>.form-select {
    width: fit-content;
    flex: none;
}

.form-text {
    text-align: center;
}

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



.nav-tabs {
    background-color: var(--primary-dark);
    border: 0px solid transparent;
}

.nav-tabs .nav-link.active {
    background-color: rgb(72, 72, 72);
    color: white;
    border: 0px solid transparent;
}


.nav-link {
    color: white;
    border: 0px solid transparent !important;
}

.nav-link.active,
.nav-link:hover,
.nav-link:focus {
    color: white !important;
    background-color: var(--primary-dark);
    border: 0px solid transparent !important;
}

.content-container {
    padding: 0.5rem 4rem;
    height: 100%;
}

.btn-block {
    display: block;
    margin: .5rem 0;
    width: auto;
}

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

.logo-div {
    margin-bottom: 20px;
    text-align: center;
}

.logo-brand {
    width: 250px;
    max-width: 100%;
}

.btn-main {
    /* font-weight: 700; */
    background-color: var(--primary);
    /* background-color: #333; */
    border: none;
    /* transition: all 0.25s; */
    width: auto;
    display: inline-block;
    white-space: nowrap;
    color: #fff !important;
    letter-spacing: 0.05rem;
}

.btn-main:hover,
.btn-main:active,
.btn-main:focus {
    background-color: var(--primary-darker) !important;
    /* background-color: #333 !important; */
    /* box-shadow: 0 0 6px 2px var(--secondary); */
    color: var(--secondary) !important;
    /* border-color: var(--secondary) */
}

.btn-main:disabled {
    background-color: rgb(72, 72, 72);
    opacity: 0.5;
}

.flex {
    display: flex;
}

.flex-column>.btn-main {
    display: block;
}

.flex-column>.btn-main:not(:first-of-type) {
    margin: calc(34px + 1rem) 0 0 0;
}

.btn-main,
a.btn-main {
    margin: 0 0 0 0.5rem;
}

.flex-row {
    display: flex;
    flex-direction: row;
}


.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-shrink {
    flex: 0 0 auto;
}

.flex-extend {
    flex: 1 1 0;
}

.rc-slider-handle {
    border-color: var(--primary) !important;
    background-color: #333;
    border-radius: 2px;
}

.rc-slider-handle:hover {
    background-color: var(--primary-darker);
}

.loading-div[data-dash-is-loading="true"]::before {
    content: "Loading...";
    text-align: center;
    color: #832;
    line-height: 180px;
    font-size: 2rem;
    font-weight: 700;
    font-family: "Digital";
    position: fixed;
    left: calc(50%);
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    height: 200px;
    width: 200px;
    border-radius: 100%;
    border: 10px solid #333;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 99999;
    animation: fadein .5s ease-in .5s forwards;
}

#loading_div[data-dash-is-loading="true"]::before {
    content: "Computing..."
}

#loading_div2[data-dash-is-loading="true"]::before {
    content: "Computing..."
}

#loading_div3[data-dash-is-loading="true"]::before {
    content: "Uploading..."
}

#loading_div4[data-dash-is-loading="true"]::before {
    content: "Saving..."
}

.loading-div[data-dash-is-loading="true"]::after {
    content: "";
    position: fixed;
    left: calc(50%);
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    height: 200px;
    width: 200px;
    border-radius: 100%;
    border: none;
    border-top: 10px solid var(--primary-darker);
    z-index: 999999;
    animation: fadein .5s ease-in .5s forwards, turn 2s linear infinite;
}

@keyframes turn {
    from {
        transform: translate(-50%, -50%) rotate(0);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes move {
    0% {
        offset-distance: 0%;
    }

    100% {
        offset-distance: 100%;
    }
}

.large-graph {
    min-width: 250px;
    /* margin: 0 10px 20px 10px; */
    /* padding: 0.5rem; */
    /* background-color: rgba(0, 0, 0, 0.2); */
    border-radius: 4px;
}

.large-graph .dash-graph {
    margin-top: 0.5rem;
}

.small-graph {
    min-width: 400px;
    max-width: 1000px;
    margin: 0 5px 15px 5px;
}

.helper {
    background-color: rgb(34, 34, 34);
    border: 2px solid var(--secondary);
    box-sizing: content-box;
    width: 14px;
    height: 14px;
    line-height: 13px;
    font-size: 11px;
    font-weight: 550;
    cursor: help;
    border-radius: 100%;
    display: inline-block;
    text-align: center;
    color: #eee;
    margin-left: .25rem;
    position: relative;
    font-family: "Open Sans", verdana, arial, sans-serif;
    font-variant: normal;
}

.helper[data-tooltip]:hover:before {
    content: attr(data-tooltip);
    white-space: pre-wrap;
    position: fixed;
    min-width: 200px;
    max-width: 400px;
    box-sizing: content-box;
    z-index: 99999;
    text-align: left;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-font-smoothing: subpixel-antialiased;
    -webkit-transform: translate(-50%, -50%, 0) scale(1.0, 1.0);
    background-color: rgba(255, 255, 255, 0.9);
    font-weight: normal;
    padding: 2rem;
    box-sizing: border-box;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.2rem;
    font-weight: 700;
    color: #000;
    pointer-events: none;
    animation: fadein 0.25s;
}

.helper[data-tooltip]:hover:after {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 9999;
    background-color: rgba(72, 72, 72, 0.5);
    pointer-events: none;
    animation: fadein 0.25s;
}

.custom-tooltip {
    position: absolute;
    background-color: rgba(33, 33, 33, 0.8);
    width: fit-content;
    /* background-color: rgba(0,25,55,0.8); */
    color: #eee;
    z-index: 999;
    top: 0;
    white-space: wrap;
    pointer-events: none;
    padding: 6px 12px;
    border-radius: 4px;
    -webkit-font-smoothing: subpixel-antialiased;
    display: none;
}

.large-graph:not(:hover) .custom-tooltip {
    display: none !important;
}


/* #map2:not(:hover)+.custom-tooltip {
    display: none !important;
} */

.custom-tooltip::before {
    position: absolute;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    content: "";
    display: block;
}

.custom-tooltip[data-location="middle-left"]::before {
    top: 50%;
    left: -6px;
    border-end: 6px solid var(--tooltip-bg);
}

.custom-tooltip[data-location="top-left"]::before {
    top: 10%;
    left: -6px;
    border-end: 6px solid var(--tooltip-bg);
}

.custom-tooltip[data-location="bottom-left"]::before {
    top: 90%;
    left: -6px;
    border-end: 6px solid var(--tooltip-bg);
}

.custom-tooltip[data-location="middle-right"]::before {
    top: 50%;
    right: -6px;
    border-start: 6px solid var(--tooltip-bg);
}

.custom-tooltip[data-location="top-right"]::before {
    top: 10%;
    right: -6px;
    border-start: 6px solid var(--tooltip-bg);
}

.custom-tooltip[data-location="bottom-right"]::before {
    top: 90%;
    right: -6px;
    border-start: 6px solid var(--tooltip-bg);
}

.pos-relative {
    position: relative;
}

.custom-tooltip-title {
    border-bottom: 1px solid var(--secondary);
    font-size: 14px;
    font-weight: 700;
}

.signin-modal {
    width: 500px;

}

@media (max-width: 600px) {
    .sm-collapsed {
        display: none;
    }
}

.custom-control-input:checked~.custom-control-label::before {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::after {
    background-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='%23333' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}

.text-accent {
    color: var(--secondary);
}