@font-face {
    font-family: AppFont;
    src: url('../core/fonts/roboto/Roboto-Regular.ttf') format('truetype');
}
@font-face {
    font-family: AppFontBold;
    src: url('../core/fonts/roboto/Roboto-Bold.ttf') format('truetype');
}
@font-face {
    font-family: AppFontBoldItalic;
    src: url('../core/fonts/roboto/Roboto-BoldItalic.ttf') format('truetype');
}
@font-face {
    font-family: AppFontItalic;
    src: url('../core/fonts/roboto/Roboto-Italic.ttf') format('truetype');
}
@font-face {
    font-family: AppFontLight;
    src: url('../core/fonts/roboto/Roboto-Light.ttf') format('truetype');
}
@font-face {
    font-family: AppFontLightItalic;
    src: url('../core/fonts/roboto/Roboto-LightItalic.ttf') format('truetype');
}
@font-face {
    font-family: AppFontMedium;
    src: url('../core/fonts/roboto/Roboto-Medium.ttf') format('truetype');
}
@font-face {
    font-family: AppFontMediumItalic;
    src: url('../core/fonts/roboto/Roboto-MediumItalic.ttf') format('truetype');
}
@font-face {
    font-family: AppFontBlack;
    src: url('../core/fonts/roboto/Roboto-Black.ttf') format('truetype');
}
@font-face {
    font-family: AppFontBlackItalic;
    src: url('../core/fonts/roboto/Roboto-BlackItalic.ttf') format('truetype');
}
@font-face {
    font-family: AppFontThin;
    src: url('../core/fonts/roboto/Roboto-Thin.ttf') format('truetype');
}
@font-face {
    font-family: AppFontThinItalic;
    src: url('../core/fonts/roboto/Roboto-ThinItalic.ttf') format('truetype');
}
@font-face {
    font-family: Lepton;
    src: url('../core/fonts/roboto/Roboto-Regular.ttf') format('truetype');
}
@font-face {
    font-family: Cupertino;
    src: url('../core/cupertino.ttf') format('truetype');
}


body {
    font-family: AppFont;
    background: black;
    margin:0px;
    margin:0;
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    user-select:none;
    -webkit-text-size-adjust:none;
    -moz-text-size-adjust:none;
    text-size-adjust:none;    
    -ms-touch-action: none;
    touch-action: none
}
#body {
    -moz-user-select:none;
    -ms-user-select:none;
}
.bodyFlex {
    background: #404040;
}
#lepton-canvas {
    display: none;
}
body.bodyInit #body {
    display: none;
}
html, body {
    width: 100%;
    height: 100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
#body {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    /* height: 100%; */
}


body.bodyVOSK, body.bodyApp { overflow:hidden; }

body.bodyVOSK ::-webkit-scrollbar {
    display: none;
}

@-webkit-keyframes androidBugfix {from { padding: 0; } to { padding: 0; }}
body { -webkit-animation: androidBugfix infinite 1s; }

@-webkit-keyframes flyInRight {
    from { right: -10%; }
    to   { right: 0; }
}
a.refresh {
    display: none;
    position: absolute;
    font-family: Helvetica;
    top: 6%;
    right: 0;
    -webkit-animation: flyInRight 1s ease-in-out;
    padding: 0.5em 1em;
    z-index: 99;
    -webkit-transform: rotate(-90deg);
    -webkit-transform-origin: 100% 100%;
    text-align: center;
    background: rgba(128,128,128,0.8);
    -webkit-border-radius: 5px 5px 0 0;
    text-decoration: none;
    color: white;
    font-size: 15px;
    white-space: nowrap;
}
.update {
    background-color: red;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    width: 1em;
    height: 1em;
    -webkit-border-radius: 1em;
    float: right;
    display: block;
    vertical-align: super;
    margin: -1em;
    border: 0.15em solid white;
}
.languageSelector {
    position: absolute;
    z-index: 99;
    bottom: 0;
    right: 0;
}
body.bodyVOSK.bodyTabletL .languageSelector {
    right: auto;
    left: 0;
}
body.bodyVOSK.bodyTabletP .languageSelector {
    bottom: auto;
    right: auto;
    left: 0;
    top: 0;
}

#_kaonvideoplayer_{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    border: none;
    max-height: 1920px;
}


