/* === Boot Screen Styles === */
#boot-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #000000; color: #ffffff; font-family: 'Consolas', 'Courier New', monospace; font-size: 14px; line-height: 1.3; padding: 10px; overflow-y: auto; z-index: 200; display: block; position: relative; }
#boot-text-container {}
#boot-text-container p { margin: 0; padding: 0; white-space: pre-wrap; }
#cursor { display: inline-block; background-color: #ffffff; width: 0.6em; height: 1.2em; margin-left: 2px; vertical-align: bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
/* ASCII art styles removed */

/* === Initial State for Desktop/Taskbar === */
#desktop { display: none; width: 100%; height: calc(100% - 30px); position: relative; padding: 10px; overflow: hidden; user-select: none; transition: background-color 0.3s ease; /* Added for smooth color change */ }
#taskbar { display: none; position: absolute; bottom: 0; left: 0; width: 100%; height: 30px; background-color: #c0c0c0; border-top: 1px solid #ffffff; align-items: center; padding: 2px; z-index: 100; }

/* === Shutdown Overlay Styles === */
#shutdown-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 300; /* Above everything */
    display: flex; /* Use flex to center message */
    align-items: center;
    justify-content: center;
    font-family: "Courier New", Courier, monospace; /* Or other pixel/mono font */
    opacity: 0; /* Start fully transparent */
    pointer-events: none; /* Allow clicks through initially */
    transition: opacity 0.2s ease-in-out; /* Fade in/out */
}
/* Class to show the overlay */
#shutdown-overlay.visible {
    display: flex;
    opacity: 1;
    pointer-events: auto; /* Block clicks when visible */
}
#shutdown-message {
    color: #ccc;
    font-size: 2em;
    text-align: center;
    padding: 20px;
    max-width: 80%;
    white-space: pre-wrap;
    opacity: 0; /* Message fades in */
    transform: scale(1.1); /* Slightly zoom in */
    transition: opacity 0.4s ease-in 0.2s, transform 0.4s ease-in 0.2s; /* Delayed fade/zoom */
}
#shutdown-overlay.visible #shutdown-message {
    opacity: 1;
    transform: scale(1);
}

