:root {
    --primary-text-col: rgb(27, 27, 27);
    --primary-text-col-hover: rgb(142, 112, 67);
    --primary-text-col-contrast: rgb(244, 244, 244);
    
    --window-col: rgb(237, 224, 204);
    --window-handle-col: rgb(224, 207, 181);
    --window-radius: 8px;
}

body {
    margin: 0; 
    font-family: 'Poppins'; 
    color: var(--primary-text-col); 
    
    height: 100vh;
    background-image: url(./images/background1.png); 
    background-size: cover; 
}

a {
    color: var(--primary-text-col);
}

a:hover {
    color: var(--primary-text-col-hover);
}

.top-bar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0.25rem 0.5rem; 
    
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--primary-text-col-contrast);

    position: fixed;
    width: 100vw;
    box-sizing: border-box;
    
    div {
        display: flex;
        gap: 0.5rem;
    }

    img {
        width: 24px; 
        height: 24px; 
        border-radius: 100px;
    }
    
    p {
        margin: 0;
    }
    
    #welcomeopen {
        cursor: pointer;
    }
}

.desktop-apps {
    display: grid;
    position: absolute;
    top: 3rem;
    gap: 1.5rem;
}

.app-icon {
    display: grid;
    text-align: center;
    padding: 0 1rem;
    width: fit-content;
    
    filter: drop-shadow(0 0 7px var(--primary-text-col-contrast));

    img {
        width: 4rem;
        height: 4rem;
    }

    p {
        margin: 0;
        color: var(--primary-text-col-contrast);
        font-size: 0.75rem;
    }
}

.window {
    display: none;
    flex-direction: column;

    background-color: var(--window-col);
    
    width: 400px; 
    border-radius: var(--window-radius);
    
    position: absolute; 
}

.window-content {
    padding: 1rem;
    
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    h1, p {
        margin-bottom: 0;
    }

    img {
        width: 256px; 
        height: 256px; 
        object-fit: cover;
    }
}

.handle {
    background-color: var(--window-handle-col);
    margin: 0;
    padding: 0 0.25rem;
    
    border-top-left-radius: var(--window-radius);
    border-top-right-radius: var(--window-radius);

    i {
        font-size: 0.85rem;
        cursor: pointer;
    }

    i:hover {
        color: var(--primary-text-col-hover);
    }
}

#welcome {
    display: flex;
}

.editable-text {
    border-left: 7px solid transparent;
    padding: 0 0.5rem;
}

.editable-text:hover {
    border-color: grey;
}

.editable-text:focus, .editable-text:focus:hover {
    outline: none;
    border-left-color: black;
}


