.left-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #ddd;
}

.custom-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4caf50;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #4caf50;
}

.title-subtext {
    font-size: 1.2rem;
    color: #6c757d;
    text-align: center;
}
body {
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f4f4f9;
    color: #333;
}
.content {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 1024px) {
    .left-sidebar, .right-sidebar {
        display: none;
    }
    .content {
        margin: 0;
        padding: 10px;
        width: 100%;
    }
}

pre {
    background: #E3F2FD;
    color: #212121;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 0.9em;
}

pre code {
    background-color: transparent !important;
    padding: 0 !important; 
    border: none !important;
    box-shadow: none !important;
}

.content h2 {
    width: 100%;
    font-size: 3rem;
    line-height: 1.6;
    color: #4caf50;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #4caf50;
    display: inline-block;
    padding-bottom: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}
.content h3 {
    margin-top: 60px;
    color: #8e44ad;
}
.content h4 {
    margin-top: 40px;
    color: #8e44ad;
}
.content h5 {
    color: #8e44ad;
}
.content p {
    font-size: 1.1em;
    margin: 20px 0;
}
.highlight-math {
    background-color: #FFCC99;
    padding: 5px;
    border-radius: 5px;
}
.highlight-link {
    color: #f39c12;
    font-weight: bold;
}
.highlight {
    background-color: #f0f0f0;
    color: #555555;
    padding: 1px 3px;
    border-radius: 3px;
    line-height: 1.4;
    display: inline-block;
    margin: 0px 3px;
}
ul {
    list-style: none;
    padding-left: 20px;
    margin: 10px 0;
}
.with-bullets {
    list-style: disc;
    padding-left: 10px;
    margin: 10px 0 10px 20px;
}
ul li {
    margin: 4px 0;
    color: #34495e;;
}
li .title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 6px;
}
li p {
    color: #34495e;
    font-size: 16px;
}
.right-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 1px solid #ddd;
}
.right-sidebar a {
    color: #343a40;
    text-decoration: none;
}
.right-sidebar a:hover {
    text-decoration: underline;
}
.right-sidebar .active {
    font-weight: bold;
    color: #007bff;
}
#dynamic-sidebar ul {
    list-style-type: none;
    padding-left: 0;
}
#dynamic-sidebar ul ul {
    padding-left: 10px;
}
a {
    text-decoration: underline;
    text-underline-offset: 4px;
    color: #3498db;
}
a:hover {
    color: #2c3e50;
}
img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 -2px 6px rgba(0, 0, 0, 0.1);;
}
.comment {
    color: #6c757d;
    font-size: 0.9em;
    font-style: italic;
    margin: 20px 0;
    border-left: 3px solid #d6d8db;
    padding-left: 10px;
}

.scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.navigation {
    margin-top: 30px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.navigation a {
    text-decoration: none;
    color: #007bff;
    font-size: 20px;
    padding: 10px 30px;
}
.navigation a:hover {
    text-decoration: underline;
}
