:root {
    --desktop-bg: rgb(3, 128, 132);
    --win-gray: rgb(192, 192, 192);
    --win-blue: rgb(0, 0, 128);
    --win-dark: rgb(64, 64, 64);
    --win-mid: rgb(128, 128, 128);
    --win-light: white;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--desktop-bg);
    font-family: "MS Sans Serif", Arial, sans-serif;
}

.desktop {
    height: calc(100vh - 42px);
    padding: 24px 16px;

    display: grid;
    grid-template-columns: 120px;
    grid-auto-rows: 110px;
    gap: 12px;
}

.desktop-icon {
    width: 100px;
    height: 100px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 13px;

    cursor: pointer;
    user-select: none;

    border: 0;
    background: transparent;
    font-family: "MS Sans Serif", Arial, sans-serif;
}

.desktop-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    image-rendering: pixelated;
    margin-bottom: 6px;
}

.desktop-icon span {
    padding: 2px 4px;
    text-shadow: 1px 1px 1px black;
}

.desktop-icon:hover span {
    background-color: var(--win-blue);
    outline: 1px dotted white;
}

.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;

    width: 100%;
    height: 42px;
    padding: 4px;

    display: flex;
    align-items: center;
    gap: 6px;

    background-color: var(--win-gray);
    border-top: 2px solid var(--win-light);
}

.start-button,
.taskbar-window,
.clock {
    height: 30px;

    display: flex;
    align-items: center;

    color: black;
    text-decoration: none;
    background-color: var(--win-gray);
    font-size: 13px;
}

.start-button {
    padding: 0 12px;
    gap: 6px;

    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-dark);
    border-bottom: 2px solid var(--win-dark);
}

.start-button:active,
.taskbar-window.active {
    border-top: 2px solid var(--win-dark);
    border-left: 2px solid var(--win-dark);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
}

.windows-logo {
    font-size: 14px;
}

.taskbar-window {
    min-width: 120px;
    padding: 6px 12px;

    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-dark);
    border-bottom: 2px solid var(--win-dark);
}

.clock {
    margin-left: auto;
    padding: 6px 12px;

    border-top: 2px solid var(--win-mid);
    border-left: 2px solid var(--win-mid);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
}

.shortcut-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    body {
        overflow: auto;
        padding-bottom: 42px;
    }

    .desktop {
        height: auto;
        min-height: calc(100vh - 42px);
        grid-template-columns: repeat(2, 96px);
        grid-auto-rows: 96px;
        gap: 8px;
        padding: 16px 8px;
    }

    .desktop-icon {
        width: 86px;
        height: 86px;
        font-size: 12px;
    }

    .desktop-icon img {
        width: 48px;
        height: 48px;
    }

    .taskbar-window {
        display: none;
    }

    .taskbar-window.active {
        display: flex;
        min-width: 0;
        flex: 1;

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .start-button {
        padding: 0 8px;
    }

    .clock {
        padding: 6px 8px;
    }
}