/* Basic Glitch Animation */
@keyframes simpleGlitch {
   0%, 100% { background-color: #000; opacity: 1; }
   10% { opacity: 0.9; transform: translateX(1px); }
   20% { opacity: 1; transform: translateX(-1px); }
   30% { background-color: #050505; }
   40% { transform: translateX(1px) translateY(1px); }
   50% { opacity: 0.85; }
   60% { transform: translateX(-1px) translateY(0); }
   70% { background-color: #000; }
   80% { transform: translateY(-1px); opacity: 0.95; }
   90% { opacity: 1; transform: translateX(1px); }
}
/* Class added by JS to trigger animation */
#shutdown-overlay.glitching {
   animation: simpleGlitch 0.15s steps(2, end) infinite alternate;
}
/* Optional: Glitch text slightly */
#shutdown-overlay.glitching #shutdown-message {
   /* text-shadow: 1px 0 0 red, -1px 0 0 cyan; */ /* Example text glitch */
}


/* === Rest of the styles === */
* { box-sizing: border-box; margin: 0; padding: 0; } html, body { height: 100%; overflow: hidden; font-family: 'Tahoma', 'Segoe UI', Geneva, Verdana, sans-serif; background-color: #008080; }
.shortcut { position: absolute; width: 90px; text-align: center; padding: 5px; cursor: pointer; transition: background-color 0.1s ease, border-color 0.1s ease; border: 1px solid transparent; color: white; text-shadow: 1px 1px 2px rgba(0,0,0,0.7); font-size: 12px; user-select: none; z-index: 5; } .shortcut:hover { background-color: rgba(0, 0, 128, 0.3); border: 1px dotted rgba(255, 255, 255, 0.7); } .shortcut.selected { background-color: rgba(0, 0, 128, 0.5); border: 1px dotted white; } .shortcut img { width: 32px; height: 32px; display: block; margin: 0 auto 5px auto; pointer-events: none; } .shortcut span { word-wrap: break-word; display: block; pointer-events: none; } .shortcut.icon-dragging { opacity: 0.7; border: 1px dashed white; z-index: 105; cursor: grabbing; }
#about-me-icon { top: 10px; left: 10px; } #projects-icon { top: 100px; left: 10px; } #snake-icon { top: 200px; left: 10px; }
.window { display: none; flex-direction: column; position: absolute; width: 450px; height: 350px; min-width: 150px; min-height: 100px; background-color: #c0c0c0; border: 1px solid #ffffff; border-right-color: #808080; border-bottom-color: #808080; box-shadow: 1px 1px 0 #000000; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; overflow: hidden; } .window.show { display: flex; } .window.minimized { display: none; } .window.maximized { top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; transform: none !important; border: none; box-shadow: none; } .window.maximized .resizer { display: none; } .window.maximized .window-title-bar { cursor: default; }
#snake-window { width: 360px; height: 430px; } #notepad-window { width: 500px; height: 400px; }
#settings-window { width: 400px; height: 250px; min-height: 200px; }
.window-title-bar { background: linear-gradient(to right, #000080, #1084d0); color: white; padding: 2px 2px 2px 3px; font-weight: bold; cursor: grab; display: flex; justify-content: space-between; align-items: center; height: 20px; flex-shrink: 0; font-size: 11px; user-select: none; } .window-title-bar:active { cursor: grabbing; } .window-title { flex-grow: 1; padding-left: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; } .window-controls { display: flex; align-items: center; } .minimize-button, .maximize-button, .close-button { background-color: #c0c0c0; color: black; border: 1px solid #ffffff; border-right-color: #808080; border-bottom-color: #808080; box-shadow: 1px 1px 0 #000000; font-family: 'Tahoma', 'Arial', sans-serif; font-weight: bold; cursor: pointer; padding: 0; margin: 0; font-size: 10px; line-height: 12px; height: 14px; width: 16px; margin-left: 2px; display: flex; align-items: center; justify-content: center; } .minimize-button:active, .maximize-button:active, .close-button:active { border: 1px solid #808080; border-right-color: #ffffff; border-bottom-color: #ffffff; box-shadow: none; background-color: #b0b0b0; padding: 1px 0 0 1px; }
.window-content { padding: 0; flex-grow: 1; overflow: hidden; background-color: white; border: 1px solid #808080; border-right-color: #ffffff; border-bottom-color: #ffffff; margin: 2px; font-size: 11px; line-height: 1.4; box-sizing: border-box; display: flex; flex-direction: column; }
.system-info { background-color: #ffffff; padding: 15px; overflow: auto; display: block; } .system-info h2 { margin-top: 0; margin-bottom: 15px; font-size: 1.2em; border-bottom: 1px solid #c0c0c0; padding-bottom: 5px; } .system-info .os-logo { float: right; margin-left: 15px; margin-bottom: 10px; width: 48px; height: 48px; } .system-info .info-section { margin-bottom: 15px; line-height: 1.5; } .system-info .info-section span { font-weight: bold; display: inline-block; width: 110px; } .system-info .timestamp { margin-top: 20px; padding-top: 10px; border-top: 1px solid #c0c0c0; font-size: 10px; color: #555; clear: both; }
.snake-game-content { display: flex; flex-direction: column; align-items: center; background-color: #c0c0c0; padding: 5px; overflow: hidden; height: 100%; position:relative; } .game-header { font-weight: bold; margin-bottom: 5px; color: black; font-size: 12px; } #snake-canvas { border: 2px inset #808080; background-color: #dddddd; flex-shrink: 0; margin-bottom: 5px; } .game-message { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(0, 0, 0, 0.7); color: white; padding: 15px 25px; border-radius: 5px; font-size: 1.5em; text-align: center; z-index: 5; } .game-message.show { display: block; }
.notepad-content { padding: 0; overflow: hidden; background-color: #ffffff; } .notepad-menu { position: relative; background-color: #c0c0c0; padding: 2px 2px 1px 2px; border-bottom: 1px solid #808080; box-shadow: 0 1px 1px #ffffff inset; flex-shrink: 0; height: 21px; user-select: none; } .notepad-menu ul { list-style: none; margin: 0; padding: 0; display: flex; } .notepad-menu li { padding: 2px 6px; margin-right: 1px; cursor: default; font-size: 11px; } .notepad-menu li:hover { background-color: #000080; color: white; } .notepad-menu > ul#notepad-file-dropdown { display: none !important; position: absolute; top: 100%; left: 0; min-width: 140px; background-color: #c0c0c0; border: 1px solid #ffffff; border-right-color: #808080; border-bottom-color: #808080; box-shadow: 1px 1px 2px rgba(0,0,0,0.5); z-index: 10; padding: 2px; list-style: none; margin: 0; margin-left: 2px; } .notepad-menu > ul#notepad-file-dropdown.visible { display: block !important; } .notepad-menu-dropdown li { padding: 4px 10px 4px 20px; font-size: 11px; cursor: default; white-space: nowrap; } .notepad-menu-dropdown li:hover { background-color: #000080; color: white; } .notepad-menu-dropdown li.separator { height: 1px; background-color: #808080; border-bottom: 1px solid #ffffff; margin: 3px 1px; padding: 0; } .notepad-textarea { flex-grow: 1; width: 100%; border: 1px solid #808080; outline: none; resize: none; padding: 5px; margin: 0; font-family: 'Consolas', 'Courier New', monospace; font-size: 13px; line-height: 1.4; color: #000000; background-color: #ffffff; box-sizing: border-box; border-top: 1px solid black; border-left: 1px solid black; }
.settings-content { display: block; padding: 15px; overflow: auto; background-color: #c0c0c0; } .settings-content h3 { margin-top: 0; margin-bottom: 15px; font-size: 1.1em; border-bottom: 1px solid #808080; padding-bottom: 3px; font-weight: bold;} .setting-item { margin-bottom: 10px; display: flex; align-items: center; font-size: 11px; } .setting-item label { margin-right: 10px; width: 100px; } #setting-bgcolor { cursor: pointer; border: 1px solid #808080; height: 22px; } #setting-serial { padding: 2px 4px; border: 1px inset #808080; font-size: 11px; width: 150px; margin-right: 10px; /* Space before button */ }
.setting-feedback { display: none; /* Hidden by default */ margin-left: 5px; /* Reduced margin */ font-size: 10px; font-weight: bold; } .setting-feedback.invalid { display: inline; color: #CC0000; }
#activate-serial-button { padding: 1px 6px; font-size: 11px; background-color: #c0c0c0; border: 1px solid #ffffff; border-right-color: #808080; border-bottom-color: #808080; box-shadow: 1px 1px 1px #000000; cursor: pointer; } #activate-serial-button:active { border: 1px solid #808080; border-right-color: #ffffff; border-bottom-color: #ffffff; box-shadow: none; padding: 2px 5px 0px 7px; }
.resizer { position: absolute; width: 12px; height: 12px; z-index: 2; } .resizer-n { top: -6px; left: 0; right: 0; height: 12px; width: auto; cursor: n-resize; } .resizer-ne { top: -6px; right: -6px; width: 12px; height: 12px; cursor: ne-resize; z-index: 3; } .resizer-e { top: 0; bottom: 0; right: -6px; width: 12px; height: auto; cursor: e-resize; } .resizer-se { bottom: -6px; right: -6px; width: 12px; height: 12px; cursor: se-resize; z-index: 3; } .resizer-s { bottom: -6px; left: 0; right: 0; height: 12px; width: auto; cursor: s-resize; } .resizer-sw { bottom: -6px; left: -6px; width: 12px; height: 12px; cursor: sw-resize; z-index: 3; } .resizer-w { top: 0; bottom: 0; left: -6px; width: 12px; height: auto; cursor: w-resize; } .resizer-nw { top: -6px; left: -6px; width: 12px; height: 12px; cursor: nw-resize; z-index: 3; }
#start-button { background-color: #c0c0c0; border: 1px solid #ffffff; border-right-color: #808080; border-bottom-color: #808080; box-shadow: 1px 1px 0 #000000; padding: 2px 6px; margin-right: 4px; font-weight: bold; font-size: 11px; cursor: pointer; display: flex; align-items: center; height: 24px; user-select: none; } #start-button:active, #start-button.active { border: 1px solid #808080; border-right-color: #ffffff; border-bottom-color: #ffffff; background-color: #e0e0e0; box-shadow: none; padding: 3px 5px 1px 7px; } #start-button img { width: 16px; height: 16px; margin-right: 4px; } #taskbar-items { flex-grow: 1; height: 100%; display: flex; align-items: center; overflow: hidden; padding: 0 2px; } .taskbar-button { background-color: #c0c0c0; border: 1px solid #ffffff; border-right-color: #808080; border-bottom-color: #808080; box-shadow: 1px 1px 0 #000000; padding: 2px 8px; margin: 0 2px; font-size: 11px; height: 22px; line-height: 16px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; user-select: none; } .taskbar-button.active { border: 1px solid #808080; border-right-color: #ffffff; border-bottom-color: #ffffff; background-color: #e0e0e0; box-shadow: none; font-weight: bold; padding: 3px 7px 1px 9px; } #taskbar-clock { border: 1px solid #808080; border-right-color: #ffffff; border-bottom-color: #ffffff; padding: 2px 8px; margin-right: 2px; font-size: 11px; height: 22px; line-height: 18px; min-width: 70px; text-align: center; user-select: none; }
#start-menu { display: none; position: absolute; bottom: 30px; left: 0; width: 180px; background-color: #c0c0c0; border: 1px solid #ffffff; border-right-color: #808080; border-bottom-color: #808080; box-shadow: 2px 2px 3px rgba(0,0,0,0.4); padding: 2px; z-index: 101; user-select: none; list-style: none; margin: 0; } #start-menu.show { display: block; } #start-menu > li { padding: 0; margin: 0; position: relative; } #start-menu > li > span, #start-menu > .start-menu-item { display: block; padding: 4px 10px 4px 25px; font-size: 11px; cursor: default; white-space: nowrap; } #start-menu > li:hover > span, #start-menu > .start-menu-item:hover { background-color: #000080; color: white; } .start-menu-separator { height: 1px; background-color: #808080; border-bottom: 1px solid #ffffff; margin: 3px 1px; padding: 0; list-style: none; }
.start-menu-item ul.submenu, li.has-submenu ul.submenu { list-style: none; margin: 0; padding: 2px; display: none; position: absolute; left: 100%; top: -3px; width: 160px; background-color: #c0c0c0; border: 1px solid #ffffff; border-right-color: #808080; border-bottom-color: #808080; box-shadow: 2px 2px 3px rgba(0,0,0,0.4); z-index: 102; } .start-menu-item:hover > ul.submenu, li.has-submenu:hover > ul.submenu { display: block; } .submenu-item { list-style: none; margin: 0; padding: 4px 10px 4px 20px; font-size: 11px; cursor: default; white-space: nowrap; display: block; } .submenu-item:hover { background-color: #000080; color: white; } .submenu-item.disabled { color: #808080; background-color: #c0c0c0 !important; cursor: default; }
/* === Feedback Animations === */
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-3px); } 40%, 60% { transform: translateX(3px); } 100% { transform: translateX(0); } }
/* Apply shake to body for full screen effect */
body.screen-shake { animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes rainbowRotate { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }
#desktop.rainbow-bg { animation: rainbowRotate 10s linear infinite; }