/* General Styles for Dark Mode */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #ffffff;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    background-color: #1f1f1f;
    padding: 2rem;
    width: 250px;
    flex-shrink: 0;
    height: 100vh; /* Set height to full viewport */
    overflow-y: auto; /* Allow scrolling within the sidebar */
}

.sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.topic-list {
    list-style: none;
    padding: 0;
}

.topic-list li {
    margin-bottom: 1rem;
}

.topic-list a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

.topic-list a:hover {
    text-decoration: underline;
}

/* Main Content Styles */
.content {
    flex-grow: 1;
    padding: 2rem;
    margin-top: 70px; /* Add margin to accommodate the hamburger button */
}

.content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.content p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.nav-buttons button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: #fff;
    background-color: #3a3a3a;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.nav-buttons button:hover {
    background-color: #5a5a5a;
}

/* Hide Hamburger Button on Large Screens */
.hamburger {
    display: none; /* Hide by default */
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    /* Hamburger Button - Visible on Mobile */
    .hamburger {
        display: block; /* Only visible on small screens */
        font-size: 2rem;
        background: none;
        border: none;
        color: white;
        padding: 1rem;
        cursor: pointer;
        position: absolute;
        top: 1rem;
        left: 1rem;
        z-index: 1000;
    }

    /* Sidebar is hidden by default on mobile screens */
    .sidebar {
        width: 250px; /* Maintain sidebar width */
        text-align: center;
        position: fixed;
        left: -100vw; /* Move sidebar completely off-screen */
        top: 0;
        height: 100%; /* Sidebar height */
        transition: left 0.3s ease;
        z-index: 500; /* Ensure it's below the hamburger button */
    }

    /* Show Sidebar when hamburger is clicked */
    .sidebar.show {
        left: 0; /* Slide in the sidebar */
    }

    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-buttons button {
        width: 100%;
    }
}




/* Title Styles */
#topic-title {
    font-size: 2.7rem; /* Larger font size for the title */
    color: #3255c7; /* Light color for contrast */
    margin-bottom: 6rem; /* Space below the title */
    text-align: center; /* Center-align the title */
    text-transform: uppercase; /* Uppercase for a bold look */
    letter-spacing: 1px; /* Add some space between letters */
    position: relative; /* Enable positioning for the pseudo-element */
}

/* Underline Effect */
#topic-title::after {
    content: ""; /* Required for the pseudo-element */
    display: block; /* Makes it behave like a block element */
    width: 50%; /* Adjust the width of the underline */
    height: 4px; /* Thickness of the underline */
    background-color: #ffffff; /* Color of the underline */
    margin: 0 auto; /* Center the underline */
    margin-top: 0.5rem; /* Space between title and underline */
    border-radius: 2px; /* Slightly rounded corners for the underline */
}


/* Description Styles */
#topic-description {
    font-size: 1.7rem; /* Medium font size for description */
    font-weight: bolder;
    color: #e0e0e0; /* Slightly darker than title */
    margin-bottom: 2rem; /* Space below the description */
    text-align: center; /* Center-align the description */
    word-spacing: 2px; /* Add spacing between words for readability */
}

/* Content Styles */
#topic-content {
    font-size: 1.2rem; /* Standard font size for content */
    line-height: 1.8; /* Increase line height for readability */
    color: #ffffff; /* White color for text */
    margin-bottom: 2rem; /* Space below content */
    padding: 0 1rem; /* Horizontal padding for content */
    word-spacing: 2px; /* Add spacing between words for readability */
}
