body{
    display: flex;
    flex-direction: column;
}

.main-roots {
    background-color: var(--bs-body-bg);
}

span{
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
}

.logo-ceor {
    background: url(/images/TsorLogo.png) no-repeat center / contain;
    width: 70px;
    height: 60px;
}

.edge {
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: 0.3s;
}

.edge:hover {
    opacity: 0.7;
}

.canvas-container {
    z-index: -1;
    position: absolute;
}

.invisible {
    display: none;
}

.image-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal-image {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

.modal-image, #modal-caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

.close-span {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close-span:hover,
.close-span:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

.loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.md-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /*background: linear-gradient(0.25turn, rgba(238, 238, 238, 0.6), rgba(255, 255, 255, 0.6), rgba(238, 238, 238, 0.6));*/
}

.md-main {
    flex-grow: 1;
    min-height: 78vh;
}

.md-footer {
    background-color: var(--md-footer-bg-color);
    color: var(--md-footer-fg-color);
}

.btn-bd-primary {
    --bd-violet-bg: #0e9243;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #28BE46;
    --bs-btn-hover-border-color: #28BE46;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #28BE46;
    --bs-btn-active-border-color: #28BE46;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}

.bd-mode-toggle .bi {
    width: 1em;
    height: 1em;
}

.body-text{
    color: var(--bs-body-color);
}

/* width */
::-webkit-scrollbar {
    width: 12px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 2px grey; 
    border-radius: 5px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00c6fb, #005bea);
    /*background-size: 1rem 1rem;*/
    border-radius: 5px;
    box-shadow: inset 0 0 3px grey;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #009ffb, #0017ea);
}

.tooltip-elem {
    display: none;
    width: max-content;
    position: absolute;
    top: 0;
    left: 0;
    background: #222;
    color: white;
    font-weight: bold;
    padding: 5px;
    border-radius: 4px;
    font-size: 90%;
}

.arrow-elem {
    position: absolute;
    background: #222;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
}

.bd-toc {
    position: sticky;
    top: 10rem;
    right: 0;
    z-index: 2;
    height: calc(100vh - 20rem);
    min-width: 11rem;
    overflow-y: auto;
}

.scrollspy-example {
    overflow: auto;
}

.shadow-effects {
    text-shadow: 1px 1px 0 rgba(71, 68, 71, 0.43);
}

.accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: inherit;
}

button.accordion-button:focus{
      box-shadow: inherit;
}

