.emscripten {
    display: block;
    position: absolute;
    top: 1px;
    left: 1px;
}
html{
    min-height: 100%;
    /*overflow: hidden;*/
    /*border: 1px solid red;*/
}
body.emscripten {
    margin: 0;
    padding: 0;
    position: absolute;
    width: 99.9%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
}
div.emscripten { text-align: center; }

div.emscripten_border {
    width: 100%;
    height: 100%;

    border: 0px;
    padding: 0px;
    margin: 0px;
    margin-left: auto;
    top: 1px;
    left: 1px;
}

/* special div inserted by Module code */
div.emscripten_border > div:first-of-type{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0px;
    top: 0px;
    padding: 0px;
    margin: 0px;
}

/* the canvas *must not* have any border or padding, or mouse coords will be wrong */
canvas.emscripten {
    border: 0px none;
    padding: 0px;
    background-color: black;
    min-width: 320px; min-height: 240px;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
}

#application-status{
    position: absolute;
    top: -50px;
    left: 0;
}
/* loader */
#application-loader {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 3;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #fff;
}

#application-loader .rbw-logo{
    width: 240px;
    height: 204px;
    position: fixed;
    top: 20%;
    left: 50%;
    /*margin-top: -113px;*/
    margin-left: -120px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    /*transition: all ease-in-out .3s;*/
}

#application-loader .rbw-logo-mailru{
    width: 256px;
    height: 204px;
    position: fixed;
    top: 20%;
    left: 50%;
    /*margin-top: -113px;*/
    margin-left: -128px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    /*transition: all ease-in-out .3s;*/
}


#application-loader .progress-mailru {
    /*position: fixed; */
    position: absolute;
    bottom: -19px;
    left: 0;
    width: 256px;
    height: 14px;
    /*top: 50%;*/
    /*left: 50%;*/
    z-index: 3;
    margin-top: 98px;
    /*margin-left: -120px;*/
    background: #ccc;
    /*border-radius: 5px;*/
    overflow: hidden;

    /*background-position: 0 -332px;*/
    /*box-shadow: 0 0 4px #fff inset;     */
}

#application-loader .progress {
    /*position: fixed; */
    position: absolute;
    bottom: -19px;
    left: 0;
    width: 240px;
    height: 14px;
    /*top: 50%;*/
    /*left: 50%;*/
    z-index: 3;
    margin-top: 98px;
    /*margin-left: -120px;*/
    background: #ccc;
    /*border-radius: 5px;*/
    overflow: hidden;

    /*background-position: 0 -332px;*/
    /*box-shadow: 0 0 4px #fff inset;     */
}

#application-loader .progress-fill {
    margin: 0 0 0 0;
    height: 14px;
    width: 0%;
    background: #e93c40;
    /*transition: all ease-in-out .3s;*/
    /*border-radius: 5px;*/
    /*background-position: bottom left;*/
    /*background-repeat: no-repeat;*/
    /*box-shadow: 0 0 4px #fff inset; */
    /*border-radius: 10px;*/
    /*text-align: center;*/
}

.application-system-input-buttons {
    display:flex;
    justify-content:flex-end;
    align-items:center;
    padding: 0px 8px;
}





/* sytem input for chat message */
#ghl-system-input {
    position: relative;
    /* left: 0; */
    /* bottom: 0; */
    width: 100%;
    font-size: 18px;
    z-index: 1; /* Sit on top */
    box-sizing: border-box; /* Takes care of borders and padding */
    /* top: unset; Parent has this property set, we need to unset it to align to bottom with property bottom : 0 */
    margin: 4px auto;
    padding: 5px
}

/* The Modal (background) */
.application-popup-fade {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}



/* Modal Content/Box */
.application-popup-body {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    /*padding: 20px;*/
    border: 1px solid #888;
    width: 40%; /* Could be more or less, depending on screen size */

    border-radius: 3px;
    position: relative;
    font-family: Arial, sans-serif;
}

