@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");
.card {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  grid-template-rows: 1fr;
  justify-content: center;
  align-items: center;
  width: 55%;
  border-radius: 8px;
  background-color: #fff;
  -webkit-box-shadow: 0px 14px 39px -1px rgba(158, 175, 194, 0.59);
  -moz-box-shadow: 0px 14px 39px -1px rgba(158, 175, 194, 0.59);
  box-shadow: 0px 14px 39px -1px rgba(158, 175, 194, 0.59);
}
.card .card-img {
  width: 100%;
  height: 100%;
  background-image: url("../images/drawers.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 8px 0 0 8px;
}
.card .card-txt {
  grid-column: 2/3;
  padding: 2.4rem;
}
.card .card-txt .card-heading {
  width: 90%;
  line-height: 1.4rem;
}
.card .card-txt h1 {
  line-height: 1.6;
  margin-bottom: 1rem;
}
.card .card-txt h1, .card .card-txt h3 {
  color: hsl(217, 19%, 35%);
}

.user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
}
.user-info .user-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.user-info .user-avatar img {
  width: 60px;
  display: block;
  border-radius: 50%;
}
.user-info .user-avatar .post-date {
  color: hsl(212, 23%, 69%);
}
.user-info .user-info-right.active {
  position: relative;
}
.user-info .user-info-right.active .share-btn {
  background-color: hsl(214, 17%, 51%);
}
.user-info .user-info-right.active .share-btn svg path {
  fill: #fff;
}
.user-info .user-info-right.active .share-popup {
  display: flex;
}
.user-info .user-info-right .share-btn {
  background-color: hsl(210, 46%, 95%);
  padding: 0.6rem;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}
.user-info .user-info-right .share-popup {
  display: none;
  position: absolute;
  right: -4.2rem;
  top: -4rem;
  background-color: hsl(217, 19%, 35%);
  border-radius: 6px;
}
.user-info .user-info-right .share-popup .social-links {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 1.4rem;
  gap: 0.8rem;
}
.user-info .user-info-right .share-popup figcaption {
  color: hsl(212, 23%, 69%);
  text-transform: uppercase;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
}
.user-info .user-info-right .share-popup:after {
  content: "";
  position: absolute;
  transform: rotate(45deg);
  bottom: -6px;
  left: 50%;
  border-width: 6px;
  border-style: solid;
  border-color: transparent hsl(217, 19%, 35%) hsl(217, 19%, 35%) transparent;
}
.user-info .user-info-right .share-popup .social-links img {
  width: 18px;
  cursor: pointer;
}

@media only screen and (max-width: 900px) and (min-width: 600px) {
  .card {
    grid-template-columns: 1fr;
  }
  .card .card-img {
    display: none;
  }
}
@media only screen and (max-width: 600px) {
  .card {
    height: 90%;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
  }
  .card .card-img {
    border-radius: 8px 8px 0 0;
  }
  .card .card-txt {
    padding-bottom: 1.2rem;
  }
  .card .card-txt .card-heading p {
    font-size: 0.9rem;
  }
  .card .card-txt .user-info .user-info-left.hidden {
    visibility: hidden;
  }
  .card .card-txt .user-info .user-avatar img {
    width: 40px;
    justify-content: space-around;
  }
  .card .card-txt .user-info-right.active {
    z-index: 1;
    position: static;
  }
  .card .card-txt .user-info-right.active .share-popup {
    display: flex;
    width: 100%;
    position: absolute;
    right: 0;
    top: unset;
    bottom: 0;
    min-height: 4rem;
    background-color: hsl(217, 19%, 35%);
    border-radius: 0 0 6px 6px;
    z-index: -1;
  }
  .card .card-txt .user-info-right.active .share-popup:after {
    content: none;
  }
  .card .card-txt .user-info-right.active .share-popup .social-links {
    width: 100%;
    justify-content: flex-start;
    padding: 1.8rem;
    gap: 1rem;
  }
  .card .card-txt .user-info-right.active .share-popup .social-links img {
    width: 22px;
  }
  .card .card-txt .user-info-right.active .share-popup figcaption {
    font-size: 0.9rem;
    font-weight: 500;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 0.8rem;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  background-color: hsl(210, 46%, 95%);
  color: hsl(214, 17%, 51%);
}

img {
  width: 100%;
  height: 100%;
  display: block;
}

button {
  border: none;
}

footer {
  padding: 1rem 0;
}/*# sourceMappingURL=main.css.map */
