body {
    transition: 500ms;
    padding: 0px;
    margin: 0px;
    background-image: linear-gradient(to bottom, white, #BCD);
    background-repeat: no-repeat;
    max-height: 100%;
    user-select: none;
}
body>header {
    transition: 500ms;
    background-color: slategray;
    box-shadow: 0px 2px 4px #0007;
    color: white;
    font-family: consolas, monospace;
    font-size: 16pt;
    margin: 0px;
    padding: 4px;
}

body>.desktop>div
{
    display: inline;
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
}

body>div, nav {
    transition: 500ms;
    margin: 10px;
    padding: 8px;
    background-color: white;
    color: #111;
    border-radius: 4px;
    box-shadow: 0px 0px 4px #0007;
    overflow-y: auto;
    overflow-x: hidden;
}
body>.desktop>div>header {
    display: none;
}
nav a {
    text-decoration: none;
    color: whitesmoke;
    background-color: slategray;
    padding: 4px 10px 4px 10px;
    border-radius: 4px;
    font-family: 'Lucida Sans', Verdana;
    transition: 100ms;
}
nav a:hover:not(.this) {
    background-color: whitesmoke;
    color: slategray;
    border: 1px solid slategray;
    padding-left: 24px;
    padding-right: 24px;
}
nav a.this img {
    content: url("gfx/ico/folder-open.png");
}
nav a.this {
    background: none;
    font-weight: bold;
    color: blue;
    cursor: default;
}
header button {
    display: none;
}
p {
    border: none;
    border-top: 1px solid slategray;
    margin-bottom: 0px;
    user-select: text;
}
main p~img {
    max-width: 100%;
    border-radius: 4px;
}
body>.desktop>div>main {
    font-family: Arial, Helvetica, sans-serif;
}

body>.desktop>div>footer {
    border-top: 2px solid #CCC;
    padding: 4px;
    text-indent: 8px;
}

iframe {
    border:none;
}

@media (min-width:721px) {
    body {
        overflow: hidden;
        background-color: black;
        background-image: url("gfx/setup95.bmp");
        background-repeat: repeat;
    }
    body>header {
        font-style: italic;
        background: none;
        box-shadow: none;
        font-weight: bold;
        font-size: 32pt;
        text-shadow: -4px 4px 0px black;
    }
    nav {
        z-index: 1;
        background: none;
        border: none;
        position: absolute;
        width: 100px;
        max-height: 90%;
    }
    nav a {
        display: block;
        width: 64px;
        height: 96px;
        background: none;
        border: 1px solid gray;
        margin-bottom: 8px;
        text-align: center;
    }
    nav a.this {
        color: white;
        content: none;
        font-weight: normal;
    }
    nav a img, nav a.this img {
        width: 90%;
        content: none;
    }
    nav a:hover, nav a:not(.this):hover {
        transition: 0ms;
        display: block;
        width: 64px;
        height: 96px;
        background-color: black;
        color: white;
        margin-bottom: 8px;
        text-align: center;
    }
    nav a:hover img, nav a:not(.this):hover img {
        width: 90%;
    }
    button {
        border: 2px solid;
        color: #000;
        border-color: #CCC #CCC #444 #444;
        background-color: #AAA;
        box-shadow: 1px 1px 1px black;
        width: 100px;
        height: 32px;
    }
    button:active {
        border-color: #666 #666 #EEE #EEE;
        background-color: #AAA;
        padding-left: 4px;
    }
    header button.close {
        font-family: monospace;
        font-size: 14px;
        line-height: 0px;
        padding: 4px;
        content: url("gfx/ico/icon-close.png");
    }header button:active {
        padding-left: 2px;
        padding-bottom: 2px;
    }
    body>.desktop {
        position: absolute;
        z-index: 100;
        width: 0px;
        height: 0px;
        margin: 0px;
        padding: 0px;
        top: 0px;
        left: 0px;
        overflow: visible;
        background-color: transparent;
    }
    body>.desktop>div>header button {
        display: block;
        min-width: 20px;
        min-height: 20px;
        max-width: 20px;
        max-height: 20px;
        position: absolute;
        right: 4px;
        top: 1px;
    }
    body>.desktop>div {
        position: absolute;
        left: 64px;
        border: 2px solid;
        border-radius: 0px;
        border-color: #CCC #CCC #444 #444;
        background-color: #AAA;
        width: 720px;
        padding: 0px;
        overflow: hidden;
    }
    body>.desktop>div>header {
        display: block;
        background-color: #008;
        color: white;
        width: 100%;
        height: 16px;
        top: 0px;
        margin: 0px;
        padding: 4px;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: bold;
        cursor: grab;
    }
    body>.desktop>div>main {
        overflow-x: hidden;
        overflow-y: auto;
        height: 640px;
        padding: 8px;
    }
    body>.desktop>div>footer {
        border-top: 2px solid #CCC;
        padding: 4px;
        text-indent: 8px;
    }
    body>.desktop>div.ontop {
        position:absolute;
        z-index: 256;
        box-shadow: 2px 2px 0px black;
    }
    body>.desktop>div:not(.ontop)>header {
        background-color: #000;
        color: #999;
    }
}