/* style.css - Global DNA */
@import url('https://fonts.googleapis.com/css2?family=MS+Sans+Serif:wght@400;700&display=swap');

:root {
    --desktop-bg: #008080;
    --window-bg: #c0c0c0;
    --window-border-light: #ffffff;
    --window-border-dark: #808080;
    --window-border-darker: #404040;
    --active-titlebar-start: #000080;
    --active-titlebar-end: #0040c0;
    --inactive-titlebar-start: #808080;
    --inactive-titlebar-end: #a0a0a0;
    --accent-red: #FA3E3E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'MS Sans Serif', sans-serif; 
    font-size: 11px; 
    background: var(--desktop-bg); 
    height: 100vh; 
    overflow: hidden; 
}

/* --- THE 3D BEVEL ENGINE --- */
.window, .win98-btn, .start-button, .taskbar-item {
    border: 2px outset var(--window-border-light);
    box-shadow: 1px 1px 0 #000;
}
.taskbar-item {
    margin-left: 5px;
}
.window-content, .address-bar, .ie-content, .tab-pane, .taskbar-item.active, .win98-btn:active {
    border: 2px inset var(--window-border-light);
    background: #fff;
}

/* --- CRT SCANLINE EFFECT --- */
.crt-effect::after {
    content: " "; display: block; position: absolute; top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 10000; background-size: 100% 3px, 3px 100%; pointer-events: none;
}

/* --- GLOBAL SCROLLBARS --- */
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: #dfdfdf; box-shadow: inset 1px 1px #808080; }
::-webkit-scrollbar-thumb { background: var(--window-bg); border: 2px outset #fff; }

#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 99999;
    /* Use flex to keep the loading bar at the bottom center */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.8s ease-in-out;
}

.splash-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.splash-logo {
    /* This makes the image cover the screen */
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* Use 'fill' if you want that authentic stretched look */
    position: absolute;
    top: 0;
    left: 0;
}

/* Class to trigger the fade out */
.boot-finished {
    opacity: 0;
    pointer-events: none;
}