body{
  margin: 0;
  overflow: hidden;
}

.loading {

}

p, a, h1, h2, h3, h4, h5, h6, span, textarea, input, div, hr, ul, li {
  font-family: 'Rubik', sans-serif;
  padding: 0;
  margin: 0;
  border: none;
  font-weight: 400;
  font-size: 16px;
  color: #333;
  direction: rtl;
}

.chat_init {
  float: right;
    width: 100%;
    margin-top: 30px;
}

.chat-box {
  background: #efefef;
  position: fixed;
  right: 0;
  left: 0;
  margin: auto;
  height: 100%;
  top: 0;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
}

#center-text {          
  display: flex;
  flex: 1;
  flex-direction:column; 
  justify-content: center;
  align-items: center;  
  height:85%;
  
}


.btn#my-btn {
     background: white;
    padding-top: 13px;
    padding-bottom: 12px;
    border-radius: 45px;
    padding-right: 40px;
    padding-left: 40px;
    color: #5865C3;
}
#chat-overlay {
    background: rgba(255,255,255,0.1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: none;
}
#chat-circle i {
    font-size: 37px;
    position: relative;
    left: 2px;
    top: 11px;
}
.chat-box-toggle {
    float: right;
    margin-left: 15px;
    cursor: pointer;
}
.chat-box-resize {
    float: left;
    margin-right: 0;
    cursor: pointer;
    color: #fff;
    padding-left: 0;
    padding-top: 3px;
}
.chat-box-header {
  text-align: right;
  font-size: 18px;
  width: 100%;
  z-index: 99999;
  float: right;
  padding: 9px 10px 5px 10px;
  border-bottom: 1px solid #b5b5b5;
  z-index: 9999999999999999;
}

.chat-box-header h1 {
  width: 70%;
  float: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 10px;
  color: #623a80;
  position: relative;
  font-size: 100%;
  margin: 5px;
}

.chat_list .title {
  text-align: center;
  margin: 5px auto;
  float: unset;
}
.chat_list .show_archive {
  position: absolute;
  top: 10px;
}

.chat-box-header h1 .status {
  font-size: 77%;
}

.chat-box-header a.back {
  float: right;
  position: relative;
  font-size: 120%;
  padding: 0 0px 0 2%;
}

.chat-box-header .count {
  float: left;
  font-size: 85%;
  position: relative;
  top: 1px;
  right: 3px;
  color: #337ab7;
}

.chat-box-body {
  height: 81%;
  overflow: hidden;
  position: absolute;
  width: 100%;
  top: 47px;
  max-height: 84%;
  z-index: 9;
}

.chat-input {
  border-top: 1px solid #b0b0b0;
  position: absolute;
  width: 100%;
  bottom: 0;
  background: #fff;
  z-index: 9999999;
}

.chat-input.off #chat-input ,.chat-input.off .chat-submit  {
	opacity: .5;
  pointer-events: none;
}

.chat-box-body:after , .chat_init:after  {
  content: "";
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAgOCkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGNpcmNsZSBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMS4yNSIgY3g9IjE3NiIgY3k9IjEyIiByPSI0Ii8+PHBhdGggZD0iTTIwLjUuNWwyMyAxMW0tMjkgODRsLTMuNzkgMTAuMzc3TTI3LjAzNyAxMzEuNGw1Ljg5OCAyLjIwMy0zLjQ2IDUuOTQ3IDYuMDcyIDIuMzkyLTMuOTMzIDUuNzU4bTEyOC43MzMgMzUuMzdsLjY5My05LjMxNiAxMC4yOTIuMDUyLjQxNi05LjIyMiA5LjI3NC4zMzJNLjUgNDguNXM2LjEzMSA2LjQxMyA2Ljg0NyAxNC44MDVjLjcxNSA4LjM5My0yLjUyIDE0LjgwNi0yLjUyIDE0LjgwNk0xMjQuNTU1IDkwcy03LjQ0NCAwLTEzLjY3IDYuMTkyYy02LjIyNyA2LjE5Mi00LjgzOCAxMi4wMTItNC44MzggMTIuMDEybTIuMjQgNjguNjI2cy00LjAyNi05LjAyNS0xOC4xNDUtOS4wMjUtMTguMTQ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DIuMTgzLjk5NSAzLjM2NmMxLjU2IDEuMjI2IDguNjQyLTEuODk1IDMuOTY3LTcuNzg1LTIuMzY3LTIuNDc3LTYuNS0zLjIyNi05LjMzIDAtNS4yMDggNS45MzYgMCAxNy41MSAxMS42MSAxMy43MyAxMi40NTgtNi4yNTcgNS42MzMtMjEuNjU2LTUuMDczLTIyLjY1NC02LjYwMi0uNjA2LTE0LjA0MyAxLjc1Ni0xNi4xNTcgMTAuMjY4LTEuNzE4IDYuOTIgMS41ODQgMTcuMzg3IDEyLjQ1IDIwLjQ3NiAxMC44NjYgMy4wOSAxOS4zMzEtNC4zMSAxOS4zMzEtNC4zMSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjEuMjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjwvZz48L3N2Zz4=');
  opacity: 0.07;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height:100%;
  position: absolute;
  z-index: -1;   
}

