body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    margin: 0;
    background-color: #f4f4f4;
}

/* Sidebar Navigation */
nav {
    width: 250px;
    background: #2c3e50;
    color: white;
    height: 100vh;
    position: fixed;
    padding: 20px;
}

nav a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #34495e;
}

nav a:hover { color: white; }

/* Main Content Area */
main {
    margin-left: 290px;
    padding: 40px;
    max-width: 1000px;
    background: white;
    min-height: 100vh;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

h1, h2, h3 { color: #2c3e50; border-bottom: 2px solid #eee; padding-bottom: 10px; }

code {
    background: #f8f8f8;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

.math-block {
    background: #fdfdfd;
    padding: 20px;
    border-left: 5px solid #3498db;
    margin: 20px 0;
}

.warning {
    color: #c0392b;
    font-weight: bold;
    border: 1px solid #c0392b;
    padding: 10px;
}

.center-text {
    text-align: center;
}

.video-container {
    text-align: center; /* Centers the video and caption */
    margin: 20px 0;
}

figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Side-by-side layout for the Logical Structure section */
.logical-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.logical-text {
    flex: 1.5; /* Gives the text more room */
}

.logical-diagram {
    flex: 1; /* Space for the flowchart */
}

.logical-diagram img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 5px;
}

/* Clear headings for the sub-points */
.logical-text h3, .logical-text h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

#image_300px {
    width: 300px;   
    height: auto;   
    display: block;
    margin: 20px 0; 
}
