p{
    margin-block-start: 0em !important;
    margin-block-end: 0em !important;
}

input:focus{
    box-shadow: none;
}
.chat-buddy .col-4,.chat-buddy .col-8{
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.chat-buddy{
    padding-top: 60px;
 
}


.chat-buddy h1{
        font-size: 40px;
        font-family: "Futura";
        color: rgb(75, 0, 130);
        margin-bottom: 45px !important;
        
}

.chat-buddy h1 span{
    font-size: 35px;
    color: #222222;
    font-weight: 500;
}


.regusers h2{
        font-size: 20px;
        font-family: "Poppins";
        color: rgb(245, 246, 248);
        line-height: 1.2;      
}
.regusers h2 i{
    margin-left: 100px;
    vertical-align: middle;
    
}

.regusers{
    background-color: rgb(75, 0, 130);
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.14);
}
.regusers::after{
    content: url('../images/messages-bg.jpg');
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;

}



.contacts{
    background-color: rgb(75, 0, 130);
    width: 100%;
    height: 360px;
    box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.14);
    overflow-y: scroll;
}

.contacts input[type=search]{
        border-radius: 9px;
        background-color: rgb(245, 246, 248);
        width: 90%;
        height: 30px;  
        margin: 10px 5% !important;
        padding-left:20px;
        font-size: 18px;
        font-family: "Poppins";
        color: rgba(102, 102, 102, 0.659);
             
}

.voice-message{
background-color: rgb(75, 0, 130);
box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.14);

}

.voice-message p{
    color: white;
    padding: 20px 20px;
}
.voice-message p span:first-child{
    padding-left: 10px;
}

.voice-message p span:last-child{
text-align: right;
padding-left: 100px;
}

.voice-message p i{
    vertical-align: middle;
}

.options{
    background-color: #6f6f6f;
    width: 100%;
    padding: 15px 0;
}
.options i{
    color: white;
    font-size: 18px;
    padding-left: 38px !important;
}

.userstyle{
    /* display: inline-block; */
        background-color: rgb(255, 255, 255);
        width: 100%;
        height: 80px;
        margin-left: 0%;
        position: relative;
        z-index: 1;
        margin-top: 10px;    
    }

    .userstyle p{
        color: rgb(51, 51, 51);
    }
.userstyle::before{
    content: "";
    position: absolute;
    left: 0;
    width: 5%;
    height: 80px;
    z-index: -1;
    top: 0;
    background-color: #87b037;
}

.singleuser{
    
        font-size: 14px;
        font-family: "Poppins";
        /* color: rgb(51, 51, 51); */
        color:white;
        line-height: 1.2;
        text-align: left;   
        vertical-align:middle;
        /* margin-left:50px; */
        z-index:100
        
        
}

/* Chat window */

.chat-window-header{

        background-color: rgb(255, 255, 255);
        box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.12);
        width: 100%;
        height: 136px;
         
}

.chat-window-header span i{
    color: #c9d6df;
}

.chat-window-header span,.chat-window-header p{
    width: 48% !important;
    display: inline-block;
    font-size: 25px;
    font-family: "Poppins";
    color: rgb(51, 51, 51);     
}

.chat-window-body{
    
        background-color: rgb(255, 255, 255);
        box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.14);  
        width: 100%;
        height: 332px;
        overflow-y: scroll;
        overflow-wrap: break-word;
        
}
.renderchat{
    width: 98%;
    background-color: #eff0f1;
    border: 1px solid #6f6f6f;
    margin: 10px !important;
}
.renderuser{
        font-size: 16px;
        font-family: "Poppins";
        
        line-height: 1;
        text-align: left;
        font-weight: 900;
        display: inline-block;
        width:15%;
        padding-left: 10px;
        vertical-align: top;
}



.msg{
    display: inline-block;
    font-weight: normal;
    font-size: 14px;
    width: 70%;
    text-align: left;
    vertical-align: middle;
}

.time{
    font-size: 10px;
    display: block;
    width: 80%;
    text-align: right;
    margin-left: auto;
    padding-right: 20px;
}

.chat-window-footer{
    background-color: #f4f4f4;
    height: 130px;
    display: flex;
    justify-content: space-between;
}

.chat-window-footer form{
    display: flex;
    width: 98%;
    justify-content: space-evenly;

}
.chat-window-footer form button{
    height: 45px;
    align-self: center;
    width: 60px;
    line-height: 1.2;
}
.chat-window-footer form input{
    align-self: center;
    resize: none;
    height: 84px;
    width: 80% !important;
    margin: 22px auto;
    border: 2px solid rgb(204, 204, 204);
    border-radius: 9px;
    background-color: rgb(251, 251, 251);
    color: black !important;
    font-size: 18px;
    padding-left: 15px;
}


.chat-window-footer span{
 align-self: center;
 margin-right: 20px;
 cursor: pointer;
}

.chat-window-footer i{
    color:#4b0082;
    font-size: 20px;
}

.show-alternate{
    width: 80%;
    margin: 10% auto;
    padding: 10px;
    text-align: center;
    box-shadow: 2px 2px 3px black;
  }
  
  .show-alternate a{
    margin-top: 15px;
  }