#chat-input {
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  width: 83%;
  padding: 7px 10px;
  outline: none;
  float: right;
  color: #333;
  background: #f6f6f6;
  border-radius: 9px;
  margin: 12px 2% 12px 0;
  border: 1px solid #dbdbdb;
  max-height: 135px;
  line-height: 1.3;
  resize: none;
  min-height: 53px;
}

.chat-input > form {
    margin-bottom: 0;
}
#chat-input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #ccc;
}
#chat-input::-moz-placeholder { /* Firefox 19+ */
  color: #ccc;
}
#chat-input:-ms-input-placeholder { /* IE 10+ */
  color: #ccc;
}
#chat-input:-moz-placeholder { /* Firefox 18- */
  color: #ccc;
}
.chat-submit {  
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 50%;
  color: #37c912;
  float: left;
  width: 15%;
  height: 50px;
  cursor: pointer;
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
}
.chat-submit i {  
  font-size: 19px;
  position: relative;
  top: 0;
}

.chat-logs .day {
  width: 31%;
    text-align: center;
    padding: 7px;
    display: table;
    background: #f0f8ff;
    border-radius: 30px;
    margin: 0px auto 30px auto;
}

.chat-logs .user_typing {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  z-index: 999999999999999;
  margin: auto;
  width: fit-content;
  background: #71a5dc;
  text-align: center;
  border-radius: 4px;
  padding: 3px 10px;
  color: #fff;
  display: none;
  max-width: 90%;
}

.chat-logs {
  padding: 15px 15px 0 15px;
  height: 100%;
  overflow-y: auto;
}

.chat-logs .chat_actions {
  position: absolute;
  z-index: 999999;
  top: 9px;
  width: 95%;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
  background: #fff;
  box-shadow: 0 0 3px #a7a7a7;
  display: none;
}

.chat-logs .chat_actions a {
  padding: 6px 0;
  margin: 0 2%;
}


.image.chat-msg img {
  width: 100%;
  margin-top: 10px;
}

.chat-logs::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: #F5F5F5;
}

.chat-logs::-webkit-scrollbar
{
	width: 5px;  
	background-color: #F5F5F5;
}

.chat-logs::-webkit-scrollbar-thumb
{
	background-color: #5A5EB9;
}



@media only screen and (max-width: 500px) {
   .chat-logs {
     
    }
}

.chat-msg.user > .msg-avatar img {
  width:45px;
  height:45px;
  border-radius:50%;
  float:left;
}
.chat-msg i {
  margin-top: -3px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  float: right;
  text-align: center !important;
  font-size: 153%;
  border: 1px solid #c9c9c9;
  line-height: 1.7;
  background: #fff;
  color: #b2b2b2;
}

.chat-msg.user i {
  float: left;
}

.chat-msg .msg-avatar img {
  width:45px;
  height:45px;
  border-radius:50%;
}

/* user page */

.chat-msg[type-user='1'] .cm-msg-text , 
.chat-msg.user[type-user='1']  .msg-avatar img {
  float:left;
}




/* admin page */

.chat-msg.self[type-user='1'] .cm-msg-text ,
.chat-msg.self[type-user='1'] .msg-avatar img {
  text-align: right;
  float: right !important;
}

.chat-msg.user[type-user='0'] .cm-msg-text ,
.chat-msg.user[type-user='0'] i {
  float: left !important;
}
.cm-msg-timestamp {
  font-size: 80%;
    width: 100%;
    float: right;
}

.cm-msg-text {
  background: #fff;
  padding:10px 15px 10px 15px;  
  color:#666;
  max-width: 78%;
  float:right;
  margin-left:10px; 
  position:relative;
  margin-bottom:20px;
  border-radius: 6px;
  line-break: auto;
  top: -6px;
  z-index: 9999;
  line-height: 1.1;
  direction: rtl;
}

.cm-msg-text:after {
	content: '';
    position: absolute;
    display: block;
    width: 0;
    z-index: 1;
    border-style: solid;
    border-color: transparent #5a5eb9;
    border-width: 12px 0 12px 13px;
    top: 50%;
    right: -6px;
    margin-top: -13px;
}
.chat-msg.user .cm-msg-text:after {
	left: -6px;
    right: unset;
    border-color: transparent #fff;
    border-width: 12px 13px 12px 0;
}

.cm-msg-text.main {
  width: 100%;
  max-width: 93%;
  border-radius: 5px;
  background: #623a80;
  color: #fff;
}

.cm-msg-text .message {
  white-space: pre-line;
  color: inherit;
}




