html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

body {
    background-color: #c9ffcf;
    background-image: url(wallpaper.jpg);
    background-size: cover;
    background-position: center;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50px;
}

.container {
    border: solid;
    width: 256px;
    border-radius: 16px;
    position: absolute;
    padding: 16px;
}

.taskbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    z-index: 9999;
}

.taskbar p {
    margin: 0;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 48px) !important; /* Subtract taskbar height */
    border-radius: 0 !important;
}

.window {
    position: absolute;
    z-index: 9;
    display: flex;
    flex-direction: column;
    background-color: #ececec;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
    overflow: hidden;
    min-width: 300px;
    padding-bottom: 20px;
    top: calc(50% - 120px);
    left: calc(50% - 160px);
}

.windowheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    z-index: 10;
    background: linear-gradient(to bottom, #f6f6f6, #dedede);
    border-bottom: 1px solid #b5b5b5;
    user-select: none;
}

.window-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.controls {
    display: flex;
    gap: 8px;
}

.close {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: #ff5f56;
    cursor: pointer;
}

.minimize {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: #ffbd2e;
    cursor: pointer;
}

.maximize {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: #27c93f;
    cursor: pointer;
}

.window-title {
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
    margin: 0;
}

.icon {
    text-align: center;
    padding: 6px;
    width: fit-content;
}

.icon img {
    width: 64px;
    height: 64px;
    margin-bottom: 2px;
}

.appname {
    font-size: 14px;
    font-weight: 600;
    color: #4a4a4a;
    margin: 0;
}

.icon.selected {
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    outline: 1px dashed rgba(255, 255, 255, 0.4);
}

.window#minecraft {
    width: calc(100vw - 32px);
    height: calc(100vh - 96px);
    left: 16px;
    top: 16px;
}

.window#minecraft .window-content {
    margin: 6px;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    background-color: #fff;
}

.window#minecraft iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

#userInputField:focus {
    border-color: #007aff !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}
