* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    color: #000;
    font-family: "MS PGothic", "MS Pゴシック", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 14px;
}

#desktop {
    position: absolute;
    inset: 0 0 32px;
}

.desktop-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    width: 75px;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px;
    border-radius: 2px;
    color: #fff;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
    background: rgba(0, 0, 128, 0.4);
    outline: none;
}

.desktop-icon-image {
    width: 32px;
    height: 32px;
    background: url("https://www.google.com/s2/favicons?domain=discord.com&sz=128") center / contain no-repeat;
    image-rendering: pixelated;
}

.desktop-icon-label {
    padding: 2px 4px;
    border-radius: 2px;
    color: #fff;
    font-size: 14px;
    text-shadow: 1px 1px 1px #000;
}

.desktop-icon:focus-visible .desktop-icon-label,
.desktop-icon:hover .desktop-icon-label {
    background: #000080;
}

.window {
    position: absolute;
    top: 50px;
    left: 100px;
    min-width: 300px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #000 #000 #dfdfdf;
    box-shadow: 1px 1px 0 #000;
    z-index: 10;
}

.title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 5px;
    background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
    color: #fff;
    cursor: move;
    font-size: 14px;
    font-weight: bold;
}

.title-bar-text {
    padding-left: 3px;
}

.title-bar-controls {
    display: flex;
    gap: 2px;
}

.btn,
.win95-btn,
#start-btn {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    cursor: pointer;
    font-family: inherit;
}

.btn {
    display: flex;
    width: 16px;
    height: 14px;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 10px;
    line-height: 8px;
}

.btn:active,
.win95-btn:active,
#start-btn:active {
    border-color: #000 #fff #fff #000;
}

.window-content {
    min-height: 150px;
    padding: 15px;
    background: #c0c0c0;
}

.window-content h1 {
    margin-bottom: 15px;
    color: #000080;
    font-size: 20px;
}

.window-content p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.window-content a {
    color: #000080;
}

.button-container {
    margin-top: 20px;
    text-align: center;
}

.win95-btn {
    min-width: 80px;
    padding: 5px 20px;
    font-size: 16px;
}

#taskbar {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: 32px;
    align-items: center;
    padding: 2px;
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
}

#start-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 5px;
    padding: 2px 8px;
    font-size: 16px;
    font-weight: bold;
}

.start-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("a.png") center / contain no-repeat;
    image-rendering: pixelated;
}

#start-menu {
    position: fixed;
    z-index: 1001;
    bottom: 32px;
    left: 0;
    display: flex;
    width: 200px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
}

#start-menu[hidden],
.window[hidden] {
    display: none;
}

.start-menu-sidebar {
    display: flex;
    width: 25px;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-orientation: mixed;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.start-menu-items {
    flex: 1;
    padding: 2px;
}

.menu-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    text-decoration: none;
}

.menu-item:hover,
.menu-item:focus-visible {
    background: #000080;
    color: #fff;
    outline: none;
}

.menu-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    image-rendering: pixelated;
}

.menu-icon-welcome {
    background-image: url("s.png");
}

.menu-icon-discord {
    background-image: url("https://www.google.com/s2/favicons?domain=discord.com&sz=32");
}

@media (max-width: 600px) {
    .window {
        top: 110px;
        left: 10px;
        max-width: calc(100vw - 20px);
    }
}
