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

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

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

.card {
  width: 360px;
}

.card-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 265px;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}

.card-image:hover .card-title {
  opacity: 1;
}

.card-image a {
  display: block;
}

.card-image img {
  display: block;
  width: 100%;
  height: auto;
}

.card-title {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 16px 20px;
  font-size: 18px;
  line-height: 1.3333333333;
  color: #fff;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.375776) 57.03%, #000000 100%);
  opacity: 0;
  transition: opacity 250ms ease-in-out;
}

.card-user a {
  display: flex;
  align-items: center;
}

.card-user .user-image {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
  overflow: hidden;
}

.card-user .user-image:hover {
  opacity: 0.5;
}

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

.card-user .user-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.card-user .user-name:hover {
  opacity: 0.5;
}

.card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.card-stats {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.card-stats div {
  display: flex;
  align-items: center;
  color: #9e9ea7;
  cursor: default;
}

.card-stats div:hover {
  color: #ea4c89;
}

.card-stats div:first-child {
  margin-right: 10px;
}

.card-stats dt {
  display: block;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  text-indent: -1000000px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-color: transparent;
}

.stats-comments dt {
  background-image: url("./assets/icon-comment-muted.svg");
}

.stats-likes dt {
  background-image: url("./assets/icon-favorite-muted.svg");
}

.stats-comments:hover dt {
  background-image: url("./assets/icon-comment-active.svg");
}

.stats-likes:hover dt {
  background-image: url("./assets/icon-favorite-active.svg");
}