.chat-msg {
  clear: both;
  float: right;
  width: 100%;
}
.chat-msg.self > .cm-msg-text {  
  float:right;
  margin-right:10px;
  background: #5A5EB9;
  color:white;
}

.chat-msg.self[type-user='1'] > .cm-msg-text {  
  float:left;
  margin-right:10px;
  background: #5A5EB9;
  color:white;
}

.cm-msg-button>ul>li {
  list-style:none;
  float:left;
  width:50%;
}
.cm-msg-button {
    clear: both;
    margin-bottom: 70px;
}

.chat_init input.error {
  border: 1px solid red;
}

.chat_init p , .chat_init h2 {
  text-align: center;
  font-weight: 500;
  width: 70%;
  margin: 15px auto;
}

.chat_init input , .chat_init textarea  {
  margin: 0 auto;
  display: block;
  padding: 10px;
  margin-top: 10px;
  background: #fff;
  width: 70%;
  border: 1px solid #c7c7c7ee;
}
.chat_init a {
	margin: 9px auto;
    display: block;
    width: 70%;
    padding: 9px;
    text-align: center;
    background: #6b3e8f;
    color: #fff !important;
}
.chat_init a:hover {
    cursor: pointer;
    background: #4b1f6e;
    text-decoration: none;
}

.lds-ellipsis {     
  position: relative;
  width: 64px;
  height: 20px;
  margin: 0 auto;
  display: block;
} 


.lds-ellipsis div {
  position: absolute;
  width: 8px;
  height: 8px;
  top: 7px;
  background: #fff;
  border-radius: 100%;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.cm-msg-text .lds-ellipsis div {
  background: #37c912 !important;
}


.lds-ellipsis div:nth-child(1) {   left: 6px;   animation: lds-ellipsis1 0.6s infinite; } 
.lds-ellipsis div:nth-child(2) {   left: 6px;   animation: lds-ellipsis2 0.6s infinite; } 
.lds-ellipsis div:nth-child(3) {   left: 26px;   animation: lds-ellipsis2 0.6s infinite; } 
.lds-ellipsis div:nth-child(4) {   left: 45px;   animation: lds-ellipsis3 0.6s infinite; } @keyframes lds-ellipsis1 {   0% {     transform: scale(0);   }   100% {     transform: scale(1);   } } @keyframes lds-ellipsis3 {   0% {     transform: scale(1);   }   100% {     transform: scale(0);   } } @keyframes lds-ellipsis2 {   0% {     transform: translate(0, 0);   }   100% {     transform: translate(19px, 0);   } }


.preload_msg {
	float: right;display:none;max-width: 100%;margin-left: 30%;

}

.cm-msg-text.main:after , .preload_msg::after {
  display:none;
}

.lightbox {
  background: #4c4c4c;
  z-index: 999;
  display: none;
  position: fixed;
  height: 100%;
  width: 100%;
}
.lightbox a {
  color: #fff;
  position: fixed;
  top: 2%;
  right: 3%;
  font-size: 32px;
  z-index: 999;
}
.lightbox .htm {
  position: absolute;
  width: 100%;
  height: 100%;
}

img.img_toggle {
  width: 100%;
}

.ptt.chat-msg .cm-msg-text {
  width: 100%;
}
.ptt.chat-msg audio {
  width: 100%;
  height: 35px;
  margin-top: 9px;
}



.progress {
  height: 2px !important;
  width: 100%;
  background-color: #e1c8f4;
  border-radius: 2px;
  background-clip: padding-box;
  overflow: hidden;
  position: fixed;
  top: 0;
  z-index: 9999999999;
}
.progress .determinate {
  position: absolute;
  background-color: inherit;
  top: 0;
  bottom: 0;
  background-color: #26a69a;
  transition: width .3s linear; 
}
.progress .indeterminate {
  background-color: #6b3e8f; 
}
.progress .indeterminate:before {
    content: '';
    position: absolute;
    background-color: inherit;
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;
    -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
   animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; }
  .progress .indeterminate:after {
    content: '';
    position: absolute;
    background-color: inherit;
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;
    -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    -webkit-animation-delay: 1.15s;
   animation-delay: 1.15s; }

@-webkit-keyframes indeterminate {
0% {
  right: -35%;
  left: 100%; }
60% {
  right: 100%;
  left: -90%; }
100% {
  right: 100%;
  left: -90%; } }
@keyframes indeterminate {
0% {
  right: -35%;
  left: 100%; }
60% {
  right: 100%;
  left: -90%; }
100% {
  right: 100%;
  left: -90%; } 
}
@-webkit-keyframes indeterminate-short {
0% {
  right: -200%;
  left: 100%; }
60% {
  right: 107%;
  left: -8%; }
100% {
  right: 107%;
  left: -8%; } 
}
@keyframes indeterminate-short {
0% {
  right: -200%;
  left: 100%; }
60% {
  right: 107%;
  left: -8%; }
100% {
  right: 107%;
  left: -8%; } 
}
