body, html{
    position: fixed;
    width: 100%;
    height: 100%;
}


#header{
    height: 70px;
}


#header .nav-link{
    color : #ccc;
    padding-top:5px;
}


#header img{
    height : 40px;
    margin-right : 15px;
}

#header img{
    border-radius : 50px;
}

#page_container{
    position: absolute;
    display: flex;
    top: 70px;
    bottom: 0px;
    right: 0px;
    left: 0px;
    overflow: 
}

#sidebar {
    background-color: #ccc;
    width: 15%;
    min-width: fit-content;
    padding: 15px; 
}

#sidebar .nav-link{
    color: #24365f;
}

#sidebar .nav-link.active {
    background-color: #24365f !important; 
    color: #fff;
}

.bi-info-circle-fill{
    color: #24365f;
}

#content {
    width: 100%;
    padding: 25px;
    overflow-y: scroll;
}
/*
@media screen and (max-width: 1200px) {
    body{
        //width:1200px;
    }
    #page_container{
        //width:1200px;
        //height:3000px;
    }
    #header{
        //width:1200px;
    }
}*/

#footer{
    margin-top: 40px;
    padding-bottom: 15px;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

#footer hr {
    border-top: 1px solid #d5d9e6;
    margin-bottom: 15px;
}

.footer-title {
    font-weight: 600;
    color: #24365f;
    margin-bottom: 6px;
}

.footer-version {
    font-weight: 400;
    font-size: 0.8rem;
    color: #888;
}

.footer-tagline {
    font-weight: 400;
    font-style: italic;
    color: #888;
}

.footer-links {
    margin-bottom: 6px;
}

.footer-links a {
    color: #3a4d7a;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: #24365f;
    text-decoration: underline;
}

.footer-data {
    color: #777;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.footer-copy {
    color: #999;
    font-size: 0.8rem;
}

.card{
    margin-bottom: 10px;
}

p{
    margin: 0.25em;
}

.btn_taxon{
    margin-bottom: 0.25em;
}

.popover {
    max-width: 480px;
    max-height: 55vh;
    border: 1px solid #d5d9e6;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.popover-header {
    background-color: #24365f;
    color: #fff;
    font-weight: 600;
}

/* Documentation rendered inside a help popover */
.help_popover {
    overflow-y: auto;
    max-height: 42vh;
    color: #333;
    line-height: 1.5;
    font-size: 0.9rem;
}

.help_popover p,
.help_popover li {
    margin: 0.4em 0;
}

.help_popover ul {
    margin: 0.4em 0 0.4em 1.1em;
    padding-left: 0.4em;
}

.help_popover h1 { font-size: 1.15rem; color: #24365f; margin: 0.1em 0 0.4em; }
.help_popover h2 { font-size: 1.05rem; color: #24365f; margin: 0.6em 0 0.3em; }
.help_popover h3 { font-size: 0.98rem; color: #3a4d7a; margin: 0.5em 0 0.3em; }
.help_popover h4,
.help_popover h5,
.help_popover h6 { font-size: 0.92rem; color: #3a4d7a; margin: 0.5em 0 0.3em; }

/* Center and contain the LaTeX equations inside the popover */
.help_popover .DashLatex,
.help_popover mjx-container {
    display: block;
    text-align: center;
    overflow-x: auto;
    margin: 0.4em 0;
}

/* ---------------- Documentation / Help page ---------------- */
.doc-row {
    max-width: 1250px;
    margin: 0 auto;
}

/* Sticky table of contents */
#doc-menu {
    position: sticky;
    top: 0;
    align-self: flex-start;
}

.doc-toc-title {
    font-weight: 600;
    color: #24365f;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

#doc-menu .doc-menu-item a {
    color: #3a4d7a;
    text-decoration: none;
    display: block;
    padding: 3px 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

#doc-menu .doc-menu-item a:hover {
    color: #24365f;
    text-decoration: underline;
}

.doc-menu-l1 a { font-weight: 600; margin-top: 6px; }
.doc-menu-l2 { padding-left: 14px; }
.doc-menu-l3 { padding-left: 30px; }
.doc-menu-l3 a { font-size: 0.85rem; }

/* Documentation body typography */
#doc-content {
    color: #333;
    line-height: 1.65;
}

#doc-content .doc-title {
    color: #24365f;
    margin: 0;
}

#doc-content h1 {
    font-size: 1.85rem;
    color: #24365f;
    margin-top: 1.3em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #e3e6ee;
    scroll-margin-top: 15px;
}

#doc-content h2 {
    font-size: 1.4rem;
    color: #24365f;
    margin-top: 1.1em;
    scroll-margin-top: 15px;
}

#doc-content h3 {
    font-size: 1.15rem;
    color: #3a4d7a;
    margin-top: 1em;
    scroll-margin-top: 15px;
}

#doc-content h4,
#doc-content h5 {
    font-size: 1rem;
    color: #3a4d7a;
    margin-top: 0.9em;
    scroll-margin-top: 15px;
}

#doc-content p,
#doc-content li {
    margin: 0.4em 0;
    max-width: 78ch;
}

#doc-content ul {
    margin: 0.5em 0 0.8em 1.2em;
}

/* Center and space the LaTeX equations */
#doc-content .DashLatex,
#doc-content mjx-container {
    display: block;
    text-align: center;
    margin: 0.6em 0;
    overflow-x: auto;
}

._dash-loading-callback {
position: fixed;
z-index: 100;

position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.5);
text-align: center;
z-index: 100000;
}

._dash-loading-callback::after {
    content: '';
    
    position: fixed;
    top:50%;
    left:50%;
    margin-left:-75px;
    margin-top:-75px;
    
    width: 150px;
    height: 150px;
    border: 15px solid #212529;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 
