@keyframes load {
  0% {
    width: 100%;
    height: 100%;
    background :rgb(0,128,255);
  }
  20% {
    background : none;
  }
  100% {
    height : 0;
  }
}
#load {
  z-index : 2;
  animation : load 2s 1;
  position : absolute;
  right : 0;
  top : 0;
  height : 0;
}
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body{
height : 100%;
}
html
{
font-family : Arial, Helvetica, san-serif;
background : linear-gradient(to right, #57c1eb 0%, #246fa8 100%);
font-size: 10px;
}
#chat-container
{
display: grid;
grid:
    'user-container chat-title' 71px
    'conversation-list chat-message-list' 1fr
    'new-message-container chat-form' 78px
    / 275px 1fr;
min-width: 800px;
max-width: 1000px;
max-height: 800px;
height:95vh;
background: #FFFFFF;
border-radius: 10px;
transition: height 0.4s linear;
}
body
{
display: grid;
place-items: center;
}
#user-container,
#conversation-list,
#new-message-container
{
background : #0048AA;
}
#user-container
{
display: grid;
align-items: center;
padding: 0 20px;
grid-area: user-container;
border-radius: 10px 0 0 0;
box-shadow: 0 1px 3px -1px rgba(0,0,0,0.75);
color : white;
font-size : 2rem;
}
input
{
color: rgb(111, 134, 235);
outline: none;
font-weight: bold;
border-radius: 2px;
height: 30px;
border: 0;
padding-left: 8px;
padding-right: 8px;
font-size: 1.4rem;
}
input::placeholder
{
color: rgb(146, 152, 168);
font-weight: bold;
}
#conversation-list
{
grid-area: conversation-list;
}
#new-message-container
{
display: grid;
grid: 40px/40px;
padding: 0 15px;
grid-area: new-message-container;
align-content: center;
border-top: 1px solid rgba(0,0,0,0.25);
border-radius: 0 0 0 10px;
}
#new-message-container a
    {
display: grid;
place-content: center center;
background: #eee;
width : 240px;
border-radius: 30px/30px;
color: #002C88;
text-decoration: none;
font-size: 2.4rem;
    }
#chat-title,
#chat-form
{
background: #eee;
display:flex;
justify-content:center;
}
#messageInputContainer {
    width : 72%;
    border-radius : 40px/40px;
    height : 40px;
}
#messageInputSendContainer {
    width : 15%;
    border : 2px strong #0048AA;
    height :40px;
    border-radius : 40px/40px;
}

.button {
    width : 15%;
    font-size : 1.5em;
    height : 40px;
    color: #1b48dd;
    border-radius: 40px/40px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-out;
    padding-bottom : 9px;
    padding-top : 11px;
    padding-left :2px;
    padding-right : 2px;
    text-align : center;
}
#chat-title
{
display: grid;
grid: 36px/ 1fr 36px;
align-content: center;
align-items: center;
grid-area: chat-title;
color: #0048AA;
font-weight: bold;
font-size: 2.0rem;
border-radius: 0 10px 0 0;
box-shadow: 0 1px 3px -1px rgba(0,0,0,0.75);
padding: 0 20px;
}
#chat-title > img
{
cursor: pointer;
}
#chat-message-list
{
grid-area: chat-message-list;
overflow : auto;
max-height : 1100px;
position: relative;
background-color : white ;
}
#chat-form
{
grid-area: chat-form;
border-radius: 0 0 10px 0;
border-top: 1px solid rgba(0,0,0,0.25);
padding-top : 18px;
padding-left : 2px ;
padding-right : 2px;
}
.progress-bar{
    height: 35px;
    width: 90%;
    margin-left : 5% ;
    border: 2px solid darkblue;
    border-radius : 8px ;
    margin-bottom : 20px ;
}
.progress-bar-fill{
    height: 100%;
    width: 0%;
    background: lightblue;
    display: flex;
    align-items: center;
    font-weight: bold;
    transition: width 0.25s;
    border-radius : 6px ;
}
.progress-bar-text{
    margin-left: 10px;
    font-weight: bold;
    text-align : center ;
}
h1 {
    text-align: center;
    font-family: Tahoma, Arial, sans-serif;
    color: #06D85F;
    margin: 80px 0;
  }
  .button:hover {
    background: #1b48dd;
    color:white;
  }
  .buttonInput {
    color: #1b48dd;
    border-radius: 2px/2px;
    text-decoration: none;
    cursor: pointer;
    padding-bottom : 0px;
    padding-top : 12px;
    transition: all 0.3s ease-out;
    height : 40px;
    border-radius : 40px/40px;
    padding-left : 8px ;
    padding-right : 8px;
    font-size : 1.5em;
    font-weight : bold ;
  }
  .buttonInput:hover {
    background: #1b48dd;
    color:white;
  }
  .overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
  }
  .overlay:target {
    visibility: visible;
    opacity: 1;
  }
  
  .popup {
    margin: 200px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 30%;
    position: relative;
    transition: all 2s ease-in-out;
  }
  
  .popup h2 {
    margin-top: 0;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
  }
  .popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
  }
  .popup .close:hover {
    color: #0048aa;
  }
  .popup .content {
    max-height: 30%;
    overflow: auto;
  }
  
  @media screen and (max-width: 700px){
    .popup{
      width: 70%;
    }
  }
  .uploadButton {
      width : 20%;
  }
  #disconnectButton {
      height : 20px;
      width : auto;
      text-align : right;
  }
  #disconnectButton:hover {
    border-radius : 30% ;
    background-color : #4d97ff;
    transition : all 1s ease-in-out;
  }
  #fileUploadButton:hover {
    background-color : #0048aa ;
    color : white ;
    transition : all 1s ease-in-out;
  }
  #userConversationList {
    max-height : 600px;
    overflow : auto ;
  }
  .containerDiscussionList {
    padding-left : 16px;
    padding-right : 16px;
    transition : all ease-in-out 0.4s;
  }
  .containerDiscussionList:hover {
    background-color : #4d97ff;

  }
  /* Scrollbar */
/* width */
::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius : 2px ; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  transition : 0.5s ;
  opacity: 0 ;
  background: rgb(110, 176, 214); 
  border-radius: 2px ;
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(75, 150, 194); 
  transition: 0.2s ;
  opacity: 1 ;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:active {
  background: rgb(46, 116, 156); 
  transition: 0.2s ;
  opacity: 1 ;
}