body {
    margin: 0;
    padding: 30px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    background: black;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}

.desktop {
    position: relative;
    width: 100%;
    height: 100%;
    background: teal;
}

.desktop-icon {
    position: absolute;
    width: 80px;
    text-align: center;
    color: white;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent; /* Invisible border to force layout */
}

/* Specific initial positioning */
.desktop-icon#my-pc-icon {
    left: 10px;
    top: 10px;
}

.desktop-icon#minesweeper-icon {
    left: 10px;
    top: 90px;
}

.desktop-icon#solitaire-icon {
    left: 10px;
    top: 180px;
}

.desktop-icon#chips-icon {
    left: 10px;
    top: 270px;
}

.desktop-icon#doom-icon {
    left: 10px;
    top: 360px;
}

.desktop-icon#pinball-icon {
    left: 10px;
    top: 450px;
}

.desktop-icon#tetris-icon {
    left: 10px;
    top: 540px;
}

.desktop-icon img {
    width: 48px;
    height: 48px;
}

.desktop-icon p {
    margin: 5px 0 0 0;
    font-size: 12px;
    text-shadow: 1px 1px 2px black;
}

.taskbar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30px;
    background: silver;
    border-top: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.start-btn {
    background: silver;
    border: 2px outset white;
    padding: 2px 10px;
    cursor: pointer;
}

.start-btn:active {
    border-style: inset;
}

.taskbar-windows {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.taskbar-window {
    background: silver;
    border: 2px outset white;
    padding: 2px 10px;
    margin-right: 5px;
    font-size: 12px;
    cursor: pointer;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taskbar-window.active {
    border-style: inset;
    background: #c0c0c0;
}

.system-tray {
    display: flex;
    align-items: center;
}

.tray-icon {
    width: 16px;
    height: 16px;
    margin: 0 5px;
    background: silver;
    border: 1px solid black;
}

.network-icon {
    background: url('network-icon.png') no-repeat center;
}

.clock {
    padding: 0 10px;
    font-size: 12px;
}

.start-menu {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 150px;
    background: silver;
    border-top: 2px solid white;
    border-left: 2px solid white;
    border-bottom: 2px solid #808080;
    border-right: 2px solid #808080;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.start-menu-header {
    background: navy;
    color: white;
    padding: 5px;
    font-size: 14px;
    font-weight: bold;
}

.start-menu-item {
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    position: relative;
}

.start-menu-item:hover {
    background: navy;
    color: white;
}

.start-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 150px;
    background: silver;
    border-top: 2px solid white;
    border-left: 2px solid white;
    border-bottom: 2px solid #808080;
    border-right: 2px solid #808080;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.window {
    position: absolute;
    background: silver;
    --border-width: 3px;
    --border-light: #ffffff;
    --border-dark: #808080;
    --title-bar-color: navy;
    border-top: var(--border-width) solid var(--border-light);
    border-left: var(--border-width) solid var(--border-light);
    border-bottom: var(--border-width) solid var(--border-dark);
    border-right: var(--border-width) solid var(--border-dark);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    min-height: 200px;
}

.title-bar {
    background: var(--title-bar-color);
    color: white;
    padding: 4px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000080;
    cursor: move;
}

.window-controls {
    display: flex;
}

.minimize-btn, .maximize-btn, .close-btn {
    background: silver;
    border: 2px outset white;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    margin-left: 2px;
}

.minimize-btn:active, .maximize-btn:active, .close-btn:active {
    border-style: inset;
}

.window-content {
    padding: 10px;
}

#clippy {
    position: absolute;
    bottom: 40px;
    right: 10px;
    width: 80px;
    cursor: pointer;
}

#clippy-img {
    width: 80px;
}

#clippy-text {
    background: #ffffe0;
    border: 1px solid black;
    padding: 5px;
    font-size: 12px;
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 150px;
    display: none;
}

#clippy:hover #clippy-text {
    display: block;
}

#minesweeper-canvas {
    background: gray;
}

#solitaire-canvas {
    background: green;
}

#chips-canvas {
    background: #000080;
}

#doom-canvas {
    background: black;
}

#pinball-canvas {
    background: #008080;
}

#tetris-canvas {
    background: #000000;
}

#email {
    width: 300px;
    height: 350px;
}

#email-form label {
    font-size: 12px;
}

#email-form input, #email-form textarea {
    width: 100%;
    background: white;
    border: 2px inset gray;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 12px;
    padding: 2px;
    box-sizing: border-box;
}

#email-form textarea {
    resize: none;
}

.send-btn {
    background: silver;
    border: 2px outset white;
    padding: 5px 15px;
    cursor: pointer;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 12px;
}

.send-btn:active {
    border-style: inset;
}

#minesweeper { --title-bar-color: #000080; }
#solitaire { --title-bar-color: #008000; }
#chips { --title-bar-color: #800080; }
#doom { --title-bar-color: #ff0000; }
#pinball { --title-bar-color: #00ff00; }
#tetris { --title-bar-color: #0000ff; }
#email { --title-bar-color: #808000; }
#about-me {
    width: 350px;
    height: 250px;
    --title-bar-color: #008080;
}
#help {
    width: 300px;
    height: 200px;
    --title-bar-color: #000080;
}
#my-pc {
    width: 500px;
    height: 450px;
    --title-bar-color: #008080;
}

#about-me .window-content p, #help .window-content p, #my-pc .window-content p {
    font-size: 12px;
    margin: 2px 0;
    line-height: 1.2;
}

#about-me .window-content code, #my-pc .window-content code {
    background: #e0e0e0;
    padding: 2px 5px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}