p{
    text-align: center;
    font-family: arial;
}

.box_icon {
    width: 100px;
    position: fixed;
    top: 50%;
    right: 10px;
    padding: 10px;
    border-radius: 100%;
    cursor: pointer;
}
.box_chat{
    width: 371px;
    height: 500px;
    position: fixed;
    background: #ffffff;
    bottom: 25px;
    right: 25px;
    border-radius: 5px;
    border: 1px solid silver;
    display:none;
}
.inputsender {
    width: 98%;
    height: 78px;
    font-size: 15px;
    position: absolute;
    left: 0;
    margin-top: -100px;
    border: 0;
    border-top: 1px solid silver;
    outline: none;
    resize: none;
}
.sendchat {
    width: 75px;
    background: #2196F3;
    height: 31px;
    font-size: 14px;
    cursor: pointer;
    position: absolute;
    right: 2px;
    bottom: -8px;
    border: 0;
    color: #FFF;
    z-index: 2;
}
.sender{
    width: 100%;
    position: absolute;
    bottom: 10px;
    text-align: center;
}
.brferr{
    width: 77%;
    position: absolute;
    bottom: 4px;
    text-align: left;
    height: 24px;
    z-index: 1;
}
.imgzap{
    height: 22px;
    margin-left: 10px;
    cursor:pointer;
}
.ini_chat{
    width: 100%;
    height: 340px;
    overflow: auto;
    text-align: center;
}
.top_chat{
    width: 100%;
    height: 30px;
    background: #2196f3;
}
.nometxt{
    width: 85%;
    height: 25px;
    max-width: 176px;
    text-align: center;
    border-radius: 5px;
}
.nometxtbt{
    width: 50%;
    height: 30px;
    background: #00afe5;
    border: 0;
    color: #FFF;
    margin-top: 9px;
    cursor: pointer;
    border-radius: 5px;
}

.senderclass{
    float: right;
    max-width: 75%;
    text-align: right;
    background: #d9fdd3;
    border-radius: 10px;
    padding: 10px;
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
    font-family: arial;
    font-size: 12px;
    box-shadow: 0 0 5px silver;
    position: relative;
}
.reciverclass{
    float: left;
    max-width: 75%;
    text-align: left;
    background: #ededed;
    border-radius: 10px;
    padding: 10px;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
    font-family: arial;
    font-size: 12px;
    box-shadow: 0 0 5px silver;
    position: relative;
}

.preview{
    position: absolute;
    bottom: 18px;
    left: 10px;
}


.spacing{
    float: left;
    width: 100%;
    height: 1px;
}

.emojibt{
    font-size: 12px;
    margin-left: 14px;
    position: absolute;
}

.emojiBox{
    border: 1px solid rgb(204, 204, 204);
    padding: 10px;
    width: 90%;
    height: 223px;
    margin-top: -260px;
    display: block;
    position: absolute;
    z-index: 1;
    background: #ffffffde;
    margin-left: 2%;
}

.emoji{
    font-size: 20px;
}

.emojimsg{
    font-size: 20px;
}

.time{
    font-size: 10px;
    bottom: -15px;
    position: absolute;
    width: 93px;
    margin-top: 2px;
}

.top_chatclose{
    color: #FFF;
    font-family: arial;
    font-size: 15px;
    float: right;
    padding: 6px;
    cursor: pointer;
}

.closedelete{
    position: absolute;
    top: -7px;
    right: -9px;
    background: red;
    color: #FFF;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
}


@media screen and (max-width: 500px) {

    .box_icon {
        width: 70px;
        position: fixed;
        top: 50%;
        right: 5px;  
        padding: 10px;
        border-radius: 100%;
        cursor: pointer;
    }

    .box_chat {
       width: 100%;
        height: 80%;
        position: fixed;
        background: #ffffff;
        bottom: 0;
        right: 0;
        top: 20%;
        border-radius: 5px;
        display: none;
    }
    .inputsender {
        width: 100%;
        height: 55px;
        font-size: 20px;
        border-radius: 8px 0px 0px 8px;
        resize: none;
    }
    .senderclass{
        float: right;
        max-width: 75%;
        text-align: right;
        background: #d9fdd3;
        border-radius: 10px;
        padding: 10px;
        margin-right: 10px;
        margin-top: 10px;
        margin-bottom: 15px;
        font-family: arial;
        font-size: 14px;
        box-shadow: 0 0 5px silver;
        position: relative;
    }
    .reciverclass{
        float: left;
        max-width: 75%;
        text-align: left;
        background: #ededed;
        border-radius: 10px;
        padding: 10px;
        margin-left: 10px;
        margin-top: 10px;
        margin-bottom: 15px;
        font-family: arial;
        font-size: 14px;
        box-shadow: 0 0 5px silver;
        position: relative;
    }

    .ini_chat {
        width: 100%;
        height: 75%;
        overflow: auto;
        text-align: center;
    }

    
  }


