html{
    background: #52f8fd;
}
.section{
    background-image:url(img/bg_index.jpg);
    background-position:center center;
    height:100vh;
    background-size: cover;
}
h1, h2, .title{
 
}
h1, .title, .title:not(:last-child){
    margin-bottom:0;
}
h2{
    margin-top:0;
    font-size:1.4em;
}
.text{
    max-width:750px;
    color:#333;
    /* border:1px solid #fff; */
    border-radius:30px;
    margin-top:20px;
}
input[type="text"]{
    max-width: 310px;
    border-radius:25px;
    background: #fbcdfe;
}
.field{
    float: left;
    margin-bottom:10px;
    margin-right:10px;
}
span i{
    color: #fff;
}
.button{
    color:#333;
    height: 190px;
    border-radius: 120px;
    width: 190px;
    background-color:#fbcdfe;
    font-size: 1.2em;
    text-align:center;
    line-height: 30px;
}
.button i{
    font-size:2em;
}
form{
    margin-top:40px;
}
.stats{
    font-size:3em;
    text-align:center;
    margin-top:40px;
    padding:20px;
}
.stats span{
    font-size:0.3em;
    display:block;
    color:#333;
    font-weight: 600;
}


.section.messages{
    background-image:url(img/bg_messages.jpg);
    background-position:center center;
    height:100vh;
    background-size: cover;
}

.section.messages #wrapper {
    width: 600px;
    margin: 50px auto;
  }
  
  .section.messages .chat ul {
    margin: 0px;
    padding: 0px;
    list-style: none;
  }
  
  .section.messages .message-left .message-time {
    display: block;
    font-size: 12px;
    text-align: left;
    padding-left: 30px;
    padding-top: 4px;
    color: #333;
    font-family: Courier;
  }
  
  .section.messages .message-right .message-time {
    display: block;
    font-size: 12px;
    text-align: right;
    padding-right: 20px;
    padding-top: 4px;
    color: #333;
    font-family: Courier;
  }
  
  .section.messages .message-left {
    text-align: left;
    margin-bottom: 16px;
  }
  
  .section.messages .message-left .message-text {
    max-width: 80%;
    display: inline-block;
    background: #fff;
    padding: 15px;
    font-size: 14px;
    color: #000;
    border-radius: 30px;
    font-weight: 700;
    line-height: 1.5em;
  }
  
  .section.messages .message-right {
    text-align: right;
    margin-bottom: 16px;
  }
  
  .section.messages .message-right .message-text {
    line-height: 1.5em;
    display: inline-block;
    background: #5ca6fa;
    padding: 15px;
    font-size: 14px;
    color: #000;
    border-radius: 30px;
    line-height: 1.5em;
    font-weight: 700;
    text-align: left;
  }
  
  .section.messages .chat {
    border-radius: 30px;
    padding: 20px;
    background: rgb(245 247 250 / 31%);
    position: absolute;
    right: 0;
    max-width: 650px;
    min-width: 650px;
    top: 20px;
  }
  
  .section.messages .chat-container {
    height: 400px;
    overflow-y: scroll;
    padding-right: 16px;
  }
  
  .section.messages .spinme-right {
    display: inline-block;
    padding: 15px 20px;
    font-size: 14px;
    border-radius: 30px;
    line-height: 1.25em;
    font-weight: 100;
    opacity: 0.2;
  }
  
  .section.messages .spinme-left {
    display: inline-block;
    padding: 15px 20px;
    font-size: 14px;
    color: #ccc;
    border-radius: 30px;
    line-height: 1.25em;
    font-weight: 100;
    opacity: 0.2;
  }
  
  .section.messages .spinner {
    margin: 0;
    width: 30px;
    text-align: center;
  }
  
  .section.messages .spinner > div {
    width: 10px;
    height: 10px;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    background: rgba(0,0,0,1);
  }
   
  .section.messages .spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
  }
  
  .section.messages .spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
  }
  
  @-webkit-keyframes sk-bouncedelay {
    0%,
    80%,
    100% {
      -webkit-transform: scale(0)
    }
    40% {
      -webkit-transform: scale(1.0)
    }
  }
  
  @keyframes sk-bouncedelay {
    0%,
    80%,
    100% {
      -webkit-transform: scale(0);
      transform: scale(0);
    }
    40% {
      -webkit-transform: scale(1.0);
      transform: scale(1.0);
    }
  }

  .section.messages .chat .button{
    height: inherit;
    width: inherit;
    margin-top:10px;
    margin-right:10px;
  }
  .section.messages .chat .button i{
    font-size:1.8em;
  }
  .section.messages .chat .input{
    height: 52px;
    width: 100%;
    max-width: 530px;
    background-color:#fff;
  }
  


    
  @media (max-width: 700px) {
    .section.messages .chat-container{
        height: 100%;
    }
    .section.messages #wrapper{
        margin:0;
    }
    .section.messages .container{
        margin:0;
    }
    .section.messages{
        background-position: -270px center;
        padding-top:0;
    }
    .section.messages .chat{
        width:100%;
        min-width: 0!important;
        margin:0 auto;
        left:0;
        right:0;
        height:90vh;
        max-height: 80vh;
    }
    .section.messages .chat .button{
        max-width: 20%;
        max-height: 53px;
    }
    .section.messages .chat .input{
        max-width: 78%;
    }
    .section.messages .chat .message-text .button{
        max-width:100%;
        margin-top:10px;
        margin-right:10px;
    }
}
