/* Windows 98 Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
    font-size: 11px;
    background-color: #008080;
    color: #000;
    height: 100vh;
    overflow: hidden;
    user-select: none;
}

/* Desktop area */
.desktop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 28px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
}

/* Desktop Icons */
.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    padding: 4px;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
}

.desktop-icon:hover {
    border: 1px dotted #fff;
}

.desktop-icon:active {
    border: 1px dotted #000080;
}

.desktop-icon .icon-img {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 2px;
}

.desktop-icon .icon-label {
    color: #fff;
    font-size: 11px;
    text-shadow: 1px 1px 1px #000;
    word-wrap: break-word;
    max-width: 72px;
}

/* Win98 Window */
.win98-window {
    position: absolute;
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
    min-width: 200px;
}

.win98-window.hidden {
    display: none;
}

/* Title Bar */
.title-bar {
    background: #000080;
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    padding: 2px 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 18px;
}

.title-bar-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-left: 2px;
}

.title-bar-controls {
    display: flex;
    gap: 2px;
}

.title-bar-controls button {
    width: 16px;
    height: 14px;
    font-size: 11px;
    line-height: 1;
    padding: 0;
    background: #c0c0c0;
    border-top: 1px solid #dfdfdf;
    border-left: 1px solid #dfdfdf;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.title-bar-controls button:active {
    border-top: 1px solid #404040;
    border-left: 1px solid #404040;
    border-right: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
}

/* Window Body */
.window-body {
    padding: 8px;
    font-size: 11px;
    line-height: 1.5;
}

/* Sunken panel inside window */
.sunken-panel {
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
    box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #fff;
    background: #fff;
    padding: 8px;
}

/* Notepad Window (bio) */
.notepad-window {
    top: 40px;
    left: 120px;
    width: 380px;
    z-index: 10;
}

.notepad-window .window-body {
    padding: 4px;
}

.notepad-window .sunken-panel {
    min-height: 140px;
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

.notepad-window .sunken-panel a {
    color: #0000ff;
    text-decoration: underline;
}

.notepad-window .sunken-panel a:visited {
    color: #800080;
}

/* Buzzword popup windows */
.popup-window {
    width: 280px;
    z-index: 20;
}

.win98-window .title-bar {
    cursor: grab;
}

.win98-window .title-bar:active {
    cursor: grabbing;
}

.popup-window .window-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
}

.popup-window .popup-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.popup-window .popup-text {
    font-size: 11px;
    line-height: 1.5;
}

.popup-window .popup-btn-row {
    display: flex;
    justify-content: center;
    padding: 0 12px 10px;
}

/* Win98 Button */
.win98-btn {
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
    font-size: 11px;
    padding: 2px 16px;
    min-width: 75px;
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
    cursor: pointer;
}

.win98-btn:active {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid #dfdfdf;
    border-bottom: 2px solid #dfdfdf;
    box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px;
    z-index: 100;
}

.start-btn {
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 22px;
}

.start-btn:hover {
    background: #d4d4d4;
}

.start-btn:active {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid #dfdfdf;
    border-bottom: 2px solid #dfdfdf;
    box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
}

.start-logo {
    display: inline-block;
    vertical-align: middle;
}

.clock {
    font-size: 11px;
    padding: 2px 8px;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
    height: 22px;
    display: flex;
    align-items: center;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .desktop {
        padding: 8px;
        gap: 4px;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: flex-start;
        align-items: flex-start;
        height: auto;
        position: relative;
        bottom: auto;
    }

    .notepad-window {
        left: 8px;
        top: 150px;
        width: calc(100% - 16px);
    }

    .popup-window {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%);
        width: calc(100% - 32px);
        margin-left: 0 !important;
    }

    .desktop-icon {
        width: 64px;
    }

    .desktop-icon .icon-img {
        font-size: 28px;
    }
}
