body{
    background: #000;
    margin: 0;
    padding: 0;
    /*text-align: center;*/
    overflow:hidden;
}
h1{
    color: #ff6000;
    margin-bottom: 0px;
}
.game-wrapper{
    position: fixed;
    left: 10px;
    top: 0;
    bottom: 0;
    right: 0;
    overflow: hidden;
    transition: left 0.5s ease-in-out;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.game-title{
    display: block;
    background-color: rgba(0,0,0,0.6);
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -200px;
    width: 400px;
    border-radius: 0 0 10px 10px;
    text-align: center;
    transition: all .6s ease-in-out;
}
.game-title.hidden{
    top: -200px;
}

.game-wrapper .legend{
    color: #b38509;
    font-weight: bold;
    margin-bottom: 10px;
}
#hero-panel{
    position: absolute;
    right: 0;
    top: 0;
    width: 220px;
    max-width: 220px;
    overflow: hidden;
    padding: 0px 0px 6px 6px;
    background-color: rgba(0,0,0,0.4);
    color: #ffb800;
    -webkit-border-radius: 0 0 0 10px;
    -moz-border-radius: 0 0 0 6px;
    border-radius: 0 0 0 10px;
}
#hero-panel>div{
    font: bold 14px sans-serif;
    border: 1px solid #ffb800;
    padding: 11px 18px 12px 18px;
    border-radius: 0 0 0 6px;
    border-width: 0 0 1px 1px;
    text-align: left;
    overflow: hidden;
}
#hero-panel .row{
    overflow: hidden;
}
#hero-panel .hr{
    overflow: hidden;
    border: none;
    border-bottom: 2px solid #ffb800;
    margin: 7px 3px 4px 3px;
}
#hero-panel .label{
    float: left;
}
#hero-panel .value{
    float: right;
}

#hero-panel #signout_button{
    float: right;
    background: #ffb800;
    color: black;
    border: none;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 1px 8px;
    margin-top: 4px;
    font: bold 12px sans-serif;
}
#hero-panel #signout_button:focus,
#hero-panel #signout_button:active{
    outline: none;
}
#hero-panel #signout_button:hover{
    background: #b38509;
}

.login-panel{
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}
.login-form{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    max-width: 200px;
    height: 120px;
    min-height: 60px;
    margin-left: -100px;
    margin-top: -30px;
    background: rgba(0,0,0,0.8);
    box-sizing: border-box;
    padding: 6px;
    text-align: center;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    font: bold 14px sans-serif;
}
.login-form>div{
    padding: 18px 10px 10px 10px;
    border: 1px solid #ffb800;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
.login-form input{
    width: 150px;
    background: #f4cb4a;
    border: 2px solid #000;
    padding: 2px 4px;
    outline: 1px solid #ffb800;
    margin-bottom: 5px;
}
.login-form input:focus,
.login-form input:active{
    border: 2px solid #ffb800;
    outline: 1px dotted #ffb800;
}
.login-form button{
    background: #ffb800;
    color: black;
    border: none;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 4px 8px;
    margin-top: 3px;
    font: bold 12px sans-serif;
}
.login-form button:active,
.login-form button:focus{
    outline: none;
}
.login-form button:hover{
    background: #b38509;
}
.login-form .notice{

}



.logs-wrapper{
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    overflow: hidden;
    background-color: #101010;
    color: #101010;
    transition: width 0.5s ease-in-out, background-color 0.5s linear, color 0.5s linear;
    border: 16px solid rgba(0,0,0,0.8);
    border-right: 1px solid #000000;
    border-left: none;
    z-index: 3;
}
.consoled .logs-wrapper{
    width: 450px;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.4);
    color: #ff6000;
}
.logs{
    width: 450px;
    text-align: justify;
    font-family: sans-serif;
    font-size: 12px;
}
.logs .msg{
    padding: 6px 10px 0;
}
.logs .msg:after{
    content: '...';
    display: block;
    text-align: center;
    margin-top: -6px;
}
.logs .msg:last-child:after{
    display: none;
}
.logs .msg.error{
    color: #F00;
}

#loading{
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: #313425;
}
#loading .title{
    position: absolute;
    width: 360px;
    height: 80px;
    top: 50%;
    left: 50%;
    margin-left: -180px;
    margin-top: -40px;
    font: 60px Arial;
    text-align: center;
    display: table;
    vertical-align: middle;
    color: #ff6000;
    background-color: #1e2017;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

