* {
  box-sizing: border-box;
}

body {
  background-color: #424242;
  font-family: Arial, sans-serif;
  text-align: center;
}

#container {
  width: 750px;
  height: 600px;
  background: #fff;
  margin: 0 auto;
  font-size: 0;
  border-radius: 5px;
  overflow: hidden;
}

main {
  width: 750px;
  height: 500px;
  display: inline-block;
  font-size: 15px;
  vertical-align: top;
}

h2,
h3 {
  margin: 0;
}

.status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
}

.green {
  background-color: #58b666;
}

.orange {
  background-color: #ff725d;
}

.blue {
  background-color: #6fbced;
  margin-right: 0;
  margin-left: 7px;
}

main header {
  height: 110px;
  padding: 30px 20px 30px 40px;
}

main header > * {
  display: inline-block;
  vertical-align: top;
}

main footer img {
  height: 30px;
  cursor: pointer;
}

main header img:first-child {
  border-radius: 50%;
}

main header img:last-child {
  width: 24px;
  margin-top: 8px;
}

main header div {
  margin-left: 10px;
  margin-right: 145px;
}

main header h2 {
  font-size: 16px;
  margin-bottom: 5px;
}

main header h3 {
  font-size: 14px;
  font-weight: normal;
  color: #7e818a;
}

#chat {
  padding-left: 0;
  margin: 0;
  list-style-type: none;
  overflow-y: auto;
  height: 300px;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

#chat li {
  padding: 10px 30px;
}

#chat h2,
#chat h3 {
  display: inline-block;
  font-size: 13px;
  font-weight: normal;
}

#chat h3 {
  color: #bbb;
}

#chat .header {
  margin-bottom: 5px;
}

#chat .message {
  padding: 20px;
  color: #fff;
  line-height: 25px;
  max-width: 90%;
  display: inline-block;
  text-align: left;
  border-radius: 5px;
}

#chat .me {
  text-align: right;
}

#chat .you {
  text-align: left;
}

#chat .you .message {
  background-color: #58b666;
}

#chat .me .message {
  background-color: #6fbced;
}

#chat .triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 10px;
}

#chat .you .triangle {
  border-color: transparent transparent #58b666;
  margin-left: 15px;
}

#chat .me .triangle {
  border-color: transparent transparent #6fbced;
  margin-left: 375px;
}

main footer {
  height: 155px;
  padding: 20px 30px 10px 20px;
}

main footer textarea {
  resize: none;
  border: none;
  display: block;
  width: 100%;
  height: 80px;
  border-radius: 3px;
  padding: 20px;
  font-size: 13px;
  margin-bottom: 13px;
}

main footer textarea::placeholder {
  color: #ddd;
}

main footer a {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  color: #6fbced;
  vertical-align: top;
  margin-left: 333px;
  margin-top: 5px;
  display: inline-block;
}
