@import url("https://fonts.googleapis.com/css?family=Red+Hat+Display:400,500,900&display=swap");
body, html {
  overflow: hidden;
  font-family: Red hat Display, sans-serif;
  font-weight: 400;
  line-height: 1.25em;
  letter-spacing: 0.025em;
  color: #333;
  background: #F7F7F7;
}
.center {
  position: absolute;
  top: 50%;
  left: calc(50% + 12rem);
  transform: translate(-50%, -50%);
}

.speech-bubble{
  display: none;
  position:absolute;
  z-index: 999;
  box-sizing: border-box;
  padding: 0.5rem 1rem;
  margin: 1rem;
  background: #ffbb33;
  border-radius: 1.125rem 1.125rem 1.125rem 1.125rem;
  max-height: 140px;
  height: 140px;
  width:230px;
  max-width: 230px;
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.075), 0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.1);
}

.speech-bubble:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 0;
	border: 20px solid transparent;
	border-top-color: #ffbb33;
	border-bottom: 0;
	border-left: 0;
	margin-left: -10px;
	margin-bottom: -20px;
}

.speech-bubble.start:after {
  left: 65px;
}
.speech-bubble.end_br:after {
  left: 145px;
}

.speech-bubble.end_send:after {
  left: 85px;
}

.speech-bubble.end_tr:after {
	content: '';
	position: absolute;
	top: 0;
	left: 190px;
	width: 0;
	height: 0;
	border: 20px solid transparent;
	border-bottom-color: #ffbb33;
	border-top: 0;
	border-right: 0;
	margin-left: -10px;
	margin-top: -20px;
}

.pic {
  width: 4rem;
  height: 4rem;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
}

.contact {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 5rem;
  height: 5.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 5px;
}

.contacts .contact.active{
  background-color: #00000012;
}

.contacts .contact:hover{
  background-color: #00000038;
}

.contact .pic {
  position: absolute;
  left: 0;
  margin-left: 5px;
}
.contact .name {
  font-weight: 500;
  margin-bottom: 0.125rem;
}

.contact .name.pack H1{
    text-transform: uppercase;
    margin-bottom: 0px;
}

.contact .name.pack p{
  margin-top: 8px;
}

.contact .message, .contact .seen {
  font-size: 0.9rem;
  color: #999;
}

.contact .badge {
  box-sizing: border-box;
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  padding-top: 0.125rem;
  border-radius: 1rem;
  top: 0;
  left: 2.5rem;
  background: #333;
  color: white;
}

.contacts {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-6rem, -50%);
  width: 24rem;
  height: 33rem;
  padding: 1rem 2rem 1rem 1rem;
  box-sizing: border-box;
  border-radius: 1rem 0 0 1rem;
  cursor: pointer;
  background: white;
  box-shadow: 0 0 8rem 0 rgba(0, 0, 0, 0.1), 2rem 2rem 4rem -3rem rgba(0, 0, 0, 0.5);
  transition: transform 500ms;  
  max-height: 100vh;
  overflow-y: hidden;
}
.contacts h2 {
  margin: 0.5rem 0 1.5rem 5rem;
  font-size:18px;
}


.contacts #contacts_icon{
  float:left;
  margin-top: 4px;
}

div.more_agents_notice{
    color: green;
    line-height: 2rem;
    font-size: 12px;
    text-transform: uppercase;
}

.contacts .fa-bars {
  position: absolute;
  left: 2.25rem;
  color: #999;
  transition: color 200ms;
}
.contacts .fa-bars:hover {
  color: #666;
}
.contacts .contact:last-child {
  margin: 0;
}
.contacts:hover, .contacts.hovered {
  transform: translate(-23rem, -50%);
}
.contacts.no-hover
{
  transform: translate(-6rem, -50%);
}
.contacts .contacts_list{  
  height: calc(100% - 100px);
  overflow-y: scroll;
  max-height:-webkit-fill-available;
  scrollbar-width: none;/*hide scrollbar because it is hugly on safari*/
}

