body {
    background-color: #000000;
    color: #0074D9;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 50px 10px;
}

/* Flex Container to hold all three columns */
.terminal-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Keeps side boxes at the top */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* The Main Column */
#monitor {
    flex: 2;
    max-width: 650px;
    border: 2px solid #001f3f;
    background-color: rgba(0, 5, 20, 0.9);
    padding: 30px;
    box-shadow: 0 0 20px #001f3f;
    position: relative;
    overflow: hidden;
}

/* The Floating Side Columns */
.side-module {
    flex: 1;
    max-width: 200px;
}

.box {
    border: 1px solid #001f3f;
    background: #000;
    padding: 10px;
    box-shadow: 4px 4px 0px #001f3f;
    font-size: 0.85em;
}

h3 {
    color: #7FDBFF;
    border-bottom: 1px solid #001f3f;
    margin-top: 0;
    font-size: 1em;
}

/* CRT Scanline Effect */
#scanline {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

/* Navigation */
nav a {
    color: #0074D9;
    text-decoration: none;
    margin-right: 15px;
    font-weight: bold;
}

nav a:hover {
    color: #7FDBFF;
    text-shadow: 0 0 5px #7FDBFF;
}

.small-text {
    font-size: 0.75em;
    opacity: 0.8;
}

/* Responsive: Stack them on mobile */
@media (max-width: 900px) {
    .terminal-grid {
        flex-direction: column;
        align-items: center;
    }
    .side-module {
        width: 100%;
        max-width: 650px;
    }
}