:root {
    --pst-font-size-h1: 2.25rem;
    --pst-font-size-h2: 2rem;
}

/* Navbar */
.navbar-brand img {
    max-height: 150px;
    /* Adjust the height as needed */
    max-width: auto;
    /* Adjust the width proportionally */
}

/* Making justified paragraph globally */
p {
    text-align: justify;
}

/* Customizing mermaid layout */
pre.mermaid {
    border-radius: 0.5rem;
    text-align: center;
    background: initial;
}

/* Epigraph */
.epigraph {
    text-align: justify;
}

/* custom text classes */
.title1 {
    font-size: 30px;
    font-weight: bold;
}

.text-justify {
    text-align: justify;
}

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

/* for sidebar directive */

aside.sidebar {
    width: auto;
}

/* Making visited link as it is */
a:visited {
    color: inherit;
}

/* Ebook Cards */
.list-group-item {
    padding: 10px 15px;
    /* Adjust padding as needed */
    margin-bottom: 10px;
    /* Add margin between items */
    border-radius: 8px;
    /* Light shadow effect */
    transition: box-shadow 0.3s ease-in-out;
    /* Smooth transition on hover */

}

.list-group-item .d-flex {
    padding: 5px;
}

.list-group-item p {
    margin: 0;
}

.list-group-item p.author {
    opacity: 70%;
}

/* Model used in book card */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    /* Sit on top */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Background with opacity */
    padding: 20px;
    border-radius: 5px;
    width: 500px;
    max-height: 400px;
    /* Max height */
    height: auto;
    /* Max height */
    overflow-y: auto;
    /* Allow scrolling if content exceeds max height */
    text-align: justify;
}

/* Show modal on hover */
.btn-download:hover+.book-modal {
    display: block;
}

/* For quote */

.quote-list {
    counter-reset: quote-counter;
    padding: 0;
}

.quote-container {
    counter-increment: quote-counter;
    padding: 20px 30px;
    border-radius: 5px;
    position: relative;
    width: 90%;
    margin: 20px auto;
}

.quote-container::before {
    content: counter(quote-counter);
    position: absolute;
    top: 50%;
    /* Moves to the vertical center */
    left: -30px;
    /* Adjust the left position as needed */
    transform: translateY(-50%);
    /* Centers vertically */
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.quote-text {
    text-align: justify;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: -5px;
}

.quote-author {
    font-size: 1rem;
    font-weight: bold;
    text-align: right;
    margin-top: -10px;
    margin-bottom: 0;
    opacity: 0.9;
}

.quote-interpretation {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 10px;
    margin-bottom: 0;
    display: none;
    text-align: justify;
}

.quote-container:hover .quote-interpretation {
    display: block;
}


/* Article Info */
.custom-article-class {
    border-radius: 8px;
    padding: 5px 10px !important;
    margin: 0;
}

/* Article  */
article .sd-row-cols-2 {
    width: 110%;
}

/* For light theme */
html[data-theme="light"] {
    body {}

    .bd-sidebar-primary {
        border-right: 6px solid #e7e7e7;
    }

    .bd-sidebar-secondary {}

    .sidebar-secondary-item {
        border-left: 6px solid #e7e7e7;
    }

    .bd-header-article {
        box-shadow: 0px 15px 35px -3px rgba(0, 0, 0, 0.1);
    }

    pre {}

    .contents {}

    .list-group-item {
        background: #f9f9f9;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-left: 2px solid #009c15;
    }

    /* Optional: Adding shadow on hover */
    .list-group-item:hover {
        background: #fdfdfd;
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.066);
        /* Slightly stronger shadow on hover */
    }

    .modal {
        background-color: rgb(255, 255, 255);
        color: rgb(0, 0, 0);
        border: 1px solid rgb(215, 215, 215);

    }

    .quote-container {
        border-left: 2px solid #007bff;
        background-color: #f9f9f9;
    }

    .quote-container::before {
        background: #f1f1f1;
        color: #007bff;
        box-shadow: 0 2px 4px rgb(117, 117, 117);
    }

    .quote-author {
        color: #007bff;
    }

    .custom-article-class {
        border: 1px solid #eaeaea;
        box-shadow: 2px 2px 2px #aaaaaaa3;
    }

}

/* For light theme */
html[data-theme="dark"] {
    body {}

    .bd-sidebar-primary {
        border-right: 6px solid #2a2a2a;
    }

    .bd-sidebar-secondary {}

    .sidebar-secondary-item {
        border-left: 6px solid #2a2a2a;
    }

    .bd-header-article {
        box-shadow: 0px 15px 35px -3px rgba(199, 199, 199, 0.1);
    }

    pre {}

    .contents {}

    .card {
        background-color: #1f1f1f;
        color: #ced6dd;
    }

    .card-header {
        border-bottom: 1px solid rgb(255 255 255 / 21%);
    }

    details.above-input>summary {
        background-color: #2a313d !important;
    }

    details.below-input>summary {
        background-color: #2a313d !important;
    }

    .list-group-item {
        background: #000000;
        box-shadow: 0 4px 6px #3e3e3e;
        border: 1px solid #626262;
        border-left: 2px solid #b89401;
    }

    /* Optional: Adding shadow on hover */
    .list-group-item:hover {
        background: #202020;
        box-shadow: 0 6px 10px #202020;
        /* Slightly stronger shadow on hover */
    }

    .list-group-item p {
        color: #f3f4f5;
    }

    .modal {
        background-color: #2f2f2f;
        color: #f3f4f5;
        border: 1px solid #3c3c3c
    }

    .quote-container {
        background-color: #000000;
        border: 1px solid #3c3c3c;
        border-left: 2px solid #e2cc00;

    }

    .quote-container::before {
        background: #3c3c3c;
        color: #e2cc00;
        box-shadow: 0 2px 4px rgba(211, 190, 0, 1);
    }

    .quote-author {
        color: #b6a400;
    }

    .custom-article-class {
        border: 1px solid #ffc1074f;
        box-shadow: 2px 2px 2px #ffc10770;
    }
}