@font-face {
    font-family: 'fontello';
    src: url('../fonts/fontello.eot?96472854');
    src: url('../fonts/fontello.eot?96472854#iefix') format('embedded-opentype'), url('../fonts/fontello.woff2?96472854') format('woff2'), url('../fonts/fontello.woff?96472854') format('woff'), url('../fonts/fontello.ttf?96472854') format('truetype'), url('../fonts/fontello.svg?96472854#fontello') format('svg');
    font-weight: normal;
    font-style: normal;
}


/*
.icon-address-book:before { content: '\f2b9'; }
.icon-address-book-o:before { content: '\f2ba'; }
.icon-address-card:before { content: '\f2bb'; }
.icon-address-card-o:before { content: '\f2bc'; }
.icon-user-circle:before { content: '\f2bd'; }
.icon-user-circle-o:before { content: '\f2be'; }
.icon-user-o:before { content: '\f2c0'; }
.icon-id-badge:before { content: '\f2c1'; }
.icon-id-card:before { content: '\f2c2'; }
.icon-id-card-o:before { content: '\f2c3'; }
*/
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html{
    background: #f9f9f9;
    background: linear-gradient(to bottom, #ffffff 0%,#e8f0ef 50%,#e8e8e8 100%);
    height: 100%;
    min-height: 100%;
}

body {
    background: #f9f9f9;
    background: linear-gradient(to bottom, #ffffff 0%,#e8f0ef 50%,#e8e8e8 100%);
    margin: 0;
    height: 100%;
    position: relative;
}

.head,
.body,
.controls {
    left: 10px;
    position: absolute;
    right: 10px;
}

#chat {
    height: 100%;
    overflow: hidden;
    padding: 10px;
    position: absolute;
    width: 100%;
}

.head {
    height: 60px;
    top: 10px;
}

.body {
    background: #fff;
    border: 1px solid #ccc;
    bottom: 70px;
    overflow: auto;
    padding: 10px;
    top: 70px;
}

.auth-warning {
    display: none;
    float: right;
    height: 40px;
    line-height: 40px;
    margin-left: 5px;
    position: relative;
    text-align: center;
    width: 40px;
}

.Autorized .auth-warning {
    display: block;
}

.auth-warning::before {
    /*animation: warning infinite alternate .8s linear;*/
    content: "\0e802";
    color: rgb(255, 88, 93);
    font-family: fontello;
    font-size: 18px;
}

.auth-warning .tooltip {
    background: #fff;
    border: 1px solid rgb(255, 88, 93);
    color: #333;
    display: none;
    line-height: 16px;
    min-width: 200px;
    padding: 5px;
    position: absolute;
    right: 5px;
    text-align: justify;
    top: 100%;
    z-index: 100;
}

.auth-warning:hover .tooltip {
    display: block;
}

.controls {
    bottom: 10px;
    height: 60px;
    padding: 0 5px;
}

.head .title {
    font-size: 14px;
    overflow: hidden;
}

.head .icon {
    display: inline-block;
}

.head .icon::before {
    content: "\0f1d7";
    font-size: 40px;
    font-family: fontello;
    line-height: 40px;
}

.msg-item {
    /*border-top: 1px solid #ccc;*/
    min-height: 80px;
    padding: 10px 60px;
    position: relative;
}

.msg-item::after {
    content: "";
    display: block;
    clear: both;
}

.msg-item:first-child {
    border-top: none;
}

.msg-item .user-face {
    color: #1e90ff;
    display: block;
    height: 40px;
    line-height: 20px;
    left: 0;
    position: absolute;
    text-align: center;
    width: 40px;
}

.msg-item .host-face {
    color: #1e90ff;
    display: block;
    height: 40px;
    line-height: 20px;
    top: 0px;
    right: 0px;
    position: absolute;
    text-align: center;
    width: 40px;
    right: 6px;
    top: 5px;
}

.msg-item .sad-host-face {
    color: #1e90ff;
    display: block;
    height: 40px;
    line-height: 20px;
    top: 0px;
    right: 0px;
    position: absolute;
    text-align: center;
    width: 40px;
    right: 6px;
    top: 5px;
}

.user-msg + .user-msg .user-face {
    display: none;
}

.user-msg + .user-msg .arr,
.host-msg + .host-msg .arr {
    display: none;
}

.msg-item [class*='face']::before {
    content: "\0f2be";
    color: #1e90ff;
    display: block;
    font-family: fontello;
    font-size: 40px;
    line-height: 40px;
}

.msg-item .user-face {
    left: auto;
    right: 0;
}

.msg-item .txt {
    background: #f3f3f3;
    /*background: rgba(6, 80, 60, .1);*/
    border-radius: 8px;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, .5);
    float: left;
    line-height: 20px;
    min-height: 46px;
    min-width: 70px;
    position: relative;
    padding: 10px 10px 20px 10px;
}

.msg-item.active .txt {
    float: none;
}

.msg-item .txt::after {
    content: attr(data-timestamp);
    display: block;
    font-size: 12px;
    line-height: 14px;
    position: absolute;
    right: 35px;
    bottom: 2px;
}

