* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    margin: 0px 0px 1px 0px;
    /* the extra 1px allows the iOS inner/outer check to work */
    background-color: rgb(0, 0, 0);
    background-image: url(bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

#content {
    margin: 0 auto;
    overflow: hidden;
}

#content canvas {
    display: block;
    margin: 0 auto;
}

@media (max-width: 1022px) {
    #content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

@media (min-width: 1023px) {
    body {
        width: 100%;
        min-height: 100vh;
        background-attachment: fixed;
    }

    #content {
        position: relative;
        width: min(1024px, 100vw);
        height: min(768px, 100vh);
        max-width: 1024px;
        max-height: 768px;
        flex-shrink: 0;
    }

    #content canvas {
        max-width: 1024px;
        max-height: 768px;
    }
}

#orientation {
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(rotate-device.png);
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgb(0, 0, 0);
    z-index: 999;
    display: none;
}

#game-title {
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@font-face {
    font-family: "GameFont";
    src: url("fonts/gamefont.ttf");
}