html, body {
    overflow: hidden;
    margin: 0;
    height: 2000px;
    width: 100%;
    background: black;
    font-size: 10px;
}

#canvas {
    margin: 0;
    padding: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-text-size-adjust: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    left: 50%;
    position: fixed;

    height: 100%;
    max-height: 62.5vw;
}

#root-wrapper {
    margin: 0;
    padding: 0;
    -webkit-user-drag: none;
    -webkit-text-size-adjust: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    transform-origin: 0 0;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    -webkit-transition: none;
    -ms-transition: none;
    transition: none;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}
#root-wrapper > * {
    pointer-events: all;
}

#reality-check-container {
    margin: 0;
    padding: 0;
    -webkit-user-drag: none;
    -webkit-text-size-adjust: none;
    -webkit-tap-highlight-color: transparent;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 9000;
    box-sizing: border-box;
    pointer-events: none;
}

#reality-check-container > * {
    pointer-events: all;
}

.advice {
    display: none;
    position: fixed;
    background-color: black;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* .iOs10 .advice {
    display: block;
    position: fixed;
    background-color: black;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    z-index: 5;
} */

.dialog-wrapper {
    display: none;
    font-size: 1.6vh;
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: rgba(0, 0, 0, .5);
    text-align: center;
}
@media (orientation: portrait) {
    .dialog-wrapper {
        font-size: 1.6vw;
    }
}

.iPad1 .dialog-wrapper {
    display: none;
    font-size: 1.6vh;
    width: 100%;
    height: inherit;
    position: absolute;
    background-color: rgba(0, 0, 0, .5);
    text-align: center;
}


.ios7 .dialog-wrapper {
    font-size: 0.2vh;
}

.LenovoTab2QQBrowser #canvas{
    height: 97%;
    position: absolute;
}

.nativeAndroidBrowser442 #canvas
{
    height: 92%;
}

.nativeAndroidBrowser442 .dialog-wrapper {
    font-size: 50%;
}

.iPad1 #canvas{
    height: auto;
    width: 100%;
    position: absolute;
}

#sound-dialog, #dialog {
    width: 50em;
    height: 36em;
    border-radius: 1.2em;
    background-color: #d7e1e4;
    background-image: -webkit-linear-gradient(top, #e1e9eb 0%, #b4c2c8 100%);
    background-image: linear-gradient(to bottom, #e1e9eb 0%, #b4c2c8 100%);
    position: fixed;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    font-family: Arial, sans-serif;
    display: none;
    z-index: 1;
}

#sound-dialog > *, #dialog > * {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 2%;
}

#sound-dialog header {
    margin-top: 8%;
    font-size: 3.2em;
}

#sound-dialog .icon {
    height: 42%;
    background-image: url(img/sound-dialog-icon.png?r=20201112144058315);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto 100%;
}

#sound-dialog .buttons {
    width: 50em;
    height: 20%;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

#sound-dialog button {
    width: 3.75em;
    height: 100%;
    margin-right: 1em;
    border: none;
    border-radius: 0.25em;
    box-shadow: 0 0 4px rgba(190, 190, 190, 0.8);
    background-color: #e1eaeb;
    background-image: -webkit-linear-gradient(top, #f4feff 10%, #d3e5ec 100%);
    background-image: linear-gradient(to bottom, #f4feff 10%, #d3e5ec 100%);
    font-size: 3.2em;
    line-height: 2.2em;
    outline: none;
    color: black;
}

#sound-dialog button:active {
    -webkit-transform: scale(.95, .95);
    -ms-transform: scale(.95, .95);
    transform: scale(.95, .95);
}

#sound-dialog button:last-child {
    margin-right: 0;
    margin-left: 1em;
}

#dialog p {
    text-align: center;
    font-size: 3.2em;
    margin-top: 26%;
}

#fps-counter {
    position: fixed;
    left: 0;
    top: 0;
    font: 20px Arial;
    color: red;
}

#shifter, #combinationEditor {
    position: fixed;

    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    display: box;

    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    
    -ms-flex-direction: column;
    flex-direction: column;

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    padding: 15px;

    -moz-box-sizing: border-box;
    box-sizing: border-box;

    background: black;
}

.iPad1 #shifter, #combinationEditor{
    display: -khtml-box;

    -khtml-box-orient: vertical;
    -khtml-box-direction: column;
}

.nativeAndroidBrowser #shifter, #combinationEditor{
    display: -khtml-box;

    -khtml-box-orient: vertical;
    -khtml-box-direction: column;
}

.nativeAndroidBrowserLega #canvas{
    height: auto;
    width: 85%;
    position: absolute;
}

.UCMobileAndroid .dialog-wrapper {
    font-size: 50%;
}

.nativeAndroidBrowserLega .dialog-wrapper {
    font-size: 50%;
}

#shifter.hidden,
#combinationEditor.hidden {
    display: none;
}

#shifter button {
    width: 8%;
    height: 70%;
    min-width: 60px;
}

#shifter .controls {
    height: 20%;
    max-height: 100px;
}

#shifterOpenBtn {
    position: fixed;
    bottom: 50px;
    left: 50px;
    width: 57px;
    height: 48px;
    background: url('img/debug_button.png');
    opacity: .25;
    border: none;
    outline: none;
}

#shifter .combText {
    height: 100%;
    width: 70%;
    font-size: 2em;
    vertical-align: top;

    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#shifter .controls {
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

#shifter .row {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: -khtml-box;
    display: flex;

    -khtml-box-pack: justify;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

#shifter .controls .combinationInput {
    height: 70%;
    width: 30%;
}

#shifter .controls .combinationInput button {
    height: 100%;
    width: 20%;
    min-width: 30px;
}

#shifter .container {
    -khtml-box-flex: 1;
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

#shifter .combList {
    background: #f5f5f5;
    width: 100%;
    overflow-y: scroll;
    height: 100%;
    position: absolute;
}

#shifter .combList ul {
    margin: 0;
    padding: 0;
    font-size: 2.5em;
    list-style: none;
    text-align: center;
}

#shifter .combList li {
    border-bottom: 1px solid black;
    padding: 2% 0;
    cursor: pointer;
}

#shifter .combs button,
#combinationEditor button {
    min-height: 40px;
}