:root {
    --safe-top: env(safe-area-inset-top);
    --safe-right: env(safe-area-inset-right);
    --safe-bottom: env(safe-area-inset-bottom);
    --safe-left: env(safe-area-inset-left);
}

html {
    -ms-touch-action: auto;
}

body,
canvas,
div {
    display: block;
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.bg {
    background-image: url('./assets/bg_game2.jpg');
    height: 10%;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0;
    /* <-- Apparently some margin are still there even though it's hidden */
}

body {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    border: 0;
    margin: 0;

    cursor: default;
    color: #888;
    background: linear-gradient(#8badc0, #0a1021);

    text-align: center;
    font-family: Helvetica, Verdana, Arial, sans-serif;

    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
}

canvas {
    background-color: rgba(0, 0, 0, 0);
}

.game__inner,
.game__canvas {
    width: 100%;
    height: 100%;
}

/* -------------------- New Style from Ivans ---------- */

.header {
    display: none;
}
.footer {
    display: none;
}
.game {
    width: 100vw;
    height: 100vh;
    min-width: 310px;
    min-height: 510px;
}

@media screen and (min-aspect-ratio: 0.751),
@media screen and (orientation:landscape) {
   .header {
        display: block;
        margin-top: 20px;
        margin-bottom: 14px;
    }
    .game {
        width: 60vh;
        height: 85vh;
    }
    .footer {
        margin-top: 15px;
        display: block;
    }
}
