html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Prevent scrolling */
    font-family: 'Pixelated MS Sans Serif', 'Arial'; /* Use the 98.css font */
    display: flex;
    flex-direction: column; /* Arrange desktop and taskbar vertically */
    background-color: #008080; /* Standard Windows 9x desktop color */
}

.desktop-background {
    flex-grow: 1; /* Occupy all available space */
    width: 100%;
    position: relative;
}

.taskbar {
    height: 38px; /* Slightly taller than default 98.css taskbar */
    background: linear-gradient(to bottom, #C0C0C0 0%, #808080 100%); /* Classic grey gradient */
    border-top: 2px solid #FFFFFF;
    box-shadow: inset 0 1px #808080;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px;
    z-index: 1000; /* Ensure taskbar is on top */
}

.taskbar-start-button {
    height: 100%;
    display: flex;
    align-items: center;
}

.start-button {
    background: #C0C0C0;
    border-top: 1px solid #FFFFFF;
    border-left: 1px solid #FFFFFF;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    padding: 3px 6px 3px 4px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    cursor: pointer;
    text-shadow: 1px 1px #000; /* Black shadow for white text */
    color: white; /* White text for Start button */
}

.start-button:active {
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #FFFFFF;
    border-bottom: 1px solid #FFFFFF;
    background: #C0C0C0; /* Keep background same on active */
    padding: 4px 5px 2px 5px; /* Adjust padding to make it look pressed */
}

.start-icon {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    image-rendering: pixelated; /* Ensures crisp pixel art */
}

.start-text {
    /* No additional styles needed, inherited from .start-button */
}

.taskbar-system-tray {
    height: 100%;
    display: flex;
    align-items: center;
    background: #C0C0C0;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #FFFFFF;
    border-bottom: 1px solid #FFFFFF;
    padding: 0 8px;
}

.time-display {
    font-size: 14px;
    color: #222;
}

.start-menu {
    position: absolute;
    bottom: 42px; /* Position above the taskbar (38px height + 4px gap) */
    left: 4px; /* Align with the start button */
    width: 200px;
    background: #C0C0C0;
    border-top: 1px solid #FFFFFF;
    border-left: 1px solid #FFFFFF;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.4); /* Add a subtle shadow */
    z-index: 999; /* Below taskbar, but above desktop */
}

.start-menu-header {
    background: linear-gradient(to right, #000080, #1084D0); /* Blue gradient for header */
    color: white;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #808080; /* Shadow line */
}

.start-menu-header::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('start_icon.png'); /* Use the same start icon */
    background-size: cover;
    margin-right: 8px;
    image-rendering: pixelated;
}

.start-menu-body {
    padding: 4px 0;
}

.start-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.start-menu li {
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.start-menu li:hover {
    background-color: #000080;
    color: white;
}

.start-menu li.separator {
    height: 1px;
    background-color: #808080;
    border-top: 1px solid #FFFFFF;
    margin: 4px 0;
    padding: 0;
}

.start-menu a {
    text-decoration: none;
    color: inherit; /* Inherit color from parent (white on hover) */
    display: flex;
    align-items: center;
    width: 100%; /* Make the entire li clickable */
}

.start-menu-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    image-rendering: pixelated;
}

