:root {
  --dark-grayish-blue: hsl(217, 19%, 35%);
  --desaturated-dark-blue: hsl(214, 17%, 51%);
  --grayish-blue: hsl(212, 23%, 69%);
  --light-grayish-blue: hsl(210, 46%, 95%);
}

body {
  font-family: 'Manrope', sans-serif;
  /* weight 500, 700 */
  background-color: var(--light-grayish-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  line-height: 1.5;
}

body,
p,
h4,
button,
figure {
  margin: 0;
  padding: 0;
}

.main-container {
  background-color: white;
  margin: auto 25px;
  min-width: 320px;
  max-width: 800px;
  border-radius: 10px;
}

.image {
  width: auto;
  height: 200px;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 35px 30px 20px;
}

.bold {
  color: var(--dark-grayish-blue);
  font-weight: 700;
}

.content-caption {
  margin-bottom: 20px;
}

.content-text {
  color: var(--desaturated-dark-blue);
  font-size: 0.84em;
  font-weight: 500;
  margin-bottom: 20px;
}

.profile-wrap,
.profile {
  display: flex;
  height: 40px;
  align-items: center;
}

.profile-wrap {
  justify-content: space-between;
  padding-top: 15px;
}

.profile>img {
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin-right: 10px;
}

.profile-name,
.date {
  font-size: 0.8em;
}

.date {
  color: var(--grayish-blue);
  margin-top: 3px;
}

#share-button {
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
}

.share-container {
  background-color: var(--dark-grayish-blue);
  display: none;
  height: 40px;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 30px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.clicked {
  background-color: var(--desaturated-dark-blue);
}

.active {
  fill: var(--light-grayish-blue);
}

.share-container>* {
  margin-right: 20px;
}

.share-container span {
  color: var(--grayish-blue);
  text-transform: uppercase;
  font-size: 0.8em;
  letter-spacing: 4px;
}

@media screen and (min-width: 500px) {
  .main-container {
    display: flex;
    margin: auto;
  }

  .image {
    height: auto;
  }

  .image img {
    border-top-left-radius: 10px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 10px;
  }

  .content {
    position: static;
    max-width: 400px;
    padding: 40px;
  }

  .content-caption {
    font-size: 1.4em;
    margin-bottom: 15px;
  }

  .content-text {
    font-size: 0.9em;
    margin-bottom: 10px;
  }

  .profile>img {
    margin-right: 20px;
  }

  .profile-wrap {
    position: relative;
  }

  .share-container {
    left: auto;
    bottom: auto;
    top: -70px;
    right: -110px;
    width: auto;
    padding: 8px 35px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .share-container::before {
    content: "";
    position: absolute;
    left: 47%;
    bottom: -10px;
    height: 20px;
    width: 20px;
    transform: rotate(45deg);
    background-color: var(--dark-grayish-blue);
  }

  .share-container span {
    letter-spacing: 6px;
  }

  .share-container>img:last-child {
    margin-right: 0;
  }
}