body {
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
    font-family: "Times New Roman", Times, serif;
    transition: background-color 0.3s, color 0.3s;
} 
.h2 {
    font-family: "Times New Roman", Times, serif;
    /* font-size: 1.5rem ; */
    font-weight: 500;
    color: var(--bs-dark);
    transition: color 0.3s;
}
p {
    text-indent: 0.5in;
    font-size: large;
    transition: color 0.3s;
}
blockquote {
    font-style: italic;
    font-size: large;
    margin: 1rem;
    padding: 0.5em;
    border-left: 3px solid #ccc;
    padding-left: 10px;
    transition: color 0.3s;
}
img {
    max-width: 100%;
    height: auto;
}
/* Custom sidebar scrollbar styles */
#sidebar::-webkit-scrollbar {
    width: 5px; 
}

#sidebar::-webkit-scrollbar-track {
    background: #e1e1e1; 
}

#sidebar::-webkit-scrollbar-thumb {
    background: #cccccc; 
    border-radius: 1px; 
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: #00000033; 
}
.dark-mode {
    background-color: #333;
    color: #d5d9dd;
    transition: color 0.3s;
}
.dark-mode h2 {
    color: #f8f9fa;
}
.dark-mode .h2 {
    color: #f8f9fa;
}
.dark-mode .datetime {
    color: #ddd;
    transition: color 0.3s;
}
.back-to-top {
    position: fixed;
    z-index: 100;
    bottom: 20px;
    right: 20px;
    background-color: #00000066;
    color: #fff;
    display: none;
}
.back-to-top:hover {
    background-color: #00000099;
    color: #fff;
}
.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 10px;
}
.language-dropdown {
    display: inline-block;
}
/* .subtitle {
    font-size: large;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.authornames {
    width: 100%;
    text-align: center;
    font-size: 1rem;
}
.datetime {
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    margin: 1.5px 0 2% 0;
    color: #414141;
    transition: color 0.3s;
} */
.apacite {
    text-indent: -0.5in;
    padding-left: 0.5in;
}
.content-wrapper {
    font-size: large;
    max-width: 100%;
}
.sidebar {
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    overflow-y: auto;
    transition: background-color 0.3s;
}
.position-sticky {
    padding-left: 1%;
    list-style: none;
    margin-top: 60px;
    margin-bottom: 50px;
}
.nav-link {
    transition: all 0.3s;
}
.nav-link:hover {
    transform: translateX(5px);
}
.nav-link.active {
    /* color: #007bff; */
    font-weight: bold;
}
.nxt-pagelink {
    color: #00bfff;
    text-shadow: 1px 0px 2px #00000050;
}
.main-content {
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    padding-right: 15px;
}
.header-content {
    order: 0;
    text-align: center;
}
.content-wrapper {
    max-width: 97.5%;
}
/* @media (min-width: 768px) {
    .position-sticky{
        margin-top: 60px;
        margin-bottom: 50px;
    }
} */
@media (min-width: 1200px) {
    .content-wrapper {
        max-width: 87.5%;
    }
    .position-sticky{
        margin-top: 60px;
        margin-bottom: 50px;
    }
}
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
    }
    .header-content {
        margin-bottom: 20px;
    }
    .position-sticky{
        margin-top: 10px;
        margin-bottom: 10px;
    }
}