﻿* { padding: 0; border: 0; margin: 0; box-sizing: border-box; }

html { 
    padding: 0;
    margin: 0;
    border: 0;

     -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -moz-user-select: -moz-none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    line-height: 1;
    height: 100%;
    font-size: initial;
    max-height: 150% !important;
    padding: 0;
    margin: 0;
    border: 0;
    vertical-align: baseline;
}

#debug-box { position: absolute; top: 30px; left: 30px; max-width: 40%; padding: 10px; z-index: 10000; background: #fff200; color: #000; }

.game-wrapper__iframebox_flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    align-items: center;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
    margin: 0;
    max-width: 100%;
    padding: 0;
    position: relative;
}

.game-wrapper__iframebox {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 100%!important;
    justify-content: center;
}

.game-wrapper__iframe {
    width: 100%;
    height: 100%;
    min-height: 100%;
    min-width: 100%;
    position: absolute; 
    bottom: 0;
    border: 0;
    outline: 0;
}

#game-outer-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    height: 100vh;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

#game-flex {
    -webkit-flex: 1 0 auto;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
}

#game-outer-wrapper {
    height: -webkit-fill-available;
}

#game-wrapper {
    width: 100%;
    height: 100%;
    position: fixed;
}

#game-holder {
    position: fixed;
    width: 100%;
    height: 100%;
    max-height: -webkit-fill-available;
}

#orientation-warning {
    height: 100%;
    width: 100%;
    display: none;
    overflow: hidden;
    background-color: black;
    position: fixed;
    inset: 0px;
    margin: auto;
    z-index: 2;
    background-image:url('../images/rotate_device_short.jpg');
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #fff2de;
}

#game-interface {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
}

#game-interface h2 {
    font-family: Courier, sans-serif;
    font-size: 48px;
    line-height: 48px;
}

#game-interface .buttons.top-left {
    position: absolute;
    top: 20px;
    left: 15px;
    pointer-events: auto; 
}

#game-interface .buttons.top-right {
    position: absolute;
    top: 20px;
    right: 15px;
    pointer-events: auto; 
}

#game-interface .buttons.bottom-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
    pointer-events: auto; 
}

#game-interface .buttons.middle {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

#game-interface .screen-title {
    width: 100%;
    position: absolute;
    top: 30px;
}

#game-interface .paused-screen {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #666;
    text-align: center;
    display: none;
    pointer-events: auto; 
}

#game-interface .howtoplay-screen {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #999;
    text-align: center;
    display: none;
    pointer-events: auto; 
}

#game-interface .ui-lozenge {
    display: inline-block;
    background: #666;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 20px;
    border: 1px solid #fff200;
    min-width: 80px;
    color: #fff;
    font-family: Courier, sans-serif;
    font-size: 15px;
    font-weight: 700;
}

#game-interface .ui-btn {
    display: inline-block;
    background: #000;
    padding: 15px;
    margin: 0 5px;
    color: #fff;
    text-decoration: none;
    font-family: Courier, sans-serif;
    font-size: 12px;
}

#game-interface .ui-btn.big {
    font-size: 16px;
    padding: 30px;
}

#game-interface .ui-btn:hover {
    background: #fff200;
    color: #000;
}