html {
    -ms-touch-action: none;
}

body,
canvas,
div {
    display: block;
    outline: none;
    -webkit-tap-highlight-color: rgba(39, 7, 1, 1);
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    -webkit-tap-highlight-color: rgba(39, 7, 1, 1);
}

/* 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 {
    position: absolute;
    top: 2px;
    left: 0;
    width: 100%;
    height: 101%;
    padding: 0;
    border: 0;
    margin: 0;
    cursor: default;
    text-align: center;
    font-family: Helvetica, Verdana, Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

#Cocos2dGameContainer {
    position: absolute;
    margin: 0;
    overflow: hidden;
    left: 0px;
    top: 0px;
    display: -webkit-box;
    -webkit-box-orient: horizontal;
    -webkit-box-align: center;
    -webkit-box-pack: center;
}

canvas {
    background-color: rgba(39, 7, 1, 1);
}

a:link,
a:visited {
    color: #666;
}

a:active,
a:hover {
    color: #666;
}

p.header {
    font-size: small;
}

p.footer {
    font-size: x-small;
}

.container {
    margin-top: 7rem;
    margin-bottom: 7rem;
    display: grid;
    grid-template-columns: repeat(2, auto);
    place-items: center;
    gap: 7rem;
}

@media (min-width: 600px) {
    .container {
        grid-template-rows: repeat(2, auto);
        grid-template-columns: repeat(3, auto);
    }
}

#GameDiv,
#Cocos3dGameContainer,
#GameCanvas {
    width: 100.2%;
    height: 100%;
    margin-left: -0.1%;
}

#mask {
    position: absolute;
    z-index: 9999;
    background-color: rgb(19, 19, 19);
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: none;
    opacity: 0.5;
}

#image {
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(./swipe.gif);
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000;
    z-index: 99999;
    opacity: 1;
}

#loadingIcon {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -15px;
    width: 31px;
    height: 30px;
    background: url(./waiting.png);
    background-position: center;
    background-size: cover;
    z-index: 99999;
    opacity: 1;
}

#handImage {
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(./touch.gif);
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(20, 20, 20, 0.7);
    display: none;
    opacity: 1;
    background-size: 20%;
}

#enterFullscreen {
    border: none;
    margin: 0 auto;
    position: absolute;
    background: url(./enterFullscreenBlank.png);
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.0);
    background-size: contain;
    display: block;
    opacity: 1;
}

.enterFullScreen_Portrait {
    top: 2%;
    left: 45%;
    width: 9vmin;
    height: 9vmin;
    background-size: 80%;
}

.enterFullScreen_Landscape {
    top: 45%;
    left: 2%;
    width: 9vmin;
    height: 9vmin;
    background-size: 80%;
}

#exitFullscreen {
    border: none;
    margin: 0 auto;
    position: absolute;
    background: url(./exitFullscreenBlank.png);
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.0);
    background-size: contain;
    display: none;
    opacity: 1;
}

.exitFullScreen_Portrait {
    top: 2%;
    left: 45%;
    width: 9vmin;
    height: 9vmin;
    background-size: 100%;
}

.exitFullScreen_Landscape {
    top: 45%;
    left: 2%;
    width: 9vmin;
    height: 9vmin;
    background-size: 40%;
}

#splashGamePortrait {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vmax;
    height: 100vmin;
    background: #000000 url(./splashscreen.jpg) no-repeat center center;
    background-size: 100%;
}

.splashPortraitForGamePortrait {
    transform-origin: 50% 28.125%;
    transform: rotate(270deg);
}

#splash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vmax;
    height: 100vmin;
    background: #171717 url(splashscreen.jpg) no-repeat center center;
    background-size: 100%;
}

.splashPortrait {
    transform-origin: 28.125% 50%;
    transform: rotate(90deg);
}