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

:root {
  --Very-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 {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Manrope", serif;
  font-size: 13px;
  background-color: var(--Light-Grayish-Blue);
}

main {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawers-img {
  width: 280px;
  height: 290px;
  background-image: url(images/drawers.jpg);
  background-size: cover;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  box-shadow: -10px 10px 30px rgba(32, 32, 32, 0.075);
  transition: all 0.5s;
}

.drawers-img:hover {
  width: 380px;
}

.card {
  max-width: 480px;
  height: 290px;
  background-color: white;
  box-sizing: border-box;
  padding: 1rem 2.5rem;
  border-top-right-radius: 0.4rem;
  border-bottom-right-radius: 0.4rem;
  box-shadow: 10px 10px 30px rgba(32, 32, 32, 0.075);
}

.card h2 {
  color: var(--Very-Dark-Grayish-Blue);
  max-width: 85%;
  font-size: 1.3rem;
}

.description {
  color: var(--Desaturated-Dark-Blue);
  font-size: 0.85rem;
  line-height: 1.3rem;
  max-width: 92%;
}

.profile {
  position: absolute;
  height: 55px;
  display: flex;
  align-items: center;
}

.profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.profile-description {
  margin-left: 0.8rem;
}

.profile-description h4 {
  color: var(--Very-Dark-Grayish-Blue);
  height: 3px;
  letter-spacing: 0.1mm;
}

.profile-description p {
  color: var(--Desaturated-Dark-Blue);
}

.share-btn {
  margin-left: 11rem;
  padding: 0;
  width: 40px;
  height: 40px;
  border: none;
  background-color: var(--Light-Grayish-Blue);
  border-radius: 50%;
  transition: all 0.4s;
}

.share-btn svg {
  width: 17px;
  height: 17px;
  padding: 11px;
  fill: #6e8098;
  border-radius: 50%;
}

.share-btn:hover {
  cursor: pointer;
  background-color: var(--Desaturated-Dark-Blue);
}

.share-btn svg:hover {
  fill: white;
}

.share_card {
  display: none;
}

.share-card {
  position: absolute;
  left: 63.5%;
  bottom: 124%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: 240px;
  height: 50px;
  background-color: var(--Very-Dark-Grayish-Blue);
  color: var(--Grayish-Blue);
  border-radius: 0.6rem;
  letter-spacing: 0.3rem;
  animation: fadeIn 0.8s;
}

@keyframes fadeIn {
  0% {
    height: 45px;
    opacity: 0;
  }
  100% {
    height: 50px;
    opacity: 1;
  }
}

.share-card:after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  margin-left: -9px;
  width: 18px;
  height: 18px;
  background: var(--Very-Dark-Grayish-Blue);
  transform: rotate(45deg);
}

.share-card img {
  width: 20px;
  height: 20px;
}

@media (max-width: 740px) {
  main {
    margin: 1.5rem 0;
    height: auto;
    flex-direction: column;
  }

  .drawers-img {
    width: 360px;
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.5rem;
  }

  .drawers-img:hover {
    height: 320px;
    width: 360px;
  }

  .card {
    max-width: 360px;
    height: 324px;
    padding: 1.5rem 2rem;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0.5rem;
  }

  .card h2 {
    max-width: 100%;
    font-size: 1.15rem;
  }

  .description {
    font-size: 0.85rem;
    line-height: 1.3rem;
    max-width: 95%;
    letter-spacing: 0.3px;
  }

  .profile {
    height: 70px;
  }

  .profile-img {
    width: 38px;
    height: 38px;
  }

  .profile-description {
    position: relative;
    right: 0;
  }

  .profile-description h4 {
    height: 3px;
    letter-spacing: 0.1mm;
  }

  .share-btn {
    margin-left: 5rem;
    margin-top: 0.5rem;
    z-index: 1;
  }

  .share-card {
    width: 100%;
    left: -32px;
    bottom: -4.8px;
    justify-content: flex-start;
    gap: 1.4rem;
    width: 360px;
    height: 72px;
    animation: fadeIn 0.8s;
  }

  .share-card p {
    margin-left: 2rem;
  }

  @keyframes fadeIn {
    0% {
      height: 45px;
      opacity: 0;
    }
    100% {
      height: 70px;
      opacity: 1;
    }
  }

  .share-card:after {
    display: none;
  }
}

@media (max-width: 380px) {
  .drawers-img {
    width: 340px;
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.5rem;
  }

  .drawers-img:hover {
    height: 320px;
    width: 340px;
  }

  .card {
    max-width: 340px;
    padding: 1rem 1.5rem;
  }

  .card h2 {
    max-width: 100%;
    font-size: 1.1rem;
  }

  .description {
    font-size: 0.8rem;
    line-height: 1.2rem;
    max-width: 100%;
  }

  .profile {
    height: 70px;
  }

  .profile-description h4 {
    font-size: 0.75rem;
    height: 0px;
    letter-spacing: 0;
  }

  .profile-description p {
    font-size: 0.7rem;
  }

  .share-card {
    width: 340px;
    animation: fadeIn 0.8s;
  }
}
