﻿ul {
    list-style: none;
    padding: 0;
}

.tree-view {
    /*border: 1px solid #ccc;*/
    padding: 10px;
    max-width: 300px;
}

.tree-node {
    margin-bottom: 5px;
    cursor: pointer;
}

.button-book {
    border: none;
    background-color: transparent;
    text-wrap: nowrap;
}

.tree-node .toggle {
    cursor: pointer;
    margin-right: 5px;
}

.tree-node ul {
    margin-left: 20px;
    display: none;
}

.open-node {
    display: block !important;
    padding-right: 12px;
    padding-top: 8px;
    padding-bottom: 4px;
}

.close-node {
    display: none !important;
}

.img-open {
    height: 15px;
    width: 18px;
    background-image: url('img/book-open-solid.svg');
    border: none !important;
}

.img-close {
    height: 15px;
    width: 12px;
    border: none !important;
    background-image: url('img/book-solid.svg');
}

.txt-show {
    display: block
}

.txt-hidden {
    display: none
}

.libmainbookcontent {
    height: auto !important;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid indigo;
    border-radius: 50%;
    border-top-color: #0001;
    display: inline-block;
    animation: loadingspinner .7s linear infinite;
}

/* Styles for the modal */
#myModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
    overflow-y: auto !important;
    max-height:80%
}

/* Styles for the overlay */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

@keyframes loadingspinner {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}
.fixed-div {
    position: sticky;
    top: 0;
    right: 0;
}
.footnote {
    font-size: 15px;
    vertical-align: super;
    color: #58151c;
    cursor: help;
}
.center {
    text-align: center;
}
.ayehselected {
    background-color: #f3e6d1; /* Selected row style */
}
a {
    text-decoration: none !important;
}

.d-inline-flex {
    display: inline-flex;
}

.align-items-center {
    align-items: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}
.truncate-two-lines {
    display: -webkit-box; /* Use -webkit-box to make the element behave like a flexbox */
    -webkit-line-clamp: 4; /* Show only 2 lines */
    -webkit-box-orient: vertical; /* Set the box orientation to vertical */
    overflow: hidden; /* Hide the overflowing content */
    text-overflow: ellipsis; /* Show ellipsis (...) for overflowing text */
    white-space: normal; /* Make sure the text wraps */
}