@media(max-width:1199px){
    .regusers h2 {
        font-size: 17px;
    }

    .regusers h2 i {
        margin-left: 80px;
    }

    .voice-message p {
       
        padding: 20px 10px;
    }

    .chat-window-header span, .chat-window-header p{
        font-size: 23px;
    }

    .chat-window-footer  form input{
        height: 90px;
        margin: 19px auto;
        width: 80% !important;
    }

}


@media(max-width:991px){
    .chat-window-header span, .chat-window-header p {
        font-size: 18px;
    
    }

    .regusers h2 {
        font-size: 15px;
    }
    .regusers h2 i {
        margin-left: 44px;
    }
    .options i {
        font-size: 16px;
        padding-left: 22px !important;
       
    }

    .voice-message p span:last-child {
        padding-left: 20px;
    }
    .contacts input[type=search]{
        font-size: 16px;
    }

    .regusers{
        height: 100px;
    }

    .chat-window-body{
        height: 312px;
    }

    .chat-window-footer i {
        font-size: 18px;
    }

    .renderuser{
        width: 18%;
        font-size: 14px;
    }

    .renderchat{
        width: 95%;
    }
}

@media(max-width:767px){
    .regusers {

        height: 80px;
    }
    .regusers h2 {
        font-size: 14px;
    }

    .regusers h2 i {
        margin-left: 21px;
    }

    .contacts input[type=search] {
        font-size: 13px;
    }

    .contacts {
        height:270px;
        overflow-y: auto;    
    }

    .voice-message p {
        padding: 10px 10px;
    }

    .voice-message p span:first-child {
        padding-left: 5px;
        font-size: 11px;
    }
    .voice-message p span:last-child {
        padding-left: 12px;
        font-size: 11px;
    }
    
    .options {
        padding: 23px 0;
    }

    .options i {
        font-size: 10px;
        padding-left: 18px !important;
    }

    .chat-window-header{
        height: 105.5px;
    }
    .chat-window-header span, .chat-window-header p{
        font-size: 15px;
    }

    .chat-window-body {
        height: 280px;
    }
    
    .chat-window-footer {
        height: 79px;
    }

    .chat-window-footer form button{
        height: 40px;
    }
    .chat-window-footer form input {
        height: 54px !important;
        margin: 8px auto;
        width: 75% !important;
        
    }

    .chat-window-footer span {
        margin-right: 20px;
    }

    .chat-window-footer i {
        font-size: 15px;
    }

    .renderuser{
        width: 24%;
    font-size: 12.5px;
    }
    .username{
        font-size: 12px;
    }
    .userimg img{
        width: 30px;
        height: 30px;
    }

    .userstyle {
        height: 50px;
    }
    .userstyle::before {
        height: 50px;
    }

    .show-alternate h1{
        font-size: 30px;
      }
}

@media(max-width:575px){
    .chat-buddy {
        padding-top: 30px;
    }
    .chat-window-header {
        height: 105.5px;
        background-color: cadetblue;
        margin-top: 10px;
    }
    .regusers::after {
        content: "";
    }
    .chat-buddy h1 {
        font-size: 30px;
    }
    .chat-buddy h1 span{
        font-size: 25px;
    }
    
    .usersdiv{
        display: inline-block;
        margin-left: 5%;
    }
    .contacts {
        height: 165px;
    }
    .regusers h2{
        text-align: center;
    }

    .voice-message p {
        padding: 10px 19px;
    }

    .chat-window-header p{
      color: white;
      font-size: 18px;
        padding-left: 20px;
    }
    .chat-window{
        margin-top: 10px;
    }
    chat-window-footer{
        background-color: cadetblue;
    }
    .chat-window-footer form input{
        height: 65px !important;
    margin: 8px auto;
    width: 70% !important;
    font-size: 14px;
    }
    
    .options i:not(:first-of-type) {    
        padding-left: 62px !important;
    }
    

    .contacts input[type=search] {
        display: block;
        margin: 10px auto !important;

    }

    .show-alternate{
        padding:20px 0;
      }
      .show-alternate h1{
        font-size: 20px;
      }
      .show-alternate a{
        font-size: 13px;
      }
}

@media(max-width:450px){
    .chat-window-footer input {
        width: 70% !important;
    }

    .options i:not(:first-of-type) {
        padding-left: 45px !important;
        margin-left: 10px;
    }

    .chat-window-footer .btn{
        padding: 0.375rem 0.1rem;
    }
    .chat-window-footer label{
        font-size: 14px;
    }

    .renderuser {
        width: 28%;
        font-size: 11.5px;
    }
    .msg{
        font-size: 12px;
    }

    .chat-window-header p {
        font-size: 16px;
    }

    .show-alternate h1{
        font-size: 17px;
      }

    
}

@media(max-width:375px)
{
    .chat-window-footer input {
        width: 60% !important;
    }

    .options i:not(:first-of-type) {
        padding-left: 45px !important;
        margin-left: 8px;
    }

    .show-alternate h1{
        font-size: 16px;
      }

}
@media(max-width:340px){
    .chat-window-footer input {
        width: 55% !important;
    }

    .options i:not(:first-of-type) {
        padding-left: 33px !important;
    margin-left: 8px;
    }

    
}

