html {
    width:100%;
    height:100%; /*calc(100vh + 1px);*/
   /* height:calc(100vh + 1px); */ /* Disabling this as it may be outdated */
    -webkit-text-size-adjust: none;
    overflow:hidden;
}

body {
    margin: 0;
    padding: 0;
    background: #eeeeee; /* iphoneX */
    /*overflow: hidden;*/ /* Overflow is needed to scroll mobile console things */
    -ms-overflow-style:none;
    width:100%;
    height:100%;/*calc(100vh + 1px);*/
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    padding: constant(safe-area-inset-top) constant(safe-area-inset-right) constant(safe-area-inset-bottom) constant(safe-area-inset-left);
    position:relative;
    /*overflow:hidden;*/
    touch-action:pan-y;
    overflow:hidden;
}

iframe {
    /*touch-action: pan-x pan-y;*/
    touch-action:pan-y;
    overflow:hidden;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -15px 0 0 -15px;
}

.message {
    display: -webkit-box;
    font-size:1.2em;
    position: relative;
    padding:1em;
    -webkit-box-align: center;
    -webkit-box-pack: center;
    background-color: rgba(249, 242, 242, 0.94);
    margin: 0 auto;
    border-style: solid;
    border-radius: 15px;
}

.messageBoxDiv {
    visibility:hidden;
    position: absolute;
    display: -webkit-box;
    height: 100vh;
    width: 100vw;
    -webkit-box-align: center;
    -webkit-box-pack: center;
}

/* Default Messagebox UI moved to make debugging, updates and QA simpler */
/* SKATE-3731 */
@font-face {
    font-family:Lato;
    src: url('./Lato-Regular.ttf') format('truetype');
    font-weight:400;
    font-style:normal;
}
@font-face {
    font-family:Lato;
    src: url('./Lato-Bold.ttf') format('truetype');
    /*font-weight:700;*/
    font-weight:bold;
}

.MB_centering {
    height:inherit;
    width:inherit;
    display:box;
    display:flex;
    display:-webkit-box;
    display:-moz-box;

    -webkit-box-align:center;
    -webkit-box-pack:center;
    -moz-box-align:center;
    -moz-box-pack:center;
    -ms-flex-direction:column;
    -ms-flex-align:center;
    -ms-flex-pack:center;

}
.MB_overlay {
    display: none;
    position: absolute;
    top: 0;
    left:0;
    background-color : rgba(0,0,0,0.4);
    width:100%;
    height:100%;
    min-height:100%;
    text-align:center;
    font-family:Arial, Helvetica, sans-serif;
    z-index:9999;
}

.MB_messageBoxDiv {
    position:relative;
    min-width:237px;
    max-width:300px;
    background-color:rgba(255,255,255,0.94);
    margin:0 auto;
    background:#1C1D23 0% 0% no-repeat padding-box;
    border: 1px solid #0E0E10;
    border-radius:14px;
}

.MB_messageInfoDiv {/*message body*/
    margin:0;
    padding:1em 1em 0.5em 1em;
    line-height:18px;

    color:#ffffff;
    letter-spacing:0;
    text-align:center;
    font: normal normal bold 14px/18px Lato, Roboto, Arial;
}

.MB_errorIdDiv {/*error id*/
    padding:0em 1em 1em 1em;
    line-height:1.5em;

    font:normal normal normal 13px/22px Lato, Roboto, Arial;
    letter-spacing:0;
    color:#898E97;
    text-align:center;
}

.MB_supportInfoDiv {/*support info*/
    padding:0.5em;
    line-height:18px;
    text-align:center;
    letter-spacing:0;
    font: normal normal normal 13px/18px Lato, Roboto, Arial;
    color:#898E91;
}

.MB_ButtonGroup {
    padding:10px;
}

.MB_Button { /*Landscape - make padding 7px*/
    color:#ffffff;
    padding:9px;
    font: normal normal bold 14px/17px Lato, Roboto, Arial;
    cursor:pointer;

    background:#1C1D23 0% 0% no-repeat padding-box;
    border:2px solid #2A2F37;
    border-radius:4px;
    min-height:14px;
    margin:5px;
}

.landscape .MB_Button {
    padding:7px;
    font: normal normal bold 14px/15px Lato, Roboto, Arial;
    width:100%;
}

.landscape .MB_messageBoxDiv {
    max-width:90%;
}
.landscape .MB_ButtonGroup {
    display:flex;
    flex-wrap:wrap;
}

.landscape .MB_reflowError {
    width:50%;
}
.landscape .MB_errorIdDiv {
    box-sizing:border-box;
    padding:0.5em;
    display: block;
    width:100%;
    max-width:100%;
    min-width:100%;
}

.landscape .MB_errorInline .MB_errorIdDiv {
    display:inline-flex;
    width:50%;
    min-width:50%;
    max-width:50%;
}

.landscape .MB_ButtonPositioner {
    display:inline-flex;
    box-sizing:border-box;
    width:50%;
    min-width:50%;
    margin:0 auto;
}

.MB_errorInline .MB_ButtonPositioner:nth-child(2) { /* Only apply to the button next to an error ID */
    margin:auto;
}

.MB_wideLast .MB_errorIdDiv {
    width:0;
    min-width:0;
}
.MB_wideLast .MB_FirstPositioner {
    width:100%;
}
.MB_FirstButton {
    background:#0276C7 0% 0% no-repeat padding-box;
    border:2px solid #0276C7;
}

.MB_Button_Landscape {
    box-sizing: border-box;
    width: calc(50% - 10px);
    display:inline-block;
}

.MB_Button:nth-child {
    border:2px solid #2A2F37;
    background:#1C1D23 0% 0% no-repeat padding-box;
}

div::-webkit-scrollbar { display: none; }
div::-moz-scrollbars { display: none; }
div::-o-scrollbar { display: none; }
div::-google-ms-scrollbar { display: none; }
div::-khtml-scrollbar { display: none; }
