@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

html,
body {
  height: 100%;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  text-align: left;
  line-height: 140%;
  color: #484c56;
}

/* - Positioning -------------------------------------- */
.wrapper {
  min-width: 328px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0px;
}

.container {
  max-width: 600px;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: 0px 0px 2px 1px #6b005b33;
  padding: 15px;
}

.title {
  text-align: center;
}

/* - Message-cards -------------------------------------- */
ul {
  padding-inline-start: 0px;
}

.card {
  max-width: 600px;
  position: relative;
  display: flex;
  flex-direction: row;
  padding: 20px 10px;
}

.card:not(:last-of-type) {
  border-bottom: solid 1px rgb(163, 175, 187);
}

.card__image {
  top: 0;
  left: 0;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  align-self: start;
  padding-right: 20px;
}

.card__main {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card__info {
  display: inline-flex;
  justify-content: space-between;
}

.card__title {
  margin: 0px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  text-align: left;
}

.card__date {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  text-align: left;
}

.card__text {
  display: flex;
  overflow-wrap: anywhere;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  text-align: left;
  line-height: 140%;
}

.card__del {
  width: 80px;
  height: 24px;
  align-self: flex-end;
  justify-self: flex-start;
  background-color: #fb7575;
  font-size: 14px;
  text-align: center;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 0 #23262f3b;
  position: relative;
  top: 0;
  cursor: pointer;
}

.card__del:hover {
  transform: translateY(-3px);
}

.card__del:focus {
  outline: none;
}

/* - New comment form ---------------------- */
.form {
  border-top: solid 1px rgb(163, 175, 187);
  margin-bottom: 20px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.form * {
  outline: none;
}

.form__label {
  margin-top: 14px;
  margin-bottom: 2px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  text-align: left;
}

.form__button {
  font-size: 16px;
  text-align: center;
  color: #ffffff;
  width: 100px;
  height: 30px;
  background-color: #4c90eb;
  border: none;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 0 #23262f3b;
  position: relative;
  top: 0;
  cursor: pointer;
}

.form__button:hover {
  transform: translateY(-3px);
}

.form__button:focus {
  outline: none;
}

.form__input {
  padding: 10px;
  border: solid 1px rgb(163, 175, 187);
}

#avatar {
  margin: 15px 0px;
  width: 60px;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

@media screen and (max-width: 750px) {
  .container {
    width: 100%;
  }

  .wrapper {
    padding: 0px 0px;
  }
}
