html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    background-image: url('images/troll-face-background.jpg');
    background-size: cover;
    background-position: center;
}

.window {
    position: absolute;
    top: 100px;
    left: 100px;
    width: 250px;
    background-color: rgb(99, 99, 99);
    border: 2px solid rgb(99, 99, 99);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgb(30, 30, 30, 0.3);
    transition: transform 0.1s ease;
}

.window.held {
    transform: scale(1.03);
}

.hidden {
    display: none;
}

#window1 { width: 350px; top: 80px; left: 80px; }
#window2 { top: 80px; left: 350px; }
#window3 { top: 300px; left: 80px; }
#window4 { width: 600px; height: 400px; top: 300px; left: 350px; }


.window-titlebar {
    background-color: rgb(72, 72, 72);
    padding: 8px;
    cursor: move;
    border-radius: 6px 6px 0 0;
    font-weight: bold;
}

.window-content {
    padding: 16px;
}

#browserFrame {
    width: 100%;
    height: 300px;
}

#notepadText {
    resize: none;
    width: 100%;
}

.close-btn {
    cursor: pointer;
    padding: 0 6px;
}

#desktopIcons {
    position: fixed;
    top: 60px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.desktop-icon {
    width: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
}

.desktop-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

#idleOverlay {
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

#idleConfirmBox {
    position: static;
    width: 260px;
    text-align: center;
}

#idleConfirmBox .window-content p {
    margin-top: 0;
    margin-bottom: 16px;
}

#idleConfirmBox button {
    margin: 0 6px;
    padding: 6px 16px;
    cursor: pointer;
}

#clockDisplay {
    text-align: center;
    user-select: none;
}

#window2 .window-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#window2 input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    border: none;
    border-radius: 4px;
}

#window2 .calc-buttons {
    display: flex;
    gap: 6px;
}

#window2 .calc-buttons button {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 4px;
    background-color: rgb(140, 140, 140);
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#window2 .calc-buttons button:hover {
    background-color: rgb(160, 160, 160);
}

#calcResult {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    background-color: rgb(50, 50, 50);
    border-radius: 4px;
    padding: 10px;
    margin: 0;
    min-height: 1em;
}