@font-face {
    font-family: "PC";
    src: url("/images/ui/joystix monospace.otf");
    font-smooth: never;
}

p, h1, button, sub {
    font-family: "PC", monospace;
}

sub {
    color: white;
    font-size: x-small;
}

@keyframes appear {
    0% {
        transform: scale(0%);
    }

    100% {
        transform:scale(100%);
    }
}

.pixel {
    image-rendering: pixelated;
}

.window {
    animation: appear cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
    position: absolute;
    border: outset 4px white;
    background:rgb(219, 219, 219);
    text-align: center;

    padding:0;
    margin:0;

    max-width: 100vw;

    left:200px;
    top:200px;

    box-shadow: 4px 4px rgba(0,0,0,0.5), 0px 0px 4px rgba(0,0,0,0.5);
}

@media only screen and (max-width:800px) {
    .body {
        margin-top: 24px;
    }
}

.header {
    background-color: #4592b5;
    color: white;

    border: solid 4px rgb(219, 219, 219);

    display: flex;
    padding:3px;
    padding-bottom: 2px;

    touch-action: none;
}

.drag {
    cursor: move;
}

.header p {
    margin:0;
    padding:0;
    margin-left:4px;
    margin-right:auto;

    text-shadow: 2px 2px rgba(0,0,0,0.5);
}

.content {
    border: inset 4px white;
    max-width: calc(100vw - 24px);
}

button, button:hover {
    border: outset white 4px;
    background-color: rgb(219, 219, 219);
    color:black;

    text-align: center;

    box-shadow: 0px 0px 2px rgba(0,0,0,0.25);
}

.header button, .header button:hover {
    width: 18px;
    height: 18px;
    padding:0;
    margin:0;

    border: outset white 2px;
}

button:active {
    border: inset white 4px;
    background-color: lightgray;
}

.header button:active {
    border: inset white 2px;
}

body, html {
    background: linear-gradient(to right, #00000000, rgba(255, 255, 255, 0.15)), url("images/ui/wallpaper1.png");
    background-color: #63659e;
    overflow: hidden;
    width: 100vw;

    padding:0;
    margin:0;
    height: 100svh;
    max-height: 100svh;
}

.app {
    margin:4px;
    width:72px;
    display: grid;
    text-align: center;

    line-height: 5px;
}

.app:active {
    margin:2px;
    border: dotted 2px black;
    transform: translate(2px, 2px);
}

.icons {
    margin:4px;
    display: flex;
    flex-wrap: wrap;
}

@keyframes hue {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.rainbow {
    color:red;
    animation: hue infinite 2s linear;
}

nav {
    background-color: #dbdbdb;
    border-top: outset white 4px;

    position: absolute;

    width:100%;
    height: 32px;
    bottom:0;

    box-shadow: 0px 0px 4px rgba(0,0,0,0.5);

    /*z-index: 2147483647;*/
}

.taskbar {
    margin: 4px;
    max-height: 40px;

    filter: drop-shadow(1px 1px 2px rgba(0,0,0,1));
}