* {
  margin: 0;
  padding: 0;
  font-family: tahoma, sans-serif;
  box-sizing: border-box;
}
body {
  background-color: black;
  background-image: url('media/background.jpg');
  background-repeat: no-repeat;
  background-size: cover;
}
.chatbox {
  width: 70%;
  min-width: 50%;
  height: 700px;
  background: #fff;
  padding: 25px;
  margin: 125px auto;
  box-shadow: 0 3px #ccc;
}
.chatlogs {
  padding: 10px;
  width: 100%;
  height: 90%;
  overflow-x: hidden;
  overflow-y: scroll;
}
.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: 10px;
}
.chat .user-name {
  padding: 2px;
  padding-left: 6px;
  width: 120px;
  height: 25px;
  background: #ccc;
  border-radius: 10px;
}
.chat .chat-message {
  width: 80%;
  padding: 15px;
  margin: 5px 10px 0;
  background: #1ddced;
  border-radius: 10px;
  color: #fff;
  font-size: 20px;
}
.friend .chat-message {
  background: #1adda4;
}
.self .chat-message{
  background: #1ddced;
  order: -1;
}
.chat-form {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
}
.chat-form input{
  background: #fbfbfb;
  width: 75%;
  height: 50px;
  border: 2px sold #eee;
  border-radius: 3px;
  resize: none;
  padding: 10px;
  font-size: 18px;
  color: #333;
}
.chat-form input:focus{
  background: #fff;
}
.chat-form input::-webkit-scrollbar{
  width: 10px;
}
.chat-form input::-webkit-scrollbar-thumb{
  border-radius: 5px;
  background: rgba(0,0,0,.1);
}
.chat-form button {
  background: #1ddced;
  padding: 5px 15px;
  font-size: 30px;
  color: #fff;
  border: none;
  margin: 0 10px;
  border-radius: 3px;
  box-shadow: 0 3px 0 #0eb2c1;
  cursor: pointer;

  -webkit-transition: background .2s easy;
  -moz-transition: background .2s easy;
  -o-transition: background .2s easy;
}
.chat-form button:hover{
  background: #13c8d9;
}
.chat-form button:active{
  -webkit-transition: none;
  -moz-transition: none;
  -o-transition: none;
}
.chatbox form [name"name"]{
  margin-top: 60px;
}
@media (max-width: 1000px){
    .chatbox {
      height: 850px;
      width: 95%;
      min-width: 95%;
    }
    body {
      background-image: none;
    }
}
