/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    background-color: #0000ff; /* Matches header's blue background */
    color: #000; /* Black text color */
    display: flex;
    flex-direction: column; /* Stack header, content, and footer vertically */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    box-sizing: border-box; /* Include padding and border in dimensions */
}

/* Container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #fff;
    width: 100%; /* Full width */
    max-width: 100vw; /* Prevent overflow */
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Header */
.header {
    background: #0000ff; /* Blue fill for the header */
    width: 100%;
    height: 50px; /* Reduced height for header */
    padding: 5px 10px; /* Adjusted padding */
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000; /* Add slight separation */
    position: relative; /* Make it static for scrolling */
    z-index: 1000;
    box-sizing: border-box;
}

/* Header Info */
.header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-info .title {
    text-transform: uppercase;
}

.header-info .status {
    font-size: 0.8em;
}

/* Window Control Buttons */
.window-controls {
    display: flex;
    gap: 5px;
    position: absolute; /* Position relative to the header */
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.control {
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ccc;
    border: 1px solid #888;
    box-shadow: inset -1px -1px 1px #fff, inset 1px 1px 2px #000; /* 3D effect */
    cursor: pointer;
}

.control:hover {
    background: #ddd;
}

.control:active {
    background: #bbb;
    box-shadow: inset 1px 1px 2px #000, inset -1px -1px 1px #fff; /* Pressed effect */
}

/* Main Section */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
    overflow-y: auto; /* Handle content overflow */
    box-sizing: border-box;
}

/* Documentation Section */
.section {
    width: 90%; /* Adjust to fit smaller screens */
    max-width: 800px; /* Limit maximum width */
    margin: auto;
    text-align: left;
    padding: 10px;
    box-sizing: border-box; /* Ensure proper spacing */
}

.section h2 {
    font-size: 1.5em;
    text-decoration: underline;
    margin-bottom: 10px;
}

.section p {
    line-height: 1.5;
    margin: 10px 0;
}

.section ul {
    margin-left: 20px;
}

.section ul li {
    margin-bottom: 5px;
}

/* Code Block */
.code-block {
    background: #f4f4f4;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto; /* Allow horizontal scrolling for long code */
    margin: 15px 0;
}

.code-snippet {
    font-family: 'Courier New', Courier, monospace;
    color: #333;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Compilation Command Styling */
code {
    display: block;
    background: #f4f4f4;
    color: #000;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin: 10px 0;
}

/* Screenshot Styling */
.screenshot {
    max-width: 100%; /* Ensure images fit within the container */
    height: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Download Link */
.download-link {
    font-family: 'Courier New', Courier, monospace;
    color: #0000ff;
    text-decoration: underline;
    cursor: pointer;
}

.download-link:hover {
    color: #ff4500; /* Change color on hover for effect */
}

/* Footer */
footer {
    background: #0000ff; /* Blue background for footer */
    color: #fff;
    text-align: center;
    width: 100%;
    height: 40px; /* Reduced height for footer */
    padding: 5px; /* Adjusted padding */
    font-size: 0.8em;
    border-top: 1px solid #000; /* Slight separation for footer */
    position: relative; /* Make it static for scrolling */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section {
        width: 95%; /* Increase width for smaller screens */
    }

    .window-controls {
        gap: 3px; /* Reduce gap between icons */
    }

    .control {
        width: 18px; /* Slightly smaller icons for small screens */
        height: 18px;
    }

    .main {
        padding: 10px; /* Reduce padding for smaller screens */
    }
}