.msg-item.user-msg .txt {
    /*background: rgba(220, 223, 60, .1);*/
    float: right;
}

.msg-item.user-msg .arr::after,
.msg-item .arr::after {
    border: 5px solid transparent;
    border-right: 10px solid #f3f3f3;
    content: "";
    display: block;
    height: 0;
    position: absolute;
    right: 100%;
    top: 10px;
    width: 0;
}

.msg-item.user-msg .arr::before,
.msg-item .arr::before {
    border: 7px solid transparent;
    border-right: 12px solid rgba(0, 0, 0, .2);
    content: "";
    display: block;
    height: 0;
    position: absolute;
    right: 100%;
    top: 8px;
    width: 0;
}

.msg-item.user-msg .arr::after {
    border-right: 5px solid transparent;
    border-left: 10px solid #f3f3f3;
    left: 100%;
    right: auto;
}

.msg-item.user-msg .arr::before {
    border-right: 7px solid transparent;
    border-left: 12px solid rgba(0, 0, 0, .2);
    left: 100%;
    right: auto;
}

.msg-item:not(.active) .msg-inp,
.msg-item:not(.active) .msg-btns {
    display: none;
}

button {
    background: #06503c;
    border: none;
    border-radius: 20px;
    color: #f8f8f8;
    cursor: pointer;
    display: inline-block;
    line-height: 16px;
    margin-top: 5px;
    outline: none;
    opacity: 1;
    padding: 8px 5px;
    text-align: center;
    -webkit-transition: all .4s;
    -moz-transition: all .4s;
    -ms-transition: all .4s;
    transition: all .4s;
    width: 100%;
}

.buttons button:hover {
    opacity: .8;
}

.controls {
    padding: 5px 0;
}

input[type=text]{
    min-width: 250px;
}
input[type=text],
textarea {
    border: 1px solid #ccc;
    font-size: 16px;
    line-height: 20px;
    outline: none;
    padding: 5px 10px;
}


textarea {
    width: 100%;
    resize: vertical;
    overflow: auto;
    max-height: 100px;
}

.input-control {
    max-height: 0;
    overflow: hidden;
    -webkit-transition: all .4s ease-out;
    -moz-transition: all .4s ease-out;
    -ms-transition: all .4s ease-out;
    transition: all .4s ease-out;
}

.input-control.opened {
    max-height: 300px;
    -webkit-transition: all .4s ease-in;
    -moz-transition: all .4s ease-in;
    -ms-transition: all .4s ease-in;
    transition: all .4s ease-in;
}

.msg-inp input {
    margin: 8px 0;
    min-width: 0;
}

.msg-inp input,
.input-control input {
    width: 100%;
}

.enter-icon {
    cursor: pointer;
    float: right;
    height: 40px;
    margin-left: 10px;
    width: 40px;
}

.enter-icon::before {
    content: "\0e800";
    color: #1e90ff;
    font-family: fontello;
    font-size: 32px;
}

.inp-wrap {
    overflow: hidden;
}

.loading .msg-item:last-child {
    opacity: 0.4;
}

.loading .msg-item:last-child .txt::before {
    animation: spin linear infinite .5s;
    border: 2px solid #ccc;
    border-top: 2px solid #333;
    border-radius: 50%;
    bottom: 3px;
    content: "";
    display: block;
    height: 10px;
    left: 3px;
    position: absolute;
    width: 10px;
}

span.err-txt {
    color: red;
    font-size: 12px;
}

.radio-wrap {
    padding: 10px;
}

.voting {
    text-align: center;
}

.voting input[type=radio] {
    display: inline-block;
    margin: 0;
}

.voting .lbl-txt {
    display: block;
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes warning {
    0% {
        text-shadow: 0 0 8px red;
    }

    100% {
        text-shadow: 0 0 1px red;
    }
}

@-webkit-keyframes warning {
    0% {
        text-shadow: 0 0 8px red;
    }

    100% {
        text-shadow: 0 0 1px red;
    }
}

@media screen and (min-width: 720px) {
    .buttons {
        line-height: 0;
        text-align: justify;
    }

    .buttons::after {
        content: "";
        display: inline-block;
        width: 100%;
    }

    button {
        width: calc(50% - 3px);
    }
}

@media screen and (max-width: 480px) {
    .msg-item {
        padding: 10px 0 10px 60px;
    }

    .msg-item .user-face {
        left: 0;
        right: auto;
    }

    .msg-item.user-msg .txt {
        float: left;
    }

    .msg-item.user-msg .txt::before {
        border-left: 5px solid transparent;
        border-right: 10px solid #f3f3f3;
    }

    .msg-item.user-msg .arr::before,
    .msg-item.user-msg .arr::after {
        left: auto;
        right: 100%;
    }

    .msg-item.user-msg .arr::before {
        border: 7px solid transparent;
        border-right: 12px solid rgba(0, 0, 0, .2);
    }

    .msg-item.user-msg .arr::after {
        border: 5px solid transparent;
        border-right: 10px solid #f3f3f3;
    }
}
/* user \0f2c0 */




#chat,
input,
textarea,
button,
input[type=text],
textarea {
    font-family: 'Roboto Condensed', 'Roboto', Helvetica, Arial, sans-serif;
    font-size: 14px;
}

#chat {
    padding: 0;
    border-radius: 11px;
}

