*{
    padding: 0;
    margin: 0;
}
    
html,body {
        height: 100%;
        margin: 0;
        padding: 0;
        background: #7e72f4;
        font-family: "Lato", sans-serif;
        overflow-x: hidden;
        
}


#logo { padding:10px; width:auto; float:center; 
}
#logo h1 a, h1 { color:#ffffff; text-decoration:none; text-shadow: 2px 3px rgba(0,0,0,0.4);}
#logo h1 span { color:#00ffff;}

#con1{
    margin: 0;
    position: absolute;
    
    width: 100%;
    height: 100%;
 
}
#con2{
   
    font-size: 40px;
    position: absolute;
    top: 200px;
    left: 60px;
    width: 50%;
    text-decoration: none;
   

}
#con2 p { font-size: 24px;}
#chat-con{
    position: absolute;
    margin: 0 auto;
    top: 20%;
    right: 0;
    bottom: 0;
    left: 20%;
    width: 350px;
    height: 360px;
    
    background-color: rgb(207, 217, 221);
    box-shadow: 0px 5px 17px 5px rgba(0,0,0,0.4);
    border-radius: 7px;

}
#chat-tic-con{
    margin: 15px auto;
    background-color: whitesmoke;
    border-radius: 7px;
    width: 90%;
    height: 50px;

}
#chat-tic-con #ticket-box-con{
    margin: 0 auto;
    position: absolute;
    right: 0;
    left: 0;
    top: 25px;
    bottom: 0;
    background-color: rgb(244, 253, 120);
    border: rgb(29, 85, 189) 1px solid;
    border-radius: 5px;
    width: 180px;
    height: 25px;
    
}
#chat-tic-con #ticket-box-con p{
    float: left;
    padding: 2px 5px;
    font-style: italic;
    font-size: 20px;
}
#chat-tic-con #ticket-box-con button{
    float: right;
    padding: 0 10px;
    background-color: #ffaff8;
    height: 25px;
    border: none;
    border-radius: 0 5px 5px 0;
    font-size: 12px;
}
#chat-tic-con #ticket-box-con input:focus {
    border: blue 1px solid;
    border-radius: 5px;
  }
#chat-tic-con #ticket-box{
    border-width:0px;
    border:none;
    position: absolute;
    left: 10%;
    background-color: transparent;
    width: 100px;
    height: 20px;
    padding: 2px 5px;
    font-style: italic;
    font-size: 20px;
    text-transform:uppercase
    
}
#chat-mess-con{
    margin: 15px auto;
    padding: 5px 0;
    background-color: whitesmoke;
    border-radius: 5px;
    width: 90%;
    height: 250px;

}



  #chat-messages{
    height: 200px;
    overflow-x: hidden ;
    overflow-y: scroll;
  }

  #message-input {

    border-radius: 3px;
    border: 2px solid;
    padding: 2px; 
    width: 70%;
    resize: none;
    overflow:hidden;
    font-family: "Lato", sans-serif;
    font-size: 17px;
    line-height:1.6;
      
  }


  #con-send{
      display: block;
      position: relative;
      padding: 0 15px;
      z-index: 5;

  }

    #tip{
      width: 350px;
      margin-top: -12px;
      text-align: center;
      font-size: 13px;
      color: rgb(92, 92, 92);
      z-index: 2;
  }

  #con-send button{
    position: relative;
    top: -10px;
    color: white;
    background-color: rgb(255, 0, 0);
    border: none;
    border-radius: 3px;
    margin: 0 5px;
    padding: 10px;
    height: 32px;
  }

#con3-button{
    margin: 20px;
    float: right;
    
}
#con3-button .button {
    background-color: #7dff82;
    border: none;
    border-radius: 05px;
    color: black;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    
}
#con3-button button:hover {
    background-color: #ffaff8;
   
  }

#chat-message-list{
    grid-area: chat-message-list;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}
.message-row{
    display: grid;
    grid-template-columns: 90%;
    margin-bottom: 5px;
}
.message-text{
    text-align: left;
    padding: 9px 14px;
    margin-bottom: 5px;
    max-width: 150px;
    word-wrap: break-word;
    white-space:pre-wrap;
    
}
.user1{
    justify-items: start;
}
.user2{
    justify-content: end;
    justify-items: end;
    
}

.user1 .message-text{
    
background: #f1f1f1;
border: 2px solid #dedede;
border-radius: 10px 15px;

}
.user2 .message-text{
     
    background-color: rgb(177, 250, 255);
    border: 2px solid rgb(194, 184, 211);
    border-radius: 15px 10px 15px 10px;
 
 }

  @media only screen and (max-width: 1100px) {
    #con1{
        margin: 0 auto;
        position: relative;
        background: #7e72f4;
        text-align: center;
        width: 100%;
        height: 150%;
      
     
    }
    #con2{
        
        position: absolute;
        margin: 0 auto;
        top: 100px;
        right: 0;
        bottom: 0;
        left: 0;
        width: 80%;
        text-decoration: none;
        font-size: 30px;

    }
    #chat-con{
        position: absolute;
        margin: 0 auto;
        top: 250px;
        right: 0;
        bottom: 0;
        left: 0;
        width: 300px;
        height: 360px;
        background-color: rgb(207, 217, 221);
        box-shadow: 0px 5px 17px 5px rgba(0,0,0,0.4);
        border-radius: 7px;
    
    }
    #message-input {
        width: 60%;
    }

    #con3-button .button {
        background-color: #7dff82;
        border: none;
        border-radius: 5px;
        color: black;
        padding: 10px 22px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 14px;
        margin: 4px 2px;
        cursor: pointer;
        
    }
    #tip{
        width: 300px;
        
    }
  } 

