/* prevent weird touch highlights https://stackoverflow.com/questions/21003535/ */
* {
    -webkit-tap-highlight-color: transparent;
}

.no-select {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* hidden elements should be hidden regardless of their display style */
[hidden] { display: none !important; }

/* default to width/height including padding and border */
* { box-sizing: border-box; }

/* crisp pixelart for images and backgrounds */
/* * {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
} */

/* prevent pull down to refresh page (and lose progress rip) */
body { overscroll-behavior-y: contain; }

html, body {
    overflow: hidden;

    margin: 0; padding: 0;
    width: 100%; height: 100%;

    /* pointer-events: none;
    cursor: pointer; */

    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    /* -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; */

    user-select: text;
}

#loading-container {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgb(0, 0, 0);

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    /* font-family: var(--caption-font-family); */
    text-transform: uppercase;
    font-size: xx-large;
    cursor: wait;
}

#full-container {
    position: absolute;

    width: 100%; height: 100%;

    left: 0; top: 0;
    /* left: 50%; top: 50%;
    transform: translate(-50%, -50%) scale(1); */

    background: black;
    --light: hsl(0 25% 15%);

    background-size: 16px 16px;
    background-image:
        linear-gradient(to right, var(--light) 1px, transparent 1px),
        linear-gradient(to bottom, var(--light) 1px, transparent 1px);
    background-position: center;
}

#safe-container {
    position: absolute;

    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
}