.head,
.body,
.controls {
    left: 0;
    right: 0;
}

.head {
    background: rgb(50, 188, 173);
    height: 40px;
    top: 0;
}

.head .close {
    cursor: pointer;
    float: right;
    height: 40px;
    text-align: center;
    width: 40px;
}

.head .close:hover {
    background: rgb(50, 188, 173);
    color: white;
}

.body {
    bottom: 0;
    border: none;
    top: 40px;
    border: 4px solid rgb(50, 188, 173);
    border-top-width: 0px;
    background: #efe7e3;
}

.controls {
    bottom: 0;
    display: none;
}

.head .title {
    line-height: 40px;
    text-align: center;
    color: white;
}

.title .icon {
    float: left;
    width: 40px;
}

.head .icon::before {
    content: "\0e800";
    font-size: 20px;
}

.close .icon::before {
    content: "\0e803";
    color: white;
}

.msg-item .host-face::before {
    background: url(../fonts/Trizub_blue.svg) no-repeat;
    background-size: 80%;
    content: "";
    height: 40px;
    overflow: hidden;
    width: 40px;
    background-position-x: center;
}

.msg-item .sad-host-face::before {
    background: url(sad_operator.png) no-repeat;
    background-size: 100%;
    border-radius: 50%;
    content: "";
    height: 40px;
    overflow: hidden;
    width: 40px;
}

.msg-item [class*='face']::before {
    color: #06503c;
}

.msg-item .user-face {
    display: none;
    color: #333;
}

.msg-item {
    padding: 20px 10px 10px;
}

.msg-item .txt {
    background: #f2f5fa;
    border-radius: 0;
    box-shadow: none;
    float: right;
    line-height: 20px;
    min-height: 40px;
    padding: 10px;
    text-align: justify;
}

.msg-item.host-msg {
    padding-right: 0;
    padding: 60px 10px 10px;
}

.host-msg .txt {
    background: #fcd700;
    border: 1px solid #fcd700;
    border-radius: 6px;
}

.msg-item.user-msg {
    margin-left: -20px;
}

.msg-item.user-msg .txt {
    float: left;
    background: #008fd5;
    color: white;
}

.msg-item .arr {
    display: none;
}

.msg-item .txt::after {
    bottom: auto;
    color: rgb(50, 188, 173);;
    top: -20px;
}

.msg-item.user-msg .txt::after {
    right: auto;
    left: 5px;
}

.msg-btns {
    line-height: 0;
}

#submit_comment,
#comment,
.radio-wrap {
    line-height: 20px;
}

.radio-wrap {
    padding-bottom: 5px;
}

button {
    background: rgb(50, 188, 173);;
    border-radius: 0;
    color: #fff;
}

button:hover {
    background: rgba(1, 89, 164, 0.72);
}

.auth-warning {
    margin-left: -40px;
}

.radio-wrap label {
    float: left;
    padding: 0 5px;
    width: 20%;
}

.radio-wrap::after {
    content: "";
    clear: both;
    display: block;
}

.comment-wrap {
    height: 0;
    overflow: hidden;
    position: relative;
    -webkit-transition: all .4s;
    -moz-transition: all .4s;
    -ms-transition: all .4s;
    transition: all .4s;
}

.comment-wrap::after {
    content: attr(data-placeholder);
    display: block;
    position: absolute;
    left: 5px;
    line-height: 20px;
    opacity: .6;
    top: 0;
}

.comment-wrap.hide-placeholder::after {
    display: none;
}

.comment-wrap.show {
    height: 60px;
}

#comment {
    border-width: 0;
    height: 0;
    padding: 0;
    -webkit-transition: all .4s;
    -moz-transition: all .4s;
    -ms-transition: all .4s;
    transition: all .4s;
}

.show #comment {
    border-width: 1px;
    height: 60px;
}

.auth-warning .tooltip {
    font-size: 12px;
}

.hide {
    display: none;
}

.host-msg .triangle {
    border-color: rgb(252, 215, 0) rgba(252, 215, 0, 0) rgba(252, 215, 0, 0) rgba(252, 215, 0, 0.0);
    border-style: solid;
    border-width: 15px 15px 0 15px;
    height: 0;
    width: 0;
    transform: rotate(180deg);
    position: absolute;
    right: -1px;
    top: -13px;
}

/*.host-msg .triangle span {
    border-color: rgb(252, 215, 0) rgba(252, 215, 0, 0) rgba(252, 215, 0, 0) rgba(252, 215, 0, 0.0);
    border-style: solid;
    border-width: 14px 14px 0 14px;
    height: 0;
    width: 0;
    position: absolute;
    right: -14px;
    top: -15px;
}*/

#sad {
    background: url(sad_smile.png) no-repeat;
    height: 20px;
    width: 20px;
    top: 5px;
    right: 45px;
    position: absolute;
}
.msg-controls input::placeholder {
    color: #ff000066;
}










