* {
  box-sizing: border-box;
  margin: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  font-family: 'Lato', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  opacity: 0.5;
}

.message {
  display: flex;
  width: 100%;
  max-width: 810px;
  padding: 8px;
  background-color: #fff;
}

.message:hover {
  background-color: #f8f8f8;
}

.message-user {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  margin-right: 12px;
  overflow: hidden;
}

.message-user a {
  display: block;
}

.message-user img {
  display: block;
  width: 100%;
  height: auto;
}

.message-info {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}

.message-sender,
.message-text {
  font-size: 16px;
  line-height: 1.25;
  color: #212021;
}

.message-sender {
  margin-right: 8px;
  font-weight: 900;
}

.message-timestamp {
  position: relative;
  font-size: 14px;
  line-height: 1.4285714286;
  color: #626162;
  cursor: default;
}

.message-timestamp:hover .tooltip {
  display: block;
}

.message-timestamp .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  display: none;
  padding: 4px 12px;
  border-radius: 5px;
  color: #fff;
  white-space: nowrap;
  background-color: #000;
  transform: translateX(-50%);
}

.message-timestamp .tooltip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 4px solid #000;
  border-right: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 4px solid transparent;
  transform: translateX(-50%);
}

.message-text {
  font-size: 16px;
  line-height: 1.25;
  color: #212021;
}
