/* General Styling */
body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #333; /* Dark background */
    color: #fff; /* White text */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Right-side fixed navigation bar */
nav {
    position: fixed;
    right: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    background-color: #111; /* Dark background for nav */
    color: #fff;
    padding: 20px 10px;
    overflow-y: auto; /* Allows scrolling within the navigation bar if needed */
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
}

/* Header inside the navigation bar */
nav h1 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* Styling links in navigation */
nav a {
    color: #9bf; /* Light blue links */
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

nav a:hover {
    color: #ddf;
}

/* Main Content */
.main-content {
    margin-left: 270px; /* Push content to avoid left nav overlap */
    margin-right: 220px; /* Account for right nav */
    position: relative;
    background-color: #222; /* Match page background */
    z-index: 100;
    padding: 20px;
    max-width: calc(100% - 490px); /* Adjust width dynamically */
    min-height: 100vh;
    border: 10px solid #444;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Ensure the left nav stays below the main content */
#left-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: #111;
    color: white;
    padding: 15px;
    overflow-y: auto;
    border-right: 10px solid #444;
    z-index: 50; /* Behind main content */
}

/* Improve readability of text */
p, li, h1, h2, h3, h4, h5, h6 {
    color: #ddd; /* Light grey for better readability */
}

/* Walkthrough Section */
.walkthrough-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.walkthrough-text, .walkthrough-video {
    flex: 1;
    min-width: 300px;
}

.walkthrough-video iframe {
    width: 100%;
    height: auto;
}
/* Global hyperlink color settings */
a, a:visited, a:hover, a:active {
    color: #9bf; /* Light blue for all links */
    text-decoration: none; /* Removes underline */
}

/* Make hover effect slightly brighter */
a:hover {
    color: #ddf; /* Lighter blue on hover */
}
        /* ===== Scrollable Code Block Styling ===== */
    .scroll-box {
        background-color: #1e1e1e; /* Dark background for contrast */
        color: #9bf; /* Light blue text */
        padding: 10px;
        margin: 10px 0;
        border: 1px solid #444;
        border-radius: 5px;
        font-family: 'Courier New', Courier, monospace;
        font-size: 14px;
        overflow-x: auto; /* Enables horizontal scrolling */
        max-width: 100%; /* Prevents bleeding */
        white-space: pre-wrap; /* Wraps lines properly */
        word-wrap: break-word; /* Breaks long words to prevent overflow */
        display: block;
    }
    

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Hide left-side TOC navigation */
    #left-nav {
        display: none !important;
        visibility: hidden;
        position: absolute;
        left: -9999px;
    }

    /* Make main content full width */
    .main-content {
        margin: 0 auto; /* Center content */
        width: 90%; /* Provide some margin on small screens */
        max-width: 100%;
        padding: 15px;
    }

    /* Adjust right navigation */
    nav {
        width: 100%;
        height: auto;
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 10px;
        background: #222;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
        overflow: hidden; /* Prevents excessive space usage */
    }

    /* Stack navigation links horizontally */
    nav a {
        display: inline-block;
        padding: 6px 8px;
        font-size: 13px;
        margin: 4px;
        text-align: center;
        white-space: nowrap; /* Prevents wrapping */
    }
}
