* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    touch-action: manipulation;
}

body {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 1;
}

.hotspot {
    fill: transparent;
    cursor: pointer;
    transition: fill 0.3s ease;
}

.hotspot:hover {
    fill: rgba(255, 255, 255, 0.05);
}

.hotspot:focus {
    outline: none;
}

.window {
    position: fixed;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    cursor: default;
}

#artWindow {
    background-image: url('../assets/images/desktop/folder-window-unfocused.png');
}

#terminalWindow {
    background-image: url('../assets/images/desktop/terminal-window-unfocused.png');
}

.window.open {
    display: block;
}

.window.focused {
    z-index: 1500;
}

.window.focused#artWindow {
    background-image: url('../assets/images/desktop/folder-window.png');
}

.window.focused#terminalWindow {
    background-image: url('../assets/images/desktop/terminal-window.png');
}

.window-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    opacity: 0;
}


.window-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: none;
    z-index: 998;
    pointer-events: none;
}

.window-backdrop.show {
    display: block;
    pointer-events: none;
}
