* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

.container-12 {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #ff5722;
}

h2 {
    background-color: #ffe0e0;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.chapter-list {
    list-style: none;
    padding-left: 0;
}

.chapter-list li {
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    font-weight: bold; /* Make chapter names bold */
    color: #333; /* Default text color */
}

.chapter-list li a {
    color: inherit; /* Use the parent color */
    text-decoration: none; /* Remove underline */
    display: block; /* Make the entire list item clickable */
    height: 100%; /* Make the anchor fill the list item */
}

.chapter-list li:hover {
    background-color: #f57c00;
    color: #fff;
}

.chapter-list li:hover a {
    color: #fff; /* Change the text color on hover */
}

.footer {
    background-color: #333;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 30px;
}

.footer p {
    color: white;
    font-size: 0.9em;
    font-weight: bold;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #ff5722;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}
/* Scroll-Up Button Styles */
.scroll-up {
    position: fixed;
    bottom: 40px;
    right: 30px;
    background-color: #f57c00; /* Orange */
    color: white;
    border: none;
    border-radius: 50%;
    padding: 15px 20px;
    font-size: 20px;
    cursor: pointer;
    display: none; /* Hidden by default */
    z-index: 999;
    transition: opacity 0.4s ease;
}

.scroll-up:hover {
    background-color: #e65100; /* Darker orange on hover */
}
/* Media Queries */
@media (max-width: 768px) {
    h2 {
        font-size: 1.3em;
    }

    .chapter-list li {
        font-size: 0.9em;
    }

    .footer p {
        font-size: 0.8em;
    }

    .footer-links a {
        font-size: 0.8em;
    }
}

/* Universal Style for Navbar and Footer */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

nav {
    background-color: #6c63ff; /* Navbar background color */
    color: white;
    padding: 10px; /* Reduced padding */
    text-align: center;
}

footer {
    background-color: #6c63ff; /* Footer background color */
    color: white;
    text-align: center;
    padding: 8px; /* Reduced padding */
    position: relative; /* Changed to relative for better layout */
    bottom: 0;
    width: 100%;
}

.content {
    padding: 20px;
    background-color: #f9f9f9; /* Content background color */
    max-height: 80vh; /* Set a maximum height for the content */
    overflow-y: auto; /* Enable vertical scrolling */
}

/* Custom Scrollbar CSS */
::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* Track color */
}

::-webkit-scrollbar-thumb {
    background: #6c63ff; /* Scrollbar thumb color */
    border-radius: 10px; /* Rounded corners for the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background: #5a54d9; /* Darker color on hover */
}

/* For Firefox */
* {
    scrollbar-width: thin; /* Make the scrollbar thinner */
    scrollbar-color: #6c63ff #f1f1f1; /* Scrollbar thumb color and track color */
}