﻿html, body {
    height: 100%
}

body {
    margin: 0;
    padding: 0
}

.messages {
    width: 100%;
    height: calc(100% - 45px);
    position: relative;
    overflow-y: auto;
    display: flex;
}

    .messages ul {
        margin: 0;
        padding: 0;
        list-style: none;
        width: 100%;
        margin-top: auto;
    }

        .messages ul li {
            padding: 2px 5px;
            position: relative;
            word-break: break-word
        }

.message {
    font-size: 15px
}

.user-actions {
    height: 50px;
    top: -50px;
    left: 39px;
}

    .user-actions button {
        height: 100%;
        width: 48px;
        font-size: 10px;
        border: none;
        float: left;
        padding: 0;
    }

        .user-actions button .glyphicon {
            font-size: 19px;
            display: block;
            padding-bottom: 5px
        }

.message .time {
    font-size: 12px
}

.message .tag {
    font-size: 12px;
    font-weight: 500;
    display: inline-block
}

.message .username {
    font-weight: 500
}

.message.system .content {
    font-style: italic
}

.message.error .content {
    font-style: italic
}

.message .content .glyphicon {
    font-size: 13px
}

.message .emoji {
    width: auto;
    height: 18px;
    margin: 0;
}

.popup:not(.popup-open) {
    display: none
}

.popup {
    position: absolute;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,0,0,.2)
}

.input {
    height: 45px;
    position: relative
}

    .input > * {
        float: left
    }

    .input textarea {
        width: calc(100% - 90px);
        height: 100%;
        border: none;
        resize: none;
        padding-right: 5px
    }

    .input button {
        width: 45px;
        height: 45px;
        border: none
    }

    .input .emoji-button {
        background-image: url(../../willbetgamebettingsa/image/smile.png);
        background-size: 20px;
        background-repeat: no-repeat;
        background-position: center
    }

.emoji-picker {
    width: 175px;
    height: 110px;
    top: -115px;
    right: 5px
}

    .emoji-picker button {
        width: 20%;
        height: 33%;
        float: left;
        padding: 0 5px
    }

        .emoji-picker button img {
            width: 90%
        }

@media only screen and (max-width:350px) {
    .user-actions {
        left: 0;
        width: calc(100% - 2px);
    }

        .user-actions button {
            width: 25%;
        }

    .input textarea {
        width: calc(100% - 45px)
    }

    .input .emoji-button {
        display: none
    }
}

ul#users {
    display: block;
    list-style: none;
    padding: 0;
    margin: 5px 0 0
}

    ul#users li {
        display: inline-block;
        margin: 0 0 5px 5px
    }

.full_screen {
    height: 100%;
    position: relative
}

iframe {
    width: 50%;
    height: 100%;
    border: none;
    position: absolute
}

#chat_1, #chat_2, #chat_3, #chat_4 {
    height: 50%
}

#chat_1 {
    top: 0;
    left: 0
}

#chat_2 {
    top: 0;
    left: 50%
}

#chat_3 {
    top: 50%;
    left: 50%
}

#chat_4 {
    top: 50%;
    left: 0
}

#chat_1a {
    top: 0;
    left: 0
}

#chat_2a {
    top: 0;
    left: 50%
}


.fancybox-skin {
    padding: 5px !important;
}


.disconnected {
    background-color:darkred !important;
}