body, html {
    height: 100%;
}
*{
	margin: 0;
    padding: 0;
}
input[type=button], input[type=submit], input[type=file], button { 
	-webkit-appearance: none; 
	appearance:none;
} 
.chat, body {
    background-color: #f0f0f0;
}
.chat {
	position: relative;
	width: 100%;
    height: 100%;
}
.chat .box_bd, .chat .box_ft {
    position: absolute;
    left: 0;
    right: 0;
}
.chat .box_bd {
    top: 0;
    bottom: 50px;
}
.scroll-wrapper {
    overflow: hidden!important;
    padding: 0!important;
}
.chat .box_ft {
    bottom: 0;
    background-color: #fff;
    left: 0;
    right: 0;
}

.box_ft .input {
	width: 50%;
    height: 40px;
    outline: none;
    font-size: 16px;
    text-indent: 10px;
    position: absolute;
    border-radius: 6px;
    left: 40px;
    top: 5px;
    padding: 0;
    margin: 0;
    border-width: 1px;
}
.box_ft .add-btn {
	width: 30px;
    height: 30px;
    line-height: 30px;
    outline: none;
    font-size: 20px;
    position: absolute;
    border-radius: 6px;
    right: 5px;
    background-color: #108ee9;
    color: white;
    border: 0;
    top: 8px;
}
.emoijo-btn {
	width: 30px;
    height: 30px;
    outline: none;
    font-size: 24px;
    position: absolute;
    border-radius: 6px;
    right: 40px;
    color: white;
    border: 0;
    top: 8px;
}
.box_ft .send-btn {
	width: 40px;
    height: 30px;
    outline: none;
    font-size: 14px;
    position: absolute;
    border-radius: 6px;
    right: 75px;
    background-color: #108ee9;
    color: white;
    border: 0;
    top: 8px;
}
.scroll-wrapper>.scroll-content {
    height: 100%;
    overflow-x: hidden!important;
    overflow-y: scroll!important;
}
.chat .chatContent {
    clear: both;
    display: table;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    padding: .438rem;
}
.message.others {
    float: left;
    text-align: left;
    clear: left;
}
.message {
    margin-bottom: 20px;
    float: left;
    -webkit-animation: goup .5s;
    animation: goup .5s;
}
.message.others .avatar {
    float: left;
}
.message .avatar {
    width: 2.5rem;
    height: 2.5rem;
    margin-top: .938rem;
    border-radius: 50%;
    overflow: hidden;
}
.avatar {
    background-size: contain;
    background-position: center center;
}
.avatar>img, .chat, .message {
    width: 100%;
}
img {
    height: auto;
    vertical-align: middle;
    border: 0;
    -ms-interpolation-mode: bicubic;
}