.application-popup-header {
    background-color: #f6f7f9;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 3px 3px 0 0;
    color: #1d2129;
    font-weight: bold;
    line-height: 19px;
    padding: 10px 12px;
}

.application-popup-header-title {
    color: #1d2129;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.application-popup-content {
    padding: 10px;
    background-color: #fff;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 18px;
}

.application-popup-content h1 {
    font-size: 110%;
    color: #333;
}

.application-popup-footer {
    background-color: #fff;
    padding: 12px 0;
    border-top: 1px solid #dddfe2;
    margin: 0 12px;
    text-align: right;
}

.application-popup-button {
    background-color: #4267b2;
    color: white !important;
    margin: 4px 2px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border: 1px solid #4267b2;
    border-radius: 2px;
    box-sizing: content-box;
    font-size: 12px;
    font-weight: bold;
    justify-content: center;
    padding: 4px 8px;
    text-shadow: none;
    cursor: pointer;
    vertical-align: middle;
    white-space: nowrap;
}

.application-popup-button.secondary {
    background-color: #f6f7f9;
    border-color: #ced0d4;
    color: #4b4f56 !important;
}

a.application-popup-button {
    display: inline-block;
    text-decoration: none;
}

a.application-popup-button:hover {
    text-decoration: none;
}

.fileupload {
    bottom: 0;
    cursor: inherit;
    height: 10px;
    width: 10px;
    margin: 0;
    opacity: 0;
    padding: 0;
    position: absolute;
    right: 0;
}

.input-text {
    border: 1px solid #bdc7d8;
    margin: 0;
    padding: 3px;
}

.input-textarea {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.arena_wrapper{
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    /*overflow: hidden;   */
}
.bottom_whiting{
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 20%;
    z-index: 1;
    background: linear-gradient(transparent, #fff);
}
.arena_main{
    background-position:  center center;
    background-size: cover;
    position: relative;
    min-width: 100%;
    min-height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.arena_minheight{
    min-height: 360px;
}
.arena_game{
    position: absolute;
    top: 50%;
    left: 50%;
    box-shadow: 0 0 15px #000;
    background-color: #000;
    border: 1px solid #000;
}
.arena_bottom_panel{
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    color: #000;
    font-family: 'Play', arial;
    z-index: 2;
}

/*640х360*/
.arena_game {
    top: 5px;
    width: 640px;
    height: 480px;
    margin-left: -320px;
    margin-top: 0;
}

.arena_game #application-loader .rbw-logo{
    margin-top: 77px;
}
.arena_game #application-loader .rbw-logo-mailru{
    margin-top: 77px;
}
.arena_bottom_panel{
    top: calc(480px + 15px);
    margin-top: 0;
}
ul.arena_buttons_menu li.community-badge{margin: 0 44px;}
ul.arena_buttons_menu li{margin: 0 0px;}

/*640х480*/
@media screen and (min-width: 680px) and (min-height: 520px){
    .arena_game {
        top: 40px;
        width: 640px;
        height: 480px;
        margin-left: -320px;
        margin-top: 0;
    }

    .arena_bottom_panel{
        top: calc(480px + 60px);
        margin-top: 0;
    }
    ul.arena_buttons_menu li.community-badge{margin: 0 40px;}
    ul.arena_buttons_menu li{margin: 0 10px;}

    .arena_game #application-loader .rbw-logo{
        margin-top: 137px;
    }
}

/*800х600*/
@media screen and (min-width: 864px) and (min-height: 680px){
    .arena_game {
        width: 800px;
        height: 600px;
        margin-left: -400px;
        margin-top: 0;
    }
    .arena_bottom_panel{
        top: calc(600px + 60px);
    }
    .arena_game #application-loader .rbw-logo{
        margin-top: 197px;
    }
}

