/* Layout Styles */

@media (max-width: 768px) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        /* overflow-x: hidden; */ /* Removed to debug horizontal scrolling issues */
    }
}

.portfolio-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 20px;
    max-width: 1200px; /* Adjusted width for more side margins */
    margin: 0 auto 0;
    padding-top: 0px; /* Removed padding to account for fixed navigation */
}

@media (max-width: 768px) {
    .portfolio-container {
        flex-direction: column; /* Stack items vertically on mobile */
        max-width: 100%; /* Allow full width on mobile */
        padding-left: 20px; /* Ensure 20px margin from screen edges */
        padding-right: 20px; /* Ensure 20px margin from screen edges */
        gap: 20px; /* Add some vertical spacing between stacked elements */
    }
}

.interstitial-wrapper {
    box-sizing: border-box;
    font-size: 1.1em; /* Slightly larger font for the wrapper */
    line-height: 1.6em;
    margin: 15vh auto 0; /* Moved higher */
    max-width: 650px; /* Slightly wider */
    width: 100%;
    text-align: left; /* Ensure left alignment */
}

@media (max-width: 768px) {
    .interstitial-wrapper {
        padding: 0 20px; /* Add horizontal padding for mobile */
        margin-top: 20vh; /* Adjust top margin for mobile */
    }
}

#main-content {
    text-align: left;
}

.code-icon {
    display: inline-block; /* Changed to inline-block for better text flow */
    font-size: 1em; /* Match parent font size */
    vertical-align: middle; /* Align with middle of text */
    margin-right: 0.2em;
    color: #009900; /* Matrix green */
    line-height: 1; /* Ensure consistent line height */
}

.nav-wrapper::after {
    clear: both;
    content: '';
    display: table;
    width: 100%;
}