@font-face {
    font-family: "OrhonChaganTig";
    src: url("../orhonjsime/css/font/OrhonChaganTig.ttf") format("truetype"), url("../orhonjsime/font/OrhonChaganTig.eot") format("truetype");
}

div.vkb_tools {
    position: fixed;
    right: 0;
    top:70%;
    width: 40px;
    height: 40px;
    /* background-color: #3152ad71; */
    background-image: url(../orhonjsime2/images/logo.png);
    background-repeat: no-repeat;
    background-size: 100%;
    /* background-color: rgba(49, 82, 173, 0.44); */
    border-radius: 50%;
    z-index: 99999999999;
    /* moz-user-select: -moz-none; */
    /* -moz-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none; */

}
div.vkb_tools_setting {
    background-color: #fff;
    position: fixed;
    top:0;
    left: 0;
    /* height: 100%; */
    height: 100vh;
    width: 100vw;
    z-index: 99999999999;
    font-family: OrhonChaganTig;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
div#vkb_setting_group {
    -webkit-box-flex: 1;
        -ms-flex: 1 0 auto;
            flex: 1 0 auto;
}
div#vkb_setting_btns {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 50px;
            flex: 0 0 50px;
    -webkit-writing-mode: vertical-lr;
        -ms-writing-mode: tb-lr;
            writing-mode: vertical-lr;
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-pack: center;
                -ms-flex-pack: center;
                    justify-content: center;
}
div#vkb_setting_btns>button{
    display: table-cell;
    font-family: OrhonChaganTig;
    width: 40px;
    height: 80px;
    border-radius: 10px;
}
fieldset.vkb_set_wrap {
            -webkit-writing-mode: vertical-lr;
            -ms-writing-mode: tb-lr;
            writing-mode: vertical-lr;
            text-orientation: sideways-right;
            -webkit-text-orientation: sideways-right;
}
div.tools_on{
    /* background-color: rgba(49, 82, 173, 0.443); */
}
div.tools_off{
    /* background-color: rgba(104, 104, 104, 0.443); */
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

body>.orhon_vkb {
    position: fixed;
    bottom: 0;
    width: 800px;
    height: 324px;
    background-color: #111;
    margin: 0px auto;
    border-radius: 9px;
    padding: 20px;
    color: #eee;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    /* moz-user-select: -moz-none; */
    /* -webkit-touch-callout:none;
    -moz-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none; */
}

div.orhonvkb_wrap{
    position: fixed;
    top:0;
    left: 0;
    /* height: 100%; */
    height: 100vh;
    width: 100vw;
    /* display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-flow: column nowrap;
            flex-flow: column nowrap; */
            /* display: block !important; */
    z-index: 99999999999;
background-color: white;

}

div.vkb_editor {
    -webkit-box-flex: 1;
        -ms-flex: 1 0 auto;
            flex: 1 0 auto;
    background-color: #d2d3d8;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row nowrap;
            flex-flow: row nowrap;
    writing-mode: vertical-lr;
    -webkit-writing-mode: vertical-lr;
    -ms-writing-mode: vertical-lr;
    /* font-family: Arial,OrhonChaganTig; */
    font-family: OrhonChaganTig;
    height: calc(100vh - 50vw - 74px);
    width: 100%;
}
div.ime_editor_wrap{
    -webkit-box-flex: 0;
        -ms-flex: 0 1 70%;
            flex: 0 1 70%;
    /* width: 40%; */
    height: 70%;
    max-height: 70%;
}
div.ime_candidate_wrap{
    -webkit-box-flex: 0;
        -ms-flex: 0 1 calc(30% - 10px);
            flex: 0 1 calc(30% - 10px);
    /* width: 60%; */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-flow: column nowrap;
            flex-flow: column nowrap;

}
div.ime_editor_wrap{
    padding: 5px;
    background-color: #ffffff;
    unicode-bidi: bidi-override;
    text-orientation: sideways-right;
    -webkit-text-orientation: sideways-right;
    word-spacing: normal;
    word-wrap: normal;
    /* word-break: keep-all; */
    word-break: break-word;
    white-space: pre-wrap;
    overflow-x: scroll;
    font-size: 18pt;
}

div.ime_candidate{
    -webkit-box-flex: 0;
        -ms-flex: 0 1 calc(100% - 50px);
            flex: 0 1 calc(100% - 50px);
            overflow-x: scroll;
}
ul.ime_candidate_ul{
    width: 100%;
    height: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    text-orientation: sideways-right;
    -webkit-text-orientation: sideways-right;
    font-size: 18pt;
}
li.ime_can_li{
    padding: 5px 0;
}
div.ime_action_group{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row nowrap;
            flex-flow: row nowrap;
    -ms-flex-pack: distribute;
        justify-content: space-around;
}

div.o_btn_cancel, div.o_btn_accept {
    height: 30px;
    width: 50px;
    margin: 0;
    -webkit-box-flex: 0;
        -ms-flex: 0 1 auto;
            flex: 0 1 auto;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

div.orhonvkb_wrap div.orhon_vkb {
    /* display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap; */
}
@-webkit-keyframes blink-caret { 50% { border-top-color: transparent; } }
@keyframes blink-caret { 50% { border-top-color: transparent; } }
span#editor_cursor {
    border-top: 1px solid black;
    -webkit-animation:blink-caret 1s step-end infinite;
            animation:blink-caret 1s step-end infinite;
}
div.ime_editor_wrap span{
    unicode-bidi: bidi-override;
    text-orientation: sideways-right;
    -webkit-text-orientation: sideways-right;
}

.btn_row {
    /* flex:1 1 auto; */
    -webkit-box-flex: 1;
    -ms-flex: 1 0 16.667%;
    flex: 1 0 16.667%;
    /* background-color: #eee; */
    background-color: #111;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
}

/* div.lay_default>div.o_row_123 {
    display: none;
}
div.lay_123>div.o_row_default {
    display: none;
} */

div.lay_default>div[class*="o_char"] {
    display: none;
}
div.lay_char_mn_123>div:not(.o_char_mn_123),
div.lay_char_mn_more>div:not(.o_char_mn_more),
div.lay_char_en_123>div:not(.o_char_en_123),
div.lay_char_en_more>div:not(.o_char_en_more){
    display: none;
}
/* div[class*="lay_char"]>div.o_row_default,div[class*="lay_char_en"]>div[class*="o_char_mn"]{
    display: none;
} */
/* div[class*=""] */

.o_btn {
    /* font-family: Arial,OrhonChaganTig; */
    background-color: #333;
    /*color: #000;
    */-webkit-box-flex: 0;
    /* -ms-flex: 0 1 calc( 100% - 44px); */
    -ms-flex: 0 1 6.25%;
    flex: 0 1 6.25%;
    height: calc(100% - 4px);
    margin: 2px;
    border-radius: 2px;
    cursor: pointer;
    /* -webkit-transition: box-shadow 0.7s ease, -webkit-box-shadow 0.7s ease;
    transition: -webkit-box-shadow 0.7s ease;
    -webkit-transition: -webkit-box-shadow 0.7s ease;
    transition: box-shadow 0.7s ease;
    transition: box-shadow 0.7s ease, -webkit-box-shadow 0.7s ease; */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
   
    -webkit-box-orient: vertical;
   
    -webkit-box-direction: normal;
   
        -ms-flex-flow: column wrap;
            flex-flow: column wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    /* -moz-transition: box-shadow 0.7s ease, -webkit-box-shadow 0.7s ease;
    -ms-transition: box-shadow 0.7s ease, -webkit-box-shadow 0.7s ease;
    -o-transition: box-shadow 0.7s ease, -webkit-box-shadow 0.7s ease; */
}

div[class*="lay_char"] div.o_btn {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
div[class*="lay_char"] div.o_btn:not(.o_btn_action):not([class*="o_btn_Digit"]) {
    font-family: OrhonChaganTig;
    writing-mode: vertical-lr;
    -webkit-writing-mode: vertical-lr;
    -ms-writing-mode: vertical-lr;
    text-orientation: sideways-right;
    -webkit-text-orientation: sideways-right;
}

/* div[class*="up_e"] div {
    font-size: 10px;
} */

div.key_wrap {
    -webkit-box-flex: 1;
    -ms-flex: 1 0 50%;
    flex: 1 0 50%;
    width: 50%;
    height: 50%;
}
div.key_wrap>div{
    width: 100%;
    height: 100%;
    font-family: Arial;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 20px;
    /* font-weight: bold; */
}

div[id^='up_m_']>div,
div[id^='low_m_']>div {
    /*background-color: #000;
    */
    font-family: Arial,OrhonChaganTig;
    -webkit-writing-mode: vertical-lr;
    -ms-writing-mode: tb-lr;
    writing-mode: vertical-lr;
    unicode-bidi: bidi-override;
    text-orientation: sideways-right;
    -webkit-text-orientation: sideways-right;
    
}
div[id^='up_e_']>div,
div[id^='low_e_']>div{
    font-size: 10pt;
}
.o_btn:hover {
    -webkit-box-shadow: 0px 0px 10px #14B524;
    box-shadow: 0px 0px 10px #14B524;

}
div.ime_english div[class*="_m_"]>div{
    display: none;
}

div.lay_default div.o_btn>div.key_wrap{
    opacity: .3;
}
div.lay_default:not([class*="lay_shift"]) div.o_btn>div.key_wrap[class*="low_m"]{
    opacity: 1;
}
div.lay_default[class*="lay_shift"] div.o_btn>div.key_wrap[class*="up_m"]{
    opacity: 1;
}
div.lay_default.ime_english div.o_btn>div.key_wrap[class*="up_e"]{
    opacity: 1;
}


div.lay_shift div.key_wrap{
    /* opacity: 1; */
}

.o_btn_Escape,
.o_btn_F4,
.o_btn_F8,
.o_btn_F12 {
    margin-right: 3.311%;
}
.o_btn_nbsp,.o_btn_aei{
    font-family: OrhonChaganTig;
    writing-mode: vertical-lr;
    -webkit-writing-mode: vertical-lr;
    -ms-writing-mode: vertical-lr;
    text-orientation: sideways-right;
    -webkit-text-orientation: sideways-right;
}



.o_btn_action {
    -webkit-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.o_btn_backspace {
    -webkit-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
}
div.o_btn_active{
    background-color: #257cc7;
}
.o_btn_space {
    -webkit-box-flex: 1;
        -ms-flex: 1 0 26%;
            flex: 1 0 26%;
}



div.o_btn>img{
    /* display: block; */
    height: 30px;
    /* -webkit-box-flex: 0;
        -ms-flex: 0 1 auto;
            flex: 0 1 auto;
    height: 80%; */
}
@media screen and (max-width: 960px) {
    div.orhonvkb_wrap  .orhon_vkb{
        color: #000000;
        background-color: #d2d3d8;
        /* width: calc(100vw - 4px); */
        /* width: 100vw; */
        height: calc(100vw*0.5 - 4px);
        left: 0;
        padding: 2px;
        bottom: 0;
        border-radius: unset;
        -webkit-border-radius: unset;
        -moz-border-radius: unset;
        -ms-border-radius: unset;
        -o-border-radius: unset;
}
    .btn_row{
        height: 25%;
        background-color: #d2d3d8;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
    }
    .o_btn{
        -webkit-box-flex: 0;
            -ms-flex: 0 1 9.58%;
                flex: 0 1 9.58%;
        background-color: #ffffff;
        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        -ms-border-radius: 5px;
        -o-border-radius: 5px;
    }
    div.o_btn_action {
        -webkit-box-flex: 1;
            -ms-flex: 1 1 auto;
                flex: 1 1 auto;    
        -webkit-box-pack: center;    
            -ms-flex-pack: center;    
                justify-content: center;
    }
    div.o_btn_space {
        -webkit-box-flex:8;
            -ms-flex:8 1 auto;
                flex:8 1 auto;
    }
    /* div.key_wrap>div{
        
    } */

    /* .orhon_vkb>div.btn_row:first-child{
        display: none;
    } */
}
