/* Body */

body {
	background-image: radial-gradient(#505082 1.5px, transparent 1.5px);
	background-size: 50px 50px;
	background-color: #E4E4ED;
}

body {
    margin: 0;
    font-family: sans-serif;
}

.key-hint{
    color: gray;
    font-size: small;
}

.label-index {
    text-align: center;
    color: white;
    font-weight: 600;
    border-radius: 50%;
    position: absolute;
    left: -15px;
    /* padding: 12.5px; */
    user-select: none;
    background-color: var(--bs-primary);;
    height: 25px;
    width: 25px;
    align-content: center;
    top: 35%;
    border: 2px solid var(--bs-primary);
}

.label-index.active {
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
    color: #111;
}

.sidebar-left,
.sidebar-right,
.main-canvas {
    position: fixed;
    top: 0;
    bottom: 0;
    transition: all 0.3s ease;
}

.sidebar-left {
    /* width: 200px; */
    left: 0;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 10px;
}

.sidebar-left{
    top: 5rem !important;
    bottom: 5rem !important;
    width: 4rem !important;
    z-index: 1020;
    left: 0.5rem;
    border-radius: 10px;
}

.sidebar-right {
    /* right: 0; */
    padding: 10px;
}

.main-canvas {
    top: 50px;
    left: 70px;
    right: 300px;
    /* background: #f0f0f0; */
    padding: 20px;
    overflow: auto;
}

.nav-on-top{
    z-index: 3000;
}

@media (max-width:480px)  {

    .main-canvas {
        position: relative;
        /* background: blue; */
        top: 5rem;
        left: 0.5rem;
        bottom: 1rem;
        right: 0.5rem;
        /* background: #f0f0f0; */
        padding: 20px;
        overflow: auto;
    }

    .sidebar-right.d-sm-show {
        display: block !important;
        /* visibility: visible; */
        /* width: 200px; */
        position: fixed;
        right: 0;
        top: 10rem !important;
        left: 1rem;
        bottom:1rem !important;
        right: 0.5rem !important;
        width: 90% !important;
        color: white;
        font-size: smaller !important;
        display: flex;
        flex-direction: column;
        justify-content: start;
        padding: 10px;
    }


}

.hidden-left .sidebar-left {
    left: -100px;
}

.hidden-left .main-canvas {
    left: 0;
}

.hidden-right .sidebar-right {
    right: -350px !important;
}

.hidden-right .main-canvas {
    right: 0;
}

button {
    padding: 5px 10px;
    margin: 5px;
    font-size: 14px;
    cursor: pointer;
}

.hide-btn-left {
    /* align-self: center;
    margin-bottom: 10px; */
    position: fixed;
    left: 10px;
    bottom: 0.5rem;
    z-index: 2000;
}

.hidden-left *>.hide-btn-left {
    /* left: 0; */
    /* position: fixed; */
    rotate: 180deg;
} 

.hide-btn-right {
    position: fixed;
    right: 10px;
    bottom: 0.5rem;
    z-index: 2000;
}

.hidden-right *>.hide-btn-right {
    right: 10px;
    position: fixed;
    rotate: 180deg;
}
/* Tooltips */

[data-title]:hover:after {
    opacity: 1;
    transition: all 0.2s ease 0.5s;
    visibility: visible;
}

/* [data-title]:after {
    opacity: 1 !important;
    transition: all 0.2s ease 0.5s;
    visibility: visible !important;
} */

[data-title]:after {
    content: attr(data-title);
    background-color: white;
    border-radius: 5px;
    color: #111;
    font-size: 150%;
    position: absolute;
    padding: 1px 5px 2px 5px;
    /* bottom: -1.6em; */
    left: 110%;
    white-space: nowrap;
    box-shadow: 1px 1px 3px #222222;
    opacity: 0;
    border: 1px solid #111111;
    z-index: 99999;
    visibility: hidden;
}

[data-title] {
    position: relative;
}

/* Annotate */

.tool-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.2s ease;
    border: none;
}

.tool-button:hover {
    background-color: #e2e6ea;
}

.tool-button.active {
    border: 1px solid #6c757d;
}

.annotation-marker {
    background-color: #1873c9;
    opacity: 0.5;
    color: white;
    cursor: pointer;
    height: 30px;
    width: 30px;
    text-align: center;
    position: absolute;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    transition: 0.2s ease;
    z-index: 30;
    user-select: none;
}

.annotation-marker:hover {
    opacity: 1;
}

.annotation-marker.active {
    background-color: orange;
    opacity: 1;
}

.annotation-card {
    border: 2px solid lightgray;
    border-left: 4px solid #0d6efd;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    position: relative;;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
}

.annotation-card.active {
    background-color: #fffbe4;
}

.annotation-card .sub-details {
    /* background-color: #fffbe4; */
    display: none;
}

.annotation-card.active .sub-details {
    /* background-color: #fffbe4; */
    display: block;
}

/*  */