#messages {
  flex: 1 1 0;
  overflow-y: auto;
  background-color: #36393E;
}

#messages > div {
  margin: 0 24px;
  padding: 4px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

#messages h2 {
  margin: 0;
  padding: 0;
  display: block;
}

#messages .username {
  color: #FFF;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

#messages .info {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

#messages .time {
  margin-left: 10px;
}

#messages .edited {
  margin-left: 5px;
}

.message {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.1em;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.message .link {
  color: #7289DA;
  background-color: rgba(115, 139, 215, 0.1);
}

.message a {
  color: #0096CF;
  text-decoration: none;
}

.message a:hover {
  text-decoration: underline;
}

.message p {
  margin: 0;
}

.message .embed {
  display: inline-block;
  margin-top: 8px;
}

.message .thumbnail {
  max-width: calc(100% - 20px);
  max-height: 320px;
}

.message .thumbnail img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 3px;
}

.message .download {
  margin-right: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
}

.message .embed:first-child, .message .download + .download {
  margin-top: 0;
}

.message code {
  background-color: #2E3136;
  border-radius: 5px;
  font-family: Menlo, Consolas, Monaco, monospace;
  font-size: 14px;
}

.message code.inline {
  display: inline;
  padding: 2px;
}

.message code.block {
  display: block;
  border: 2px solid #282B30;
  margin-top: 6px;
  padding: 7px;
}