.contacts .hidden_agents_count{
  color: #ffbb33;
  text-align: center;
  padding-top:20px;
}

.chat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 54rem;
  /*height: 38rem;*/
  height: 100vh;
  z-index: 2;
  box-sizing: border-box;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 0 8rem 0 rgba(0, 0, 0, 0.1), 0rem 2rem 4rem -3rem rgba(0, 0, 0, 0.5);
}
.chat .contact.bar {
  flex-basis: 3.5rem;
  flex-shrink: 0;
  margin: 1rem;
  box-sizing: border-box;
}

.chat .messages {
  padding: 1rem;
  background: #F7F7F7;
  flex-shrink: 2;
  overflow-y: auto;
  box-shadow: inset 0 2rem 2rem -2rem rgba(0, 0, 0, 0.05), inset 0 -2rem 2rem -2rem rgba(0, 0, 0, 0.05);
}

.chat .messages .time {
  font-size: 0.8rem;
  background: #EEE;
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  color: #999;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
}
.chat .messages .message {
  box-sizing: border-box;
  padding: 0.5rem 1rem;
  margin: 1rem;
  background: #FFF;
  border-radius: 1.125rem 1.125rem 1.125rem 0;
  min-height: 5rem;
  /*width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;*/
  max-width: 86%;
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.075), 0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.1);
}
.chat .messages .message h2{
  line-height:1.5em;
}
.chat .messages .message.user {
  margin: 1rem 1rem 1rem auto;
  border-radius: 1.125rem 1.125rem 0 1.125rem;
  background: #333;
  color: white;
  min-height: 2.25rem;
}
.chat .messages .message .typing {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0rem;
  box-sizing: border-box;
  background: #ccc;
  border-radius: 50%;
}
.chat .messages .message .typing.typing-1 {
  -webkit-animation: typing 3s infinite;
          animation: typing 3s infinite;
}
.chat .messages .message .typing.typing-2 {
  -webkit-animation: typing 3s 250ms infinite;
          animation: typing 3s 250ms infinite;
}
.chat .messages .message .typing.typing-3 {
  -webkit-animation: typing 3s 500ms infinite;
          animation: typing 3s 500ms infinite;
}
.chat .input {
  box-sizing: border-box;
  display: inline;
  align-items: center;
  padding: 0 0.5rem 0 1.5rem;
}
.chat .input .line
{
  padding-bottom: 0.5rem;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.chat .input .notice {
  font-size: 0.7rem;
  color: red;
  width:100%;
  text-align: center;
  background-color: transparent;
  border: none;
}


.hide
{
  display:none;
  
}

button.type_speech {
      padding: 20px;      
      margin-top: 10px;
      background-color: #ffb606;
      border-radius: 0.5rem;
      border: solid 1px #ffb606;
      color: #fff;
      font-weight: 600;
      padding-top: 0.75rem;
      padding-bottom: 0.75rem;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    button.type_speech:hover{
      background-color:#000;
      border-color:#000;
    }

    button.type_speech i{
      color:#fff!important;
    }

.chat .input .legend p i {
  min-width:30px;
  margin-bottom:5px;
}

.chat .input .error p i {
  min-width:30px;
  margin-bottom:5px;
  margin-right:8px;
}

.chat .input .error p span.error_message
{
  color:red;
  display: inline-block;
  vertical-align: top;
}

.chat .input i {
  font-size: 1.5rem;
  margin-right: 0.6rem;
  color: #666;
  cursor: pointer;
  transition: color 200ms;
  vertical-align: middle;
}
.chat .input i:hover {
  color: #333;
}
.chat .input input {
  border: none;
  background-image: none;
  background-color: white;
  padding: 0.5rem 1rem;
  padding-top: 12px;
  margin-right: 1rem;
  border-radius: 1.125rem;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1), 0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.2);
  font-family: Red hat Display, sans-serif;
  font-weight: 400;
  letter-spacing: 0.025em;
  width: 83%;
  max-width: 83%;

}
.chat .input input:placeholder {
  color: #999;
}

