
html, body {
    padding: 0;
    margin: 0;
    /* force hardware acceleration on certain devices */
    transform :  translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
    transform :  translateZ(0);
    -webkit-transform: translateZ(0);
    width : 100%;
    height : 100%;
    position : fixed;
    top: 0px;
    left: 0px;
    background-color: #000000;
    /* prevent browser scroll during gameplay (Yandex req 1.10.2) */
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
    /* prevent text selection (Yandex req 1.6.2.7) */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
canvas
{
    overflow: hidden;
    image-rendering : -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimized-contrast;
    image-rendering:  optimizeQuality;
    -ms-interpolation-mode : nearest-neighbour;
    -webkit-tap-highlight-color: transparent;
    -moz-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-transform: translateZ(0);
    -ms-touch-action: none;
    touch-action: none;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: 0;
}

#gameContainer {
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
    width: 100%;
    height: 100%;
}
#game {
    width: 100%;
    height: 100%;
}
@font-face {
    font-family: 'londrina';
    src: url('assets/fonts/LondrinaSolid-Regular.otf');
}
#div-gpt-ad-1409063445073-0{
    position: absolute;
    display : none;
    width:300px;
    height:250px;
    top: 605px;
    left: 391px;
}

/* Orientation warning overlay */
#orientation-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #8f28b0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.orientation-message {
    color: #ffffff;
    font-family: 'londrina', sans-serif;
    padding: 20px;
}
.orientation-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
    animation: rotate-hint 1.5s ease-in-out infinite;
}
.orientation-message p {
    font-size: 22px;
    line-height: 1.5;
    margin: 0;
}
@keyframes rotate-hint {
    0%   { transform: rotate(0deg); }
    50%  { transform: rotate(90deg); }
    100% { transform: rotate(0deg); }
}

/* Show warning on landscape mobile, hide game */
@media screen and (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
    #orientation-warning {
        display: flex;
    }
    #gameContainer {
        display: none;
    }
}
