.chatbox { 
    /* width: 100%; */
    /* min-width: 390px; */
    /* height: 600px; */
    background: white;
    padding: 25px;
    padding-top: 90px;
    margin: 0px auto 0px auto;
    /* box-shadow: 0 3px #ccc; */
    margin-bottom: 20%;
}

.chatlogs {
    /* padding: 10px; */
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
}

/*Styling the scrolllbar*/
.chatlogs::-webkit-scrollbar{
    width: 10px;
}

.chatlogs::-webkit-scrollbar-thumb{
    border-radius: 5px;
    background: rgba(0, 0, 0, .1);
}


.chat {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    margin-bottom: 20px;
    transition-duration: 2s;
    transition-timing-function: linear;
    
}

.user-photo img{
    background-color: rgb(39, 119, 180);
    /* padding: 8px; */
    width: 100%;
}

.chat .chat-message {
    padding: 15px;
    margin: 5px 10px 0;
    font-size: 18px;
}

.user-photo {
    width: 60px;
    height: 60px;
    background: #ccc;
    border-radius: 50%;
    overflow: hidden;
}

.friend .chat-message {
    color: black;
    width: auto;
    /* max-width: 50%; */
    background: rgb(229, 229, 234);
    border-radius: 20px 20px 20px 0;
    word-wrap: break-word;
    
}

.self .chat-message {
    color: white;
    max-width: 80%;
    width: auto;
    margin: 5px 0 5px auto;
    border-radius: 20px 20px 0px 20px;
    background: rgb(64, 172, 246);
    overflow-wrap: break-word;
}

.headerBar{
    font-size: 25px;
    color: white;
    padding: 15px;
    /* width: 500px;
    min-width: 390px; */
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    /* margin: 20px auto 0px auto; */
    background: rgb(74 150 232);
    /* border-radius: 10px 10px 0px 0px; */
    position: fixed !important;
    justify-content: space-between;
        position: sticky;
        top: 0px;
        width: 100%;
}
.navbar {
    position : sticky;
     top : 0;
 }

.headerBar .title {
    margin: auto 20px;
}

.headerBar .user-photo {
    margin: 0px 0px 0px 10px;

}

.headerBar .user-photo img{
    width: 100%;
}

.chat-form {

    margin: 0px auto 0px auto;
    display: flex;
    width:100%;
    /* min-width: 390px; */
    position: absolute;
    bottom: 0px;
    align-items: flex-start;
    overflow: auto;
    background: rgb(244, 243, 244);
    border-radius: 0 0 10px 10px;
    border-top: 5px solid rgb(212, 212, 212);

}


#inputDiv {
    width: 65%;
    margin-right: 15px;
    
}


.chat-form textarea {
    padding: 5px 5px 5px 15px; 
    background: #fbfbfb;
    width: 100%;
    min-height: 5px;
    border: 2px solid lightblue;
    border-radius: 20px;
    resize: none;
    font-size: 18px;
    color: #000;
    margin: 15px 0px 15px 10px;
    display:block;
    overflow:hidden;
    box-shadow: none;
    outline: none;

}
#rec{
  position: relative;
  margin: 4px -20px -5px 0px;
}
#switchInputType{
  position: relative;
  /* margin: -25px -10px -5px 0px; */
}

.chat-form textarea:focus {
    background: #fff;
}

#chat-form-buttons {
    margin: auto;
}

/* Old Orange button for speaking, now we have an icon of a microphone*/
/*.chat-form button {
    height: 65px;
    background: rgba(255, 153, 0, .7);;
    padding: 5px 15px;
    font-size: 30px;
    color: white;
    border: none;
    margin: 0 10px;
    border-radius: 3px;
    box-shadow: 0 3px 0 rgba(255, 153, 0, .7);;
    cursor: pointer;
}*/

.chat-form button:hover{
    background: #40acf6;
}

.gif img {
    margin: 10px;
    border-radius: 20px;
}


.buttonResponse {
    color: white;
    max-width: 80%;
    width: fit-content;
    margin: 5px 0 5px auto;
    border-radius: 20px 20px 0px 20px;
    background: rgb(64, 172, 246);
    overflow-wrap: break-word;
    font-size: 18px;
    padding: 10px;
    margin: 20px 5px;
    float: left;
}

.buttonResponse:hover{
        background: rgb(100, 200, 255);
}


#switchInputType{
    /* max-width: 40px; */
    max-height: 140px;
   
}

#rec {
    max-width: 40px;
    max-height: 40px;
}

#buttonDiv {
    margin: 0 auto;
    width: inherit;

}
.uname{
    background: rgb(229, 229, 234);
    display: inline-block; 
    margin-bottom:5px;
    padding: 0px 10px 0px 10px;
}



@media (max-width: 700px) {
    .text-box h1 {
      font-size: 20px;
    }
    .nav-links ul li {
      display: block;
    }
    .nav-links {
      position: absolute;
      background: #40acf6;
      height: auto;
      width: 200px;
      top: 0;
      right: -200px;
      text-align: left;
      z-index: 2;
      transition: 1s;
      visibility: hidden;
    }
    nav .fa {
      display: block;
      color: #fff;
      margin: 10px;
      font-size: 22px;
      cursor: pointer;
    }
    .nav-links ul {
      padding: 30px;
    }
  }
  @keyframes movedown {
    0% {
      transform: translateY(-100px);
    }
    100% {
      transform: translateY(0px);
    }
  }
  
  nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
  }
  nav img {
    width: 150px;
  }
  .nav-links {
    flex: 1;
    text-align: right;
  }
  .nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: realtive;
  }
  .nav-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
  }
  .nav-links ul li::after {
    content: "";
    width: 0%;
    height: 2px;
    background: #40acf6;
    display: block;
    margin: auto;
    transition: 0.5s;
  }
  .nav-links ul li:hover::after {
    width: 100%;
  }



