.chatbox-container{

    position: fixed;
    top: 50px;
    width: 100%;
    height: 70%;
    display: flex;
    margin: auto;

    justify-content: center;
    align-items: center;

}


.chatbox{
    width: 98%;
    height: 98%;
    background-color: rgb(102, 104, 148,0.7);
    border-radius: 12px;
    margin: 4px;
    box-shadow: 0 0 0 2px rgb(0 0 0 / 15%);
    display: flex;
    flex-flow: column;
}

@media only screen and (min-width: 600px) {
    .chatbox-container{
        top: 60px;
        width: 50%;
        right: 10px;    
    }
}

@media only screen and (min-width: 992px) {
    .chatbox-container{
        top: 70px;
        width: 30%;
        right: 10%;    
    }
}

.chatbox-header{
    height: 40px;
}

.chatbox-header i{
    line-height: 40px;
    float: right;
    margin-right: 10px;
    font-size: 26px;
    cursor: pointer;    
}

.chatbox-header i.fa-bell , .chatbox-header i.fa-bell-slash , .chatbox-header i.fa-upload {
    float: left;
    margin-left: 10px;  
}

.chatbox-footer i{
    line-height: 40px;
    float: right;
    margin-right: 10px;
    font-size: 22px;
    cursor: pointer;
    padding-left: 6px;  
}


.chatbox-middle{
    flex: 1;  /* 1 and it will fill whole space left if no flex value are set to other children*/
    overflow: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.3) rgb(102, 104, 148,0.7);
}

.chatbox-middle-inline {
    position: absolute;
    bottom: 0;
    width: 100%;
    max-height: 100%;
}

.chatbox-footer{
    display: flex;

}

.chatbox-middle::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	border-radius: 10px;
	background-color: rgb(102, 104, 148,0.7);
}

.chatbox-middle::-webkit-scrollbar
{
	width: 10px;
	background-color: rgb(102, 104, 148,0.7);
}

.chatbox-middle::-webkit-scrollbar-thumb
{
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
	background-color: #555;
}


.send-msg-input {
    border-radius: 0px 0px 0 12px;
    font-size: 14px;
    padding-left: 12px;
    flex: 1;
    border: 0;
    background: #F9FBFF;
    color: #79C7C5;
    height: 40px;
    width: 100%;
  }
  
  .send-msg-input::placeholder {
    color: #A1E2D9;
  }
  
  .send-msg-input:focus {
    color: #777777;
    outline: 0;
  }
  
  .send-msg-btn {
    border: 0;
    color: #A1E2D9;
    opacity: 0.8;
    cursor: pointer;
    outline: 0;
    height: 42px;
    border-radius: 0 0 12px 0;
    background-color: lightcyan;    
  }

  .send-msg-btn:hover {
    transform: scale(1.1);
    transition: all 0.3s ease-in-out;
    color: #79C7C5;
  }
  

  .msg-container-lc {
      text-align: right;
  }

  .msg-container-rm {
    text-align: left;
  }

  .local-msg {
    background-color: #666894;
    margin-bottom: 5px;
    margin-right: 8px;
    padding: 4px 8px 4px 8px;
    border-radius: 12px;
    display: inline-block;
    font-size: 16px;
    margin-left: 20px;
}

.remote-msg {
    background-color: #9e9e9e;
    margin-bottom: 5px;
    margin-left: 8px;
    padding: 4px 8px 4px 8px;
    border-radius: 12px;
    display: inline-block;
    font-size: 16px;
    margin-right: 20px;
}

.msg-file {
    border-radius: 0;
    line-height: 36px;
	padding: 2px 8px;
    max-width: 80%;
}

.file-name{
    margin-left: 10px;
}

.file-name a{
    color: inherit;
    text-decoration: none;
}

.file-cancel {
    margin-left: 50px;
    cursor: pointer;
    font-size: 23px;
    line-height: 36px;
    float: right;
}

.file-status {
    height: 4px;
    background-color: white;
    width: 100%;
}

.file-status-inner {
    height: 4px;
    background-color: #944d4d;
    width: 0%;
    max-width: 100%;
}

.fileLoading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    margin-bottom: -2%;
    margin-right: -20px;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
  }
  
  @keyframes spin {
    to { -webkit-transform: rotate(360deg); }
  }
  @-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); }
  }


.new-msg-balloon {
    position: absolute;
    top: 40%;
    left: 50%;
    background-color: #666894;
    padding: 4px 8px 4px 8px;
    border-radius: 12px;
    font-size: 16px;
    width: 200px;
    opacity: 0;
    cursor: pointer;
    animation: popup 3s ease-in 0s 1 normal, popout 1s ease-out 3s 1 normal;

}

@keyframes popup {
    from { top: 40%; opacity: 0; }
    50% { top: 30%; opacity: 0.9; } 
    to { top: 30%; opacity: 0.9; } 
}

@keyframes popout {
    from {  top: 30%; opacity: 0.9;  } to { top: 10%; opacity: 0; } 
}

.chat-icon{
    position: relative;
}

.chat-icon-new:after{
    position: absolute;
    right: 12%;
    top: 8%;
    content: "";
    font-size: 30%;
    padding: .6em;
    border-radius: 999px;
    background: rgba(255,0,0,.85);
    width: 1em;
    height: 1em;
  }

  .chatboxDragMode {
    border: 3px dashed silver;
  }