.message .content {
    overflow: hidden;
}
.message .plain .img {
	width: 200px;
}
.message .author_name {
    height: .938rem;
    margin: 0 .875rem;
    font-size: .625rem;
    line-height: .938rem;
    color: #b0b0b0;
}
.bubble.bubble_default {
    background-color: #fff;
    border-color: #919191;
}
.bubble {
    max-width: 95%;
    min-height: 2.5rem;
    display: inline-block;
    position: relative;
    text-align: left;
    font-size: .875rem;
    border-radius: 5px;
    margin: 0 5px;
}
.bubble, td, textarea {
    vertical-align: top;
}
.bubble.bubble_default.left:before {
    border-color: #919191;
}
.bubble.left:before {
    left: -.188rem;
    -webkit-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    transform: rotate(135deg);
}
.bubble:before {
    display: inline-block;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: .438rem;
    height: .438rem;
    position: absolute;
    top: .938rem;
    background-color: inherit;
    border-right-color: inherit;
    border-bottom-color: inherit;
}
.bubble:before, .chat .chatContent, .loader:after, .loader:before, .map-wrapper .map .map-pointer:before {
    content: '';
}
.bubble_cont {
    word-wrap: break-word;
    word-break: break-all;
    min-height: 2.5rem;
}
.bubble_cont .plain {
    padding: 10px;
}
pre {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    white-space: pre-wrap;
}
.message.me {
    text-align: right;
    clear: right;
}
.message.me .avatar {
    float: right;
}
.message.other .avatar {
    float: left;
}
.bubble.bubble_primary {
    background-color: #90d936;
    border-color: #6c9a36;
}
.bubble.bubble_primary.right:before {
    border-color: #6c9a36;
}
.bubble.right:before {
    right: -.188rem;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    clip: rect(0, 0, 0, 0);
}
.file-label {
    position: absolute;
    right: 10px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #108ee9;
    color: white;
    font-size: 25px;
    border-radius: 5px;
}
.chat-header {
    height: 40px;
    background-color: #F8F8F8;
    color: black;
    text-align: center;
    line-height: 40px;
}
.preview-img {
	position:absolute;
	width:100%;
	height:100%;
	top:0;
	left:0;
	display:none;
	background-color: lightgray;
}
.choice-wrapper {
    border-top: 1px solid #ebebeb;
    background-color: #f0f0f0;
    max-height: 0;
    overflow: hidden;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    -webkit-transition: max-height .2s ease-out;
    transition: max-height .2s ease-out;
}
.choice-wrapper a {
	width: 50px;
    height: 70px;
    display: inline-block;
    text-decoration: none;
    color: black;
    font-size: 12px;
    text-align: center;
}
.box_ft .input-wrapper {
	height: 50px;
}
.box_ft .voice-btn{
	position: absolute;
    top: 10px;
    left: 5px;
    width: 30px;
    height: 30px;
    background: url(../img/voice.png);
    background-size: 100%;
}
.box_ft .voice-btn.voice {
	background: url(../img/keyborad.png);
	background-size: 100%;
}
.voice-btn img {
	height: 30px;
}
.choice-wrapper img {
	width: 40px;
	margin: 5px;
}
.choice-wrapper li {
	float: left;
	margin: 10px;
}
.choice-wrapper .photo {
	position: absolute;
    top: 0;
    right: 0;
    clip: rect(0, 0, 0, 0);
}
video,audio {
	width: 220px !important;
	padding: 0;
	margin: 0;
	background: black;
}
.voice-input {
	display: none;
    border: 1px solid lightgray;
    background-color: white;
}
.voice-active {
	background-color: lightgray;
}
/**录制视频样式*/
ul,li {
	list-style: none;
	margin: 0;
	padding: 0;
}

a,div{
	-webkit-touch-callout:none;
	-webkit-user-select:none;
	-khtml-user-select:none;
	-moz-user-select:none;
	-ms-user-select:none;
	user-select:none;
}
#recordVideo {
	width: 100% !important;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
.videoContaier {
	position: absolute;;
	display: none;
	width: 100%;
	height: 100%;
	top: 0;
	background-color: white;
}
.control-video {
	position: relative;
	width: 100%;
	height: 100%;
}
/*.control-video a.close-btn {
	left: 30px;
	bottom: 170px;
}*/
.control-video div.close-btn {
	position: absolute;
	left: 30px;
	bottom: 190px;
	background-image: url(../img/close.png);
	background-repeat: no-repeat;
	background-size: 100%;
	width: 30px;
	height: 30px;
}
.control-video .close-btn img {
	width: 30px;
}
.control-video div.play-btn {
	position: absolute;
	left: calc(50% - 25px);
	bottom: 190px;
	background: url(../img/play.png);
	background-size: 100%;
	width: 70px;
	height: 70px;
}
.control-video .video-on {
	display: none;
}
.control-video .video-on img {
	width: 50px;
}
.control-video div.cancel-btn {
	position: absolute;
	left: 80px;
	bottom: 190px;
	width: 50px;
	height: 50px;
	background-image: url(../img/cancel.png);
	background-size: 100%;
	background-repeat: no-repeat;
}
.control-video div.ok-btn {
	position: absolute;
	right: 80px;
	bottom: 190px;
	width: 50px;
	height: 50px;
	background-image: url(../img/ok.png);
	background-size: 100%;
	background-repeat: no-repeat;
}
.im-emoji {
    z-index: 1800;
    position: absolute;
    width: 280px;
    height: 194px;
    bottom: 56px;
    left: calc(50% - 140px);
    border-radius: 2px;
    background: #fff;
    box-sizing: border-box;
    padding: 4px;
    box-shadow: rgba(0, 0, 0, 0.298039) 0px 4px 12px 0px;
    display: none;
}
.im-emoji .im-emoji-item {
    cursor: pointer;
    display: inline-block;
    margin: 2px 3px 0 3px;
}
.content ul li {
	margin:10px 0;
}