/* Windows */
.window {
    position: absolute;

    background-color: #1258D2;
    /* border: .6vh solid #1258D2; */
    /* border-top-left-radius: 2%; */
    /* border-top-right-radius: 2%; */
    border-top-left-radius: .5vh;
    border-top-right-radius: .5vh;

    box-shadow: 
    /* Border box shadows */
        -.3vh .3vh 0 #0058EB,
        -.3vh -.3vh 0 #0058EB,
        .3vh -.3vh 0 #0058EB,
        .3vh .3vh 0 #0058EB,

        -.4vh .4vh 0 #00138C,
        -.4vh -.4vh 0 #00138C,
        .5vh -.4vh 0 #00138C,
        .5vh .4vh 0 #00138C,

    /* Window gradient box shadows */
        inset 0 .5vh 1vh #277dff,
        inset 0 1vh 1vh #0144D0,
        inset 0 1.5vh 1vh #0243b3,
        inset 0 2vh 0 #005BF2,
        inset 0 2.5vh 1vh #0055EA,
        inset 0 3vh 1vh #277dff;

    z-index: 1;
}

.active-window {
    z-index: 2;
}

.window > * {
    user-select: none;
}

.window > .window-areas {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    z-index: 1;
}

/* Window titlebar */
.window > .window-areas > .window-titlebar {
    width: 100%;
    height: 3vh;
    display: flex;
    align-items: center;
}

.window > .window-areas > .window-titlebar > .window-icon {
    height: 80%;
    margin-right: 1%;
    pointer-events: none;
}

.window > .window-areas > .window-titlebar > .window-title {    
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 1.5vh;
    font-weight: bold;
    text-align: left;
    width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    text-shadow: black .1vh .1vh;
}

.window > .window-areas > .window-titlebar > .window-buttons {
    height: 100%;
    display: flex;
    justify-content: right;
    align-self: center;
}

.window > .window-areas > .window-titlebar > .window-buttons > * {
    height: 100%;
    margin-right: 1%;
}

.window > .window-areas > .window-titlebar > .window-buttons > *:hover {
    filter: brightness(1.25);
}

/* Window menubar */
.window > .window-areas > .window-menubar {
    background-color: #ECE9D8;
    margin: 0;
    border-top: 1px solid #0144D0;
    border-bottom: 1px solid #7F9DB9;
    display: flex;
    flex-wrap: wrap;
}

.window > .window-areas > .window-menubar > * {
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5vh;
    color: black;
    padding: .5vh;
}

.window > .window-areas > .window-menubar > *:hover {
    background-color: #316AC5;
    color: white;
}

/* Window contents */
.window > .window-areas > .window-contents {
    width: 100%;
    height: calc(100% - 6vh - .2vh);
    background-color: white;
    margin: 0;
}

/* Notepad specific styling */
.window-notepad > .window-areas > .window-contents {
    font-family: "Lucida Console", Monaco, monospace;
    /* font-size: 2vh; */
    overflow: scroll;
    resize: none;
    text-wrap: nowrap;
    line-height: 1;
    user-select: none;
    border: none;
    padding: 0;
    outline: none;
    box-shadow: none;
}

.window-pictures > .window-areas > .window-contents {
    object-fit: contain;
    max-width: 100%;
    height: 95%;
    background-color: transparent;
}