﻿:root {
    --side: 380px;
    --top: 80px;
    --bot: 220px;
    --width: calc(100% - var(--side));
    --side_color: #0f9c99;
    --top_color: #C7BDC0;
    --bot_color: #D9DBCF;
    --center_color: #959D99;
    --cards_color: #C5CBC0;
    --chatleft_color: #a0d9bc;
    --chatright_color: #bdc7c5;
    --chat_right_text_color: black;
    --chat_right_time_color: white;
    --chat_left_text_color: black;
    --chat_left_time_color: black;
    --chatborder_color: #eae5e7;
    --emoji-size: 1.3rem;
}

    div #messages_container{
    z-index:2;
}
.bgmusics {
    background: url(/img/res/chat-bg.jpg) repeat-y;
}

#btnChatShow {
    position: fixed;
    float: none;
    bottom: 3px;
    right: 3px;
    background-color: cadetblue;
}
    #btnChatShow:hover {
        background-color: cadetblue;
        color: white;
    }
div.chat-header {
    padding: 10px;
    display: table;
    width: 100%;
}

    div.chat-header > div.header_select {
        display: table-cell;
        text-align: right;
        width: 100%;
    }

    div.chat-header > div.header_close {
        display: table-cell;
        text-align: right;
        width: 20%
    }

        div.chat-header > div.header_close > img.close {
            visibility: hidden;
            height: 27px;
            float: left;
            opacity: 1;
            cursor: pointer;
        }

.chat-header select {
    font-size: small;
    border: thin solid #cec5c5;
    cursor: pointer;
    width: 177px;
    padding: 2px;
    border-radius: 10px;
}

#message_body {
    padding: 13px;
    position: fixed;
    z-index: 400;
    padding-bottom: 0;
    padding-top: 0;
    right: 0;
    bottom: 0;
    border-top-left-radius: 30px;
    background-color: whitesmoke;
}

    #message_body .card {
        background-color: whitesmoke;
        border-top-left-radius: 20px;
        z-index: 2;
    }



div#message_body .card-footer {
    padding: 0 !important;
    height: 200px;
    z-index:2;
}

#chatArea {
    height: 480px;
    width: 340px;
    visibility: visible;
}

#chats {
    position: relative;
    width: 100%;
    right: 0;
}

    #chats div#loadingchats {
        width: 100%;
        text-align: center;
    }



.setRight {
    width: 340px;
    float: right;
    right: 10px;
    bottom: 10px;
    /*position: fixed;*/
    z-index: 800;
}


#txtMessage[contenteditable]:empty::after {
    cursor: default;
    content: " Type your message  ...";
    color: gray;
}

#txtMessage, #editMessage, #replyMessage {
    font-size: inherit;
    padding: 1px 6px;
    direction: ltr;
    text-align: left;
    background-color: white;
    border-radius: 5px;
    min-height: 40px;
    padding: 7px;
    display: block;
    width: 100%;
    overflow: hidden;
    resize: both;
    min-height: 29px;
    line-height: 20px;
    border: 1px solid #ccc;
    font-size: small;
    margin-bottom: 5px;
}

.billboard {
    padding: 5px;
    height: 50px;
    width: 100%;
    position: absolute;
    top: -50px;
    left: 0;
    background-color: whitesmoke;
    opacity: .9;
}

    .billboard img.closebillboard {
        position: absolute;
        left: 0;
        top: 0;
        height: 23px;
        cursor: pointer;
    }

    .billboard img.billboardimage {
        position: absolute;
        right: 6px;
        top: 2px;
        height: 30px;
        width: 30px;
        max-height: 30px;
        max-width: 30px;
        display: inline-block;
        border-radius: 50%;
    }

    .billboard p {
        position: absolute;
        right: 40px;
        font-size: small;
    }

.messageWrapper {
    position: relative;
    height: 390px;
}

.msgAction {
    padding: 4px;
    width: 100%;
    /*position: absolute;*/
    left: 0;
    top: 0;
    text-align: left;
}

.replied {
    margin: 10px 0px -6px 0px;
    cursor: pointer;
    top: -8px;
    opacity: 1;
    position: relative;
    border-radius: 10px;
    z-index: 0;
    padding: 1px;
    min-height: 48px;
    height: auto;
    width: 95%;
    /* position: absolute; */
    /* top: -50px; */
    left: 8px;
    background-color: #ffffffd4;
    opacity: .9;
    border-bottom: gray solid thin;
}

    .replied p {
        right: 53px;
        top: 12px;
        font-size: x-small;
        padding: 7px;
    }

    .replied img {
        float: none !important;
        width: 33px !important;
        height: 33px !important;
        max-height: 33px;
        max-width: 33px;
        display: inline-block;
        margin-right: 12px;
        border-radius: 50%;
        position: absolute;
        top: 6px;
        border-radius: 50%;
    }

#sndBtn, #replyBtn, #editBtn {
    float: right;
    font-size: small;
    background-color: cadetblue;
}

    #sndBtn img, #replyBtn img, #editBtn img {
        height: 21px;
    }
/* Chat containers */


/* Darker chat container */
.darker {
    border-color: #ccc;
    background-color: #ddd;
}

.stickLeft {
    margin-right: 25%;
}

.stickRight {
    margin-left: 25%;
}

.container1 {
    border: 2px solid var(--chatborder_color);
    background-color: var(--chatright_color);
    border-radius: 20px;
    padding: 10px;
    margin: 10px 0;
    font-size: small;
    color: var(--chat_right_text_color);
}

.stickLeft .container1 {
    background-color: var(--chatleft_color);
    color: var(--chat_left_text_color);
}

.stickLeft .time-left {
    color: var(--chat_left_time_color);
}
/* Clear floats */
.container1::after {
    content: "";
    clear: both;
    display: table;
    width: 75%;
}

/* Style images */
.container1 img {
    float: left;
    width: 33px;
    height: 33px;
    margin-right: 12px;
    border-radius: 50%;
}

    /* Style the right image */
    .container1 img.right {
        float: right;
        margin-left: 20px;
        margin-right: 0;
    }

.container1 .dropdown-item {
    font-size: small;
}

.container1 .dropdown-menu {
    top: -10px !important;
}
/* Style time text */
.time-right {
    float: right;
    color: var(--chat_right_time_color);
}

/* Style time text */
.time-left {
    direction: ltr;
    float: left;
    color: var(--chat_right_time_color);
}


img#loading_gif {
    height: 100px;
    margin-top: 50px;
}
.emojipicker.close {
    transform: translateY(100%);
}

.emojipicker.open {
    transform: translateX(0);
    transition: transform ease-out 0.4s;
}

.emojipicker {
    position: absolute;
    top: -400px;
    left: 0;
    direction: ltr;
    width:95%;
}
div.emojipicker .emoji, button.emoji {
    font-size: 1.3rem !important;
}
.emojipickericon {
    float: right;
    direction: ltr;
    position: relative;
    top: 3px;
    font-size: x-large;
    cursor: pointer;
}

.notification-item {
    font-size: small;
}