@-webkit-keyframes typing {
  0%, 75%, 100% {
    transform: translate(0, 0.25rem) scale(0.9);
    opacity: 0.5;
  }
  25% {
    transform: translate(0, -0.25rem) scale(1);
    opacity: 1;
  }
}

@keyframes typing {
  0%, 75%, 100% {
    transform: translate(0, 0.25rem) scale(0.9);
    opacity: 0.5;
  }
  25% {
    transform: translate(0, -0.25rem) scale(1);
    opacity: 1;
  }
}

.pic.jeuxderoles {
  background-image: url("../images/cuisinier.webp");
}

.full-height {
  display:none;
  position: absolute;
  width:100%;
  height: 100vh;
  background: rgba(0,0,0,1);
  background-image:url('https://idioma-amigos.com/wp-content/uploads/2024/12/logo-vertical-background-black_letter_v2_white.png');
  background-repeat: no-repeat;
  background-size: contain;    
  background-position: center;
}

.full-height.visible {
  display: inline;
  z-index: 999999;
}

.full-height.speech-bubble_visible .msg{
  color: #fff;
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  /*border: solid 1px;*/
  text-align: center;
  top:10%;
  line-height: 1.5;
  text-transform: uppercase;
}
.full-height.speech-bubble_visible .msg h2{
  margin-bottom:0;
}
.full-height.speech-bubble_visible .msg p{
  margin-top:0;
}
.full-height.speech-bubble_visible{
  display:inline;
  z-index: 888;
  background: rgba(0, 0, 0, .5);
}

img.membership_logo
{
    position: fixed;
    left: 0px;
    bottom: 0px;
    height: 60px;
}
/*
#progress-wrapper div{
  height: 5px;
}

#progress-text{
  font-size: 0.7rem;    
  margin-bottom:0px;
}*/

@media only screen and (max-width: 385px) {
  .chat .input .notice {
    font-size: 0.4rem;
  }
  h1{
    font-size: 1.5em!important;
  }
  .chat {
    /*width: 85%!important;
    height: 100vh!important;*/
    width: auto!important;
  }

  .chat .input input {
    width: 54%!important;
  }
  .chat .input input {
    font-size: 13px!important;
  }

  .speech-bubble.start:after {
    left: 38px;
  }

  .speech-bubble.end_br:after {
    left: 170px;
  }

  .contact {
    height:6.5rem;
  }
  
}


@media only screen and (max-width: 1024px) {
  .center{
    top: auto;
      left: auto;
      transform: none;
      height:-webkit-fill-available;
      width:100%;
  }
 
  .contacts{
    border-radius: 1rem 1rem 1rem 1rem;
    width:-webkit-fill-available;
    height: calc(100% - 2px);
    top: 1px;
  }

  .contacts.hovered {
    transform: none;/*translate(0rem, 0%);*/
    transition:none;
  }
  .contacts:hover{
    transform: none;/*translate(0rem, 0%);*/
    transition:none;
  }

  .contacts h2 {
    margin: 0.5rem 0 1.5rem 3rem;
    font-size:24px;
  }
  
  .chat
  {
    /*width: 24rem;*/
    width: auto;
    height: -webkit-fill-available;  
  }
  
  .chat .input input {
    width: 61%;
    max-width: 61%;
    -webkit-appearance: none;/*required for ipad pro for box-shadow to appear*/
  }

  .speech-bubble.end_send:after {
    left: 100px;
  }
}

@media only screen and (max-width: 620px) {
  .chat .input .notice {
    font-size: 0.45rem;
  }

  .contact .name.pack H1{
    line-height: 8px;
    font-size: 14px!important;
    max-width: 165px;
  }
  
  .contact .name.pack p{
    font-size:0.7rem;
  }

  .contact .name H1{
    line-height: 8px;
    font-size: 26px!important;
    max-width: 165px;
  }
  
  .contacts{
    width:auto!important;
  }

  .contacts h2 {
    font-size:22px;
  }
  
  .speech-bubble.end_send:after {
    left: 175px;
  }
  
}