body {
    background-color: #008080;
    font-family: 'MS Sans Serif', Geneva, sans-serif;
    color: black;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 100vh;
    user-select: none;
    cursor: default;
}

.window {
    background-color: #C0C0C0;
    width: 300px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #FFFFFF, 4px 4px 0px #808080;
    position: absolute;
    cursor: default;
    transition: box-shadow 0.1s ease;
    z-index: 1;
}

.window.active {
    z-index: 10;
    box-shadow: 2px 2px 0px #FFFFFF, 4px 4px 0px #808080, 0 0 0 1px #000;
}

.title-bar {
    background: linear-gradient(to right, #000080, #0000FF);
    color: white;
    padding: 2px 5px;
    font-weight: bold;
    text-align: left;
    height: 20px;
    line-height: 20px;
    border-bottom: 2px solid #FFFFFF;
    box-shadow: inset -1px -1px 0px #000, inset 1px 1px 0px #808080;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.window:not(.active) .title-bar {
    background: linear-gradient(to right, #808080, #A0A0A0);
}

.title-bar button {
    background-color: #C0C0C0;
    border: 1px solid #000;
    width: 18px;
    height: 18px;
    font-weight: bold;
    color: black;
    cursor: pointer;
    display: inline-block;
    line-height: 16px;
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 12px;
    box-shadow: inset -1px -1px 0px #808080, inset 1px 1px 0px #FFFFFF;
    transition: all 0.1s ease;
}

.title-bar button:hover {
    background-color: #FF0000;
    color: white;
    box-shadow: inset -1px -1px 0px #800000, inset 1px 1px 0px #FF8080;
}

.title-bar button:active {
    box-shadow: inset 1px 1px 0px #800000, inset -1px -1px 0px #FF8080;
}

.content {
    padding: 10px;
    position: relative;
    background-color: #C0C0C0;
    box-shadow: inset 1px 1px 0px #FFFFFF, inset -1px -1px 0px #808080;
    min-height: 100px;
}

.content p {
    margin: 0 0 40px 0;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.button {
    background-color: #C0C0C0;
    border: 2px outset #C0C0C0;
    padding: 2px 10px;
    cursor: pointer;
    display: inline-block;
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    box-shadow: 1px 1px 0px #FFFFFF, -1px -1px 0px #808080;
    transition: all 0.1s ease;
    min-width: 50px;
    text-align: center;
}

.button:hover {
    background-color: #D4D0C8;
}

.button:active {
    border: 2px inset #C0C0C0;
    box-shadow: inset 1px 1px 0px #808080, inset -1px -1px 0px #FFFFFF;
}

.taskbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 32px;
    background-color: #C0C0C0;
    border-top: 2px outset #C0C0C0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px;
    box-sizing: border-box;
    box-shadow: 0 -1px 0 0 #FFFFFF, 0 -2px 0 0 #808080;
    z-index: 1000;
    gap: 2px;
}

.taskbar-left {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.taskbar-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.taskbar-divider {
    width: 2px;
    height: 24px;
    background-color: #808080;
    border-left: 1px solid #FFFFFF;
    margin: 0 2px;
    flex-shrink: 0;
}

.taskbar-buttons {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.start-button {
    background-color: #C0C0C0;
    border: 2px outset #C0C0C0;
    padding: 4px 8px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    font-size: 11px;
    transition: all 0.05s ease;
    height: 24px;
    box-sizing: border-box;
    line-height: 1;
}

.start-button img {
    margin-right: 4px;
    width: 16px;
    height: 16px;
}

.start-button:hover {
    background-color: #D4D0C8;
}

.start-button:active {
    border: 2px inset #C0C0C0;
    box-shadow: inset 1px 1px 0px #808080, inset -1px -1px 0px #FFFFFF;
    padding: 5px 7px 3px 9px;
}

.clock {
    font-weight: normal;
    padding: 2px 6px;
    font-size: 11px;
    background-color: #C0C0C0;
    border: 1px inset #C0C0C0;
    box-shadow: inset 1px 1px 0px #808080, inset -1px -1px 0px #FFFFFF;
    min-width: 70px;
    text-align: center;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
}

.globe-icon {
    display: inline-block;
    width: 64px;
    height: 64px;
    vertical-align: middle;
    background-image: url('img/globe.gif');
    background-size: cover;
    margin-right: 5px;
}

#desktop {
    position: relative;
    width: 100vw;
    height: calc(100vh - 32px);
    background-color: #008080;
    display: flex;
    align-items: flex-start;
    padding: 20px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
    cursor: pointer;
    text-align: center;
    color: white;
    font-family: 'MS Sans Serif', Geneva, sans-serif;
    padding: 2px;
    border-radius: 0;
    transition: all 0.1s ease;
    position: relative;
}

.desktop-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.desktop-icon.selected {
    background-color: rgba(0, 0, 255, 0.3);
    border: 1px dashed #FFFFFF;
}

.desktop-icon img {
    margin-bottom: 5px;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
    transition: transform 0.1s ease;
}

.desktop-icon:hover img {
    transform: scale(1.05);
}

.desktop-icon div {
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 80px;
    word-wrap: break-word;
}