#_ffpdfplayer_{
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    bottom: 0;
    width: inherit;
    height: inherit;
    z-index: 9999;
    border: none;
    max-height: 1920px;
}
#_ffpdfplayer_close_ {
    overflow:hidden;
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    height: 20px;
    font-size: 14px;
    font-weight: bold;
    padding-right: 14px;
    box-sizing: border-box;
    background-color: rgba(0,0,0,0.5);
    color: white;
    text-align: right;
    font-family: Helvetica, Arial, Sans-serif;
    line-height: 20px;
    z-index: 9999;
}


.bodyVOSK #_ffpdfplayer_ {
    top:0;
}

.bodyVOSK #_ffpdfplayer_close_ {
    height: 40px;
    font-size: 25px;
    line-height: 40px;
    top:auto;
    bottom:0;
}


/* Live Updates --------------------------------------------*/

div.disabled {
    opacity: 0.5;
    background-color: rgba(0,0,0,0.5);
    position: relative; /* could affect css. need pos!=static so position div > .progress */
    pointer-events:none;
}
div.disabled .progress {
    display: block;
}
.progress {
    display: none;
    box-sizing: border-box;
    position: absolute;
    bottom: 10px;
    left: 3%;
    width: 94%;
    height: 10px;
    border: solid rgba(0,0,0,0.2) 1px;
    border-radius: 5px;
    background: #cecece;
}
.progressBar {
    height: 100%;
    width: 0%;
    -webkit-transition: width 0.2s linear;
    -moz-transition: width 0.2s linear;
    transition: width 0.2s linear;
    border-radius: 5px;
    background: #2383e0;
}
body.bodyPhone .progress {
    bottom: 3px;
    height: 8px;
}



.wb_frame {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:transparent;
    z-index:9000;
    border:none;
    overflow:hidden;
}

span.sup {
    vertical-align: baseline;
    position: relative;
    top: -0.7em;
    font-size: 50%;
}





p, em, i, u, b, strong {
    display:inline;
    padding:0;
    margin:0;
}

p {
    display: block;
}

h1, h2, h3 {
    padding: 0;
    margin: 0;
}






.touchable {
    overflow: hidden;
    cursor: pointer;
}

.touchable:not(.no_before):before,
.touchable.no_before .touchable_circle {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 2rem;
        height: 2rem;
        opacity: 0;
        background-color: white;
        border-radius: 50%;
        pointer-events: none;
        display: none;
    }
.touchable.small:not(.no_before):before, 
.touchable.small.no_before .touchable_circle {
            width: 1rem;
            height: 1rem;        
    }

.touchable.large:not(.no_before):before,
.touchable.large.no_before .touchable_circle {
            width: 3rem;
            height: 3rem;     
    }

.touchable.invert:not(.no_before):before, 
.touchable.invert.no_before .touchable_circle {
            background-color: black;
        
}

.touchable.touched:not(.no_before):before,
.touchable.touched.no_before .touchable_circle {
        display: block;
        -webkit-animation: touch_bubble 0.5s ease;
        animation: touch_bubble 0.5s ease;
}

@keyframes touch_bubble {
    0% {
        transform:translate(-50%, -50%) scale(0.2);
        opacity: 0;
    }
    10% {        
        opacity: 0.5;
    }
    100% {
        transform:translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}
@-webkit-keyframes touch_bubble {
    0% {
        -webkit-transform:translate(-50%, -50%) scale(0.2);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    100% {
        -webkit-transform:translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}


#vr {
    position: absolute;
    z-index: 999;
    font-family: Cupertino;
    color: #888;
    text-decoration: none;
    font-size: 0.4em;
    right: 0.5em;
    top: 0.4em;
}

.portraitCover {
  display: none;
}

.portraitCover svg#turn_device {
    position:static;
    width:60%;
    height:auto;
}

.portraitCover svg#turn_device .fill,
.portraitCover {
    fill:#404040 !important;
    color:#404040;
}

.bodyIOS.bodyPortrait .portraitCover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 999;
    box-sizing: border-box;
    text-align: center;
    font-size: 7vmin;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#editableUnsavedChanges,
#editableSavedChanges,
#editableStart,
#editableAppView,
#editableListView,
.editableCurtain,
.editableReviewPane {
    font-size:15px !important;
}
div#body ~ div.editableCurtain,
div#body ~ div.editableReviewPane {
    display: block;
}