/*1024х768*/
@media screen and (min-width: 1064px) and (min-height: 848px){
    .arena_game {
        width: 1024px;
        height: 768px;
        margin-left: -512px;
        margin-top: 0;
    }
    .arena_bottom_panel{
        top: calc(768px + 60px);
    }
    .arena_game #application-loader .rbw-logo{
        margin-top: 281px;
    }
}

.arena_bottom_panel ul{
    margin: 0;
    padding: 0;
}

.arena_bottom_panel ul li{
    display: inline;
    font-size: 13px;
    font-weight: bold;
}

.arena_bottom_panel a{
    color: #000;
    text-decoration: none;
}
.arena_bottom_panel a:hover{
    text-decoration: underline;
}

.arena_bottom_panel .arena_bottom_hint{
    font-size: 12px;
}
.arena_bottom_panel .arena_user_id{
    font-size: 12px;
}
ul.arena_buttons_menu li{
    /*margin-right: 30px;*/
}
ul.arena_links_menu{
    margin-top: 5px;
}
ul.arena_links_menu li:after{
    content:'|';
    margin: 0 15px 0 20px;
}
ul.arena_links_menu li:last-child:after{
    content:'';
    margin: 0;
}
ul.arena_buttons_menu li .fb-like{
    top: -9px;
}
.arena_bottom_hint{
    margin-top: 8px;
}
.arena_user_id{
    font-size: 13px;
    font-weight: bold;
    margin-top: 5px;
}
.social-ico{
    width: 29px;
    height: 29px;
    display: inline-block;
    border-radius: 5px;
    background-size: cover;
    margin-right: 2px;
    position: relative;
    top: -5.5px;
}
.social-ico-fb{background-position: 0 0;}
.social-ico-vk{background-position: -87px 0;}
.social-ico-in{background-position: -174px 0;}
.social-ico-yt{background-position: -261px 0;}


/* GDPR */

.gdpr-container {
    margin: 5% auto; /* 15% from the top and centered */
    padding: 20px;
    border: none;
    width: 80%; /* Could be more or less, depending on screen size */
    font-family: Helvetica, Tahoma, sans-serif;
    font-size: 1.4rem;
    z-index: 2;
}
.gdpr-big-font {
    font-size: 2rem;
}
.gdpr-container a, a:link, a:hover, a:visited, a:active {color: #157cc6; text-decoration: underline;}
.gdpr-header {
    padding: 0.7rem 0.2rem;
    background: #167cc6;
    color: #ffffff;
    text-align: center;
    -webkit-border-radius: 8px 8px 0 0;
    border-radius: 8px 8px 0 0;
}
.gdpr-container .button-container {
    text-align: center;
}
.gdpr-button {
    display: inline-block;
    padding: 1.6rem 4.1rem;
    background: #69a55b;
    color: #ffffff;
    border: 0;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    outline: none;
}
.gdpr-button.disabled {
    background: #b8b8b8;
}
.gdpr-text {
    padding: 4.6rem 2.4rem;
    background: #e7e7e7;
    border: 2px solid #cbcbcb;
    border-width: 0 2px 2px 2px;
    -webkit-border-radius: 0 0 8px 8px;
    border-radius: 0 0 8px 8px;
}
.gdpr-text-b {
    display: block;
    margin-bottom: 2rem;
}

.play_btn {
    top: 75%;
    position: absolute;
    margin: 15%;
    width: 70%;
    padding-bottom: 30%;
    background-position: 0 0;
    background-size: 300%;
    display: block;
    z-index: 4;
}

.play_btn:hover {
    background-position: 50% 0px;
}

.play_btn:active {
    background-position: 100% 0px;
}

.play_btn_holder {
    float: right;
    margin: 2% 4%;
    min-width: 211px;
    max-width: 423px;
    width: 22%;
    position: relative;
}

.play_btn_shield {
    width: 100%;
}

.bottom_blacking{
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 20%;
    z-index: 1;
}
