@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Big+Shoulders:opsz,wght@10..72,100..900&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Figtree:ital,wght@0,300..900;1,300..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Karla:ital,wght@0,200..800;1,200..800&family=Kumbh+Sans:wght@100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=League+Spartan:wght@100..900&family=Lexend+Deca:wght@100..900&family=Luckiest+Guy&family=M+PLUS+Rounded+1c&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Young+Serif&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Manrope", sans-serif;
}

body {
  background-color: hsl(210, 46%, 95%);
  min-width: 320px;
  min-height: 100vh;
  padding-block: 2rem;
}

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

main {
  width: 85%;
  background-color: white;
  border-radius: 8px;
  margin-inline: auto;
  max-width: 750px;
}

.drawers-img-container {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
.drawers-img-container img {
  height: 220px;
  object-fit: cover;
  object-position: top;
}

.text-container {
  padding-inline: 2.125rem;
  padding-block-start: 2.125rem;
  padding-block-end: 1.125rem;
}

#main-text {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(217, 19%, 35%);
  margin-block-end: 1rem;
}

#description-text {
  font-size: 0.875rem;
  color: hsl(214, 17%, 51%);
  font-weight: 500;
  line-height: 150%;
}

#author-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.125rem;
  border-radius: 0 0 8px 8px;
  transition: background-color 500ms;
  min-height: 72px;
}
#author-container .front-section {
  display: flex;
  align-items: center;
  gap: 16px;
}
#author-container .front-section .profile-img {
  width: 40px;
  border-radius: 50%;
}
#author-container .front-section .author-text .name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: hsl(217, 19%, 35%);
}
#author-container .front-section .author-text .date {
  font-size: 0.8125rem;
  color: hsl(212, 23%, 69%);
  font-weight: 500;
}
#author-container #share-button-container {
  background-color: hsl(210, 46%, 95%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}

.close-author {
  display: none;
}

.share-text {
  text-transform: uppercase;
  letter-spacing: 5px;
  color: hsl(212, 23%, 69%);
  font-size: 0.875rem;
}

.social-icon {
  cursor: pointer;
}

.social-icon:hover {
  filter: brightness(0) invert(0.7);
}

.close-share {
  display: none;
}

#share-desktop-container {
  position: absolute;
  bottom: 160%;
  right: 50%;
  transform: translateX(50%);
  width: 245px;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  background-color: hsl(217, 19%, 35%);
  cursor: default;
}

.close-share-desktop {
  display: none;
}

.share-info-desktop {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.share-info-desktop img {
  z-index: 1;
}

#triangle {
  width: 24px;
  height: 24px;
  background-color: hsl(217, 19%, 35%);
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
}

.attribution {
  font-size: 0.8125rem;
  text-align: center;
  margin-block-start: 1rem;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (min-width: 750px) {
  main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    width: 75%;
  }
  .drawers-img-container {
    border-radius: 8px 0 0 8px;
  }
  .drawers-img-container img {
    height: 100%;
    object-position: left;
  }
}