/* 公用 */
html, body {
    position: relative;
    height: 100%;
}
::-webkit-scrollbar {
    width:8px;
    border-radius:4px;
}
::-webkit-scrollbar-track {
    background-color:rgba(0,0,0,.1);
    border-radius:4px;
}
::-webkit-scrollbar-thumb {
    border-radius:4px;
}

.g-mt5 {
    margin-top: 5px;
}
.f-tr {
    text-align: right;
}
.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 4px;
}
.hidden {
    display: none !important;
}

/* 显示内容部分 */
.msg_content {
    width: 100%;
    height: 80%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #f5f5f5;
}
.msg_boxes {
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
    overflow: hidden;
    max-height: 100%;
}
.msg_box {
    max-width: 20em;
    font-size: 20px;
    line-height: 1.8em;
    background-color: #4caf50;
    border-radius: 4px;
    margin: 10px;
    color: #fff;
    padding: 0 .6em;
    float: right;
    clear: both;
    white-space: pre-line;
}

/* 操作窗口 */
#local-dialog {
    background: #f5f5f5;
    border-top: 1px solid #ececec;
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
}

.toolbar {
    padding: 5px 17px;
}
.toolbar > div {
    height: 20px;
    width: 25px;
    position: relative;
    font-size: 18px;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    overflow: hidden;
}
.toolbar .glyphicon {
    background-size: 100px auto;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    display: block;
    background-color: #cf3f25;
    color: #fff;
    border-radius: 2px;
    font-style: initial;
}
#input_fun_emoji .glyphicon {
    padding-left: 4px;
}

/* 输入框 */
#local-message-container {
    height: 120px;
    font-size: 20px;
    background: #f9f9f9;
    background-color: transparent;
    resize: none;
    outline: 0;
    border: none;
    padding-left: 20px;
    line-height: 1.6em;
    white-space: pre-wrap;
    overflow: hidden;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: arial;
    padding-top: 0;
}
.placeholder:before {
    content: attr(placeholder);
    display: block;
    color: #c7c7c7;
    cursor: text;
}
.curPosition {
    width: 100%;
    height: 0;
    display: block;
}

#send-message-btn {
    width: 86px;
    margin-right: 30px;
    float: right;
    background-color: #182125;
    border-color: #204d74;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
    -webkit-user-modify: read-write-plaintext-only;
}

.ctrlenter {
    float: right;
    font-size: 18px;
    color: #ccc;
    padding: 5px 10px;
}


/* emoji表情 */
.dialog-emoji {
    position: absolute;
    background-color: #f2f2f2;
    border: 1px solid #dedede;
    padding-top: 10px;
    cursor: pointer;
    top: -270px;
    left: 10px;
    opacity: 0;
}
.dialog-emoji__title {
    margin-left: 10px;
    padding: 0.4em 2em;
    padding-bottom: 3px;
    background: #fff;
    display: inline-block;
    border-radius: 4px 0 0 4px;
}
.emoji, 
.emoji_img {
    width: 32px;
    height: 32px;
    background-image: url(../img/emoji.png);
    background-repeat: no-repeat;
    float: left;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    font-size: 0;
    -webkit-transition: all .25s;
    -o-transition: all .25s;
    transition: all .25s;
}
.emoji_img {
    border: none;
    -webkit-transform: none;
    float: none;
    margin-top: -4px;
    -ms-transform: none;
    -o-transform: none;
    transform: none;
    display: inline-block;
    vertical-align: middle;
}
.dialog-emoji__content {
    background-color: #fff;
    width: 436px;
    height: 230px;
    padding: 10px;
    padding-right: 0;
    overflow: hidden;
    overflow-y: auto;
    overflow-x: hidden;
}