#top10-panel{
    position: absolute;
    right: 0;
    top: 200px;
    width: 200px;
    max-width: 200px;
    overflow: hidden;
    padding: 6px 0px 6px 6px;
    background-color: rgba(0,0,0,0.4);
    color: #ffb800;
    -webkit-border-radius: 0 0 0 10px;
    -moz-border-radius: 0 0 0 6px;
    border-radius: 10px 0 0 10px;
    transition: all .5s ease-in-out;
}

#top10-panel>div{
    min-height: 200px;
    font: bold 14px sans-serif;
    border: 1px solid #ffb800;
    padding: 11px 18px 12px 18px;
    border-radius: 6px 0 0 6px;
    border-width: 1px 0 1px 1px;
    text-align: left;
    overflow: hidden;
}

#top10-panel .row{
    overflow: hidden;
}

#top10-panel .hr{
    overflow: hidden;
    border: none;
    border-bottom: 2px solid #ffb800;
    margin: 7px 3px 4px 3px;
}

#top10-panel .label{
    float: left;
}
#top10-panel .value{
    float: right;
}

/* Скилы */

.skills-panel{
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 40vw;
    height: 65px;
    min-width: 182px;
    margin-left: -20vw;
    overflow: hidden;
    background: rgba(30,30,30,0.6);
    padding: 2px 2px 0 2px;
    border-radius: 6px 6px 0 0;
}

.skills-panel>div{
    border: 1px solid #ffb800;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    padding: 2px 4px 0 2px;

}
.skills-panel .skill{
    width: 56px;
    height: 56px;
    border: none;
    margin: 2px 0 2px 2px;
    float: left;
    background-color: #000;
    position: relative;
}

.skills-panel .skill.active{
    border: 2px solid rgba(255, 0, 8, 0.75);
    border-radius: 2px;
    margin: 0 -2px 0 0;
}

.skills-panel .veko{
    position: absolute;
    background: rgba(0,0,0,0.8);
    top: 0;
    width: 56px;
    height: 0px;
    transition: height .03s ease-in-out;
}
.skills-panel .veko.value0{height: 100%;}
.skills-panel .veko.value10{height: 90%;}
.skills-panel .veko.value20{height: 80%;}
.skills-panel .veko.value30{height: 70%;}
.skills-panel .veko.value40{height: 60%;}
.skills-panel .veko.value50{height: 50%;}
.skills-panel .veko.value60{height: 40%;}
.skills-panel .veko.value70{height: 30%;}
.skills-panel .veko.value80{height: 20%;}
.skills-panel .veko.value90{height: 10%;}
/* Конец Скилы */


/* Панель юнита */

#unit-panel{
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    max-width: 100px;
    overflow: hidden;
    padding: 0 6px 6px 0;
    background-color: rgba(0,0,0,0.4);
    color: #ffb800;
    -webkit-border-radius: 0 0 10px 0;
    -moz-border-radius: 0 0 10px 0;
    border-radius: 0 0 10px 0;
}
#unit-panel>div{
    font: bold 12px sans-serif;
    border: 1px solid #ffb800;
    padding: 6px 6px 10px 6px;
    border-radius: 0 0 6px 0;
    border-width: 0 1px 1px 0;
    text-align: left;
    overflow: hidden;
}
#unit-panel .row{
    overflow: hidden;
}
#unit-panel .hr{
    overflow: hidden;
    border: none;
    border-bottom: 2px solid #ffb800;
    margin: 7px 3px 4px 3px;
}
#unit-panel .label{
    float: left;
}
#unit-panel .value{
    /*float: right;*/
}

#unit-panel #unit-name{
    width: 100%;
    text-align: center;
}

#unit-panel #unit-preview{
    display: block;
}
/* Конец Панель юнита */




@media only screen
and (min-device-width: 321px)
and (max-device-width: 1024px) {

    .skills-panel{
        min-width: auto;
        bottom: auto;
        top: 50%;
        left: 0;
        width: 65px;
        height: 40vh;
        min-height: 182px;
        margin: -20vh 0 0 0;
        padding: 2px 2px 2px 0;
        border-radius: 0 6px 6px 0;
    }


    #hero-panel{
        left: -9999px;
    }
    #unit-panel{
        left: -9999px;
    }
}

@media only screen
and (max-device-width: 320px) {

    .skills-panel{
        left: 50%;
        height: 65px;
        width: 182px;
        min-width: 182px;
        margin: 0 0 0 -91px;
        overflow: hidden;
        background: rgba(30,30,30,0.6);
        padding: 2px 2px 0 2px;
        border-radius: 6px 6px 0 0;
    }


    #hero-panel{
        left: -9999px;
    }
    #unit-panel{
        left: -9999px;
    }
}