@import url('https://fonts.googleapis.com/css?family=Raleway');  

/*--------------------
Mixins
--------------------*/
@mixin center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@mixin ball {
  @include center;
  content: '';
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  z-index: 2;
  margin-top: 4px;
  animation: ball .45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
}


/*--------------------
Body
--------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}
body {
  background-color: #21242d;
  background-size: cover;  
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-size: 12px;
  /*line-height: 1.3;*/
  /*overflow: hidden;*/
}

.bg {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  background: url('https://images.unsplash.com/photo-1451186859696-371d9477be93?crop=entropy&fit=crop&fm=jpg&h=975&ixjsv=2.1.0&ixlib=rb-0.3.5&q=80&w=1925') no-repeat 0 0;
  filter: blur(80px);
  transform: scale(1.2);
}


/*--------------------
Chat
--------------------*/
#chat {
  display: none;
  padding:0 0 10px 0;
  position: fixed;
  right: 15px;
  bottom: 26px;
  z-index: 999;
  border: 1px solid #dedede;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, .2);
  background-color: #fff;
}

/*--Button start chat--*/
.chat-btn { 
	position: fixed;
	right: 20px;
	bottom: 20px;	
	height: 50px;	
	width: 50px;
	z-index: 9999;
}

/*--Chat login--*/
#chat .testimonial-section-four .form-column .inner-column {
  margin-left: 0;
  margin-top: 0;
}
#chat .testimonial-section-four {  
  background-image: none; 
  background-color: #ff7d20; 
}

/*--Chat text+avatar--*/
.chat-message {
  @include center;
  /*width: 600px;*/
  /*eight: 90%;*/
  width: 97%;
  height: calc(100vh - 140px);
  /*
  height: 500px;
  max-height: 500px; 
  */
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, .2);

  /*background: linear-gradient(to bottom, #764f9769, rgb(255, 143, 0)), url(bg-1.png?6);*/
  background: linear-gradient(to bottom, #ffffffe0, #ffffff), url(bg-1.png?8);  
  /*background: linear-gradient(to bottom, #764f9769, rgb(255, 143, 0)), url(https://www.shutterstock.com/image-vector/social-media-sketch-vector-seamless-600nw-1660950727.jpg);*/
  /*background-color: #fff;*/
  /*background-size: cover;*/
  
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  margin: 8px;
  /*margin-top: 91px;*/
}
.video {
  width: 100%;
  /*height: calc(100vh - 115px);*/
  z-index: 2;
  overflow: hidden;
  /*box-shadow: 0 5px 30px rgba(0, 0, 0, .2);*/
  background: rgba(0, 0, 0, .5);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  /*margin: 8px;*/
  display: inline-flex;
  /*margin-top: 91px;*/
}

.chat-login{
	display: block;
	width: 100%;
	height: 80%;		
	overflow-x: hidden;
	overflow-y: auto;
	/*
	border: 1px solid #dedede;
	border-radius: 10px;
	box-shadow: 0 5px 30px rgba(0, 0, 0, .2);
	*/
}
.chat-login-content{
	height: max-content;
	width: 95%;
	margin: 0 auto;
	margin-top: 12px;
	text-align: center;
	color: #fff;
}
.chat-login-content p{
	font-size: 12px;
	text-align: right;			
}
.chat-login-content img{
	width: 80px;
	float: right;
	margin-top: 7px;
}

.chat-container{
	display: none;
	position: relative;
}

#nome_assistente{
	color: ##212121;
}	
	
@media(min-width:481px){ /*tablet/PC*/
	#avatar {
		right: 20px;
		top: 12px;
		position: absolute;
		width: 20%;
		z-index: 9;
	}
}
@media(max-width:480px){ /*smartphone*/
	#avatar {
		display: none;		
	}
}

/*Chat Title*/
.chat-title {
  flex: 0 1 45px;
  position: relative;
  z-index: 2;
  background-color: #ff7d20;
  /*background: linear-gradient(312deg, rgba(175,92,0,1) 0%, rgba(255,159,0,1) 35%, rgba(249,204,173,1) 100%); */
  color: #fff;
  /*text-transform: uppercase;*/
  text-align: left;
  padding: 10px 10px 10px 60px;
  
  h1, h2 {
    font-weight: normal;
    font-size: 16px;
    margin: 0;
    padding: 0;
  }
  
  h2 {
    color: rgba(255, 255, 255, .5);
    font-size: 12px;
    /*letter-spacing: 1px;*/
  }
  
  .avatar {
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 9px;
    border-radius: 30px;
    width: 40px;
    height: 40px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.24);
    
    img {
      width: 100%;
      height: auto;
    }
  }
}

/*Messages*/
.messages {
  flex: 1 1 auto;
  /*color: rgba(255, 255, 255, .5);*/
  /*color: rgb(255 255 255 / 69%);*/
  color: #000;
  overflow: hidden;
  position: relative;
  width: 100%;
  
  & .messages-content {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
	overflow: auto;
  }

  
  .message {
    clear: both;
    float: left;
    padding: 3px 10px 3px;
    border-radius: 10px 10px 10px 0;
    /*background: rgba(0, 0, 0, .3);*/
    background: #ff9b54;
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.4;
    margin-left: 35px;
    position: relative;
    /*text-shadow: 0 1px 1px rgba(0, 0, 0, .2);*/
    
    .timestamp {
      position: absolute;
      bottom: -16px;
      font-size: 11px;
      color: rgb(255, 255, 255, 60%);
    }
    
    &::before {
      content: '';
      position: absolute;
      bottom: -5px;
      border-top: 6px solid #ff9b54;
      left: 0;
      border-right: 7px solid transparent;
    }

	.avatar {
      position: absolute;
      z-index: 1;
      bottom: -5px;
      left: -35px;
      border-radius: 30px;
      width: 30px;
      height: 30px;
      overflow: hidden;
      margin: 0;
      padding: 0;
      border: 2px solid rgb(215, 215, 215);
	  background: #fff;
	  box-shadow: 0 1px 5px rgba(0, 0, 0, .2);

      img {
        width: 100%;
        height: auto;
      }
    }
    
    &.message-personal {
      float: right;
      color: #000;
      text-align: right;
      /*background: linear-gradient(120deg, #69248a, #258761);*/
	  background: #dbdbdc;
      border-radius: 10px 10px 0 10px;
      
      &::before {
        left: auto;
        right: 0;
        border-right: none;
        border-left: 5px solid transparent;
        border-top: 4px solid #dbdbdc;
        bottom: -3px;
      }
    }
    
    &:last-child {
      margin-bottom: 30px;
    }
    
    &.new {
      transform: scale(0);
      transform-origin: 0 0;
      animation: bounce 500ms linear both;
    }
    
    &.loading {

      &::before {
        @include ball;
        border: none;
        animation-delay: .15s;
      }

      & span {
        display: block;
        font-size: 0;
        width: 20px;
        height: 10px;
        position: relative;

        &::before {
          @include ball;
          margin-left: -7px;
        }

        &::after {
          @include ball;
          margin-left: 7px;
          animation-delay: .3s;
        }
      }
    }
    
  }
}

/*Message Box*/
.message-box {
  flex: 0 1 40px; /* << */
  width: 100%;
  /*background: rgba(0, 0, 0, 0.3);*/
  /*background: #0a0c0f;*/
  border-top: 1px solid #cbcbcb;
  padding: 10px 20px 10px 20px;
  position: relative;
  z-index: 999;
  /* << height: 100px; */
  
  & .message-input {
    background: none;
    border: none;
    outline: none!important;
    resize: none;
    color: #000;
    font-size: 15px;
    height: 90%;
    margin: 0;
    padding-right: 20px;
    width: 87%;
	font-family: 'Raleway', Helvetica, Arial, sans-serif;
	}
  
   & .message-submit {
    position: absolute;
    z-index: 1;
    top: 17px;
    right: 17px;
    color: #fff;
    border: none;
    background: #ff9b54;
    font-size: 13px;
	letter-spacing: 1px;
    font-family: 'Raleway', Helvetica, Arial, sans-serif;
    font-weight: bold;
	text-transform: uppercase;
    line-height: 1;
    padding: 6px 10px; 
    border-radius: 4px;
    outline: none!important;
    transition: background .2s ease;
	}
   
    &:hover {
		/*background: #000;*/
    }
	
	textarea:focus:-webkit-placeholder{
		color: transparent;
	}
}

/*button send*/
#chat .message-submit{
  background-color: #444;
}

/*Custom Srollbar*/
.mCSB_scrollTools {
  margin: 1px -3px 1px 0;
  opacity: 0;
}

.mCSB_inside > .mCSB_container {
  margin-right: 0px;
  padding: 0 22px;
}

.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
  background-color: rgba(0, 0, 0, 0.5)!important;
}

/*Bounce*/
@keyframes bounce { 
  0% { transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  4.7% { transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  9.41% { transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  14.11% { transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  18.72% { transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  24.32% { transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  29.93% { transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  35.54% { transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  41.04% { transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  52.15% { transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  63.26% { transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  85.49% { transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  100% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); } 
}


@keyframes ball { 
  from {
    transform: translateY(0) scaleY(.8);
  }
  to {
    transform: translateY(-10px);
  }
}

.title_chat{ 
	height: 50px;
	width: 100%;
	background: #361992;
	color: #fff;
	padding: 10px 29px;	
}
.option_chat{ 
	height: 50px;
	background-color: #0a0a0a;
	color: #fff;
	padding: 10px 29px;
	display: inline-flex;
	width: 68%;
}
