@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Outfit:wght@100..900&family=Young+Serif&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: hsl(210, 46%, 95%);
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  max-width: 800px;
  margin-inline: auto;
}

.card {
  width: 80%;
  height: 300px;
  background: white;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
  position: relative;
  /* Include this if you don't want social links not sticking out of card */
  /* overflow: hidden; */
}

.left {
  width: 40%;
  height: 300px;
  background-image: url("/images/drawers.jpg");
  background-size: cover;
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
}

.right {
  width: 60%;
}

.maincontent {
  margin-left: 10px;
  padding-top: 30px;
  padding: 30px;
}

.authorcard img {
  height: 30px;
  border-radius: 50%;
}

.authorcard {
  display: flex;
  flex-direction: row;
  margin-top: 20px;
}

.name {
  display: flex;
  flex-direction: column;
  margin-left: 20px;
}

.share {
  --size: 50px;
  width: var(--size);
  height: var(--size);
  outline: none;
  border: none;
  background-color: white;
  cursor: pointer;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  z-index: 20;
  margin-left: auto;
  /* margin-right: 20px; */
}

.share img {
  --size: 15px;
  width: var(--size);
  height: var(--size);
  /* object-fit: cover; */
}

li {
  list-style: none;
}

p {
  margin-top: 10px;
  font-size: 13px;
  color: hsl(214, 17%, 51%);
}

h3,
h5 {
  color: hsl(217, 19%, 35%);
}

h6 {
  color: hsl(212, 23%, 69%);
  font-weight: 400;
}

span {
  color: hsl(214, 17%, 51%);
  letter-spacing: 3px;
  font-weight: 700;
  display: inline-block;
}

.social-links {
  background-color: hsl(217, 19%, 35%);
  display: flex;
  flex-direction: row;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  height: 50px;
  width: 250px;
  padding-inline: 1rem;
  position: absolute;
  bottom: 6.5rem;
  right: -3rem;
  transform: scale(0);
  border-radius: 1rem;
  transition: transform 0.3s ease-in-out;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.active {
  transform: scale(1);
}

.share-active {
  background-color: #6e8098;
}

.share-active-img img {
  filter: brightness(10);
}

.social-links .d-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.social-links .links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.inverted-triangle {
  width: 0;
  height: 0;
  border-left: 23px solid transparent;
  border-right: 23px solid transparent;
  border-top: 23px solid hsl(217, 19%, 35%);
  transform: translate(50%, 120%);
  position: absolute;
}

.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (max-width: 600px) {
  .card {
    flex-direction: column;
    height: 500px;
  }

  .right {
    width: 100%;
  }

  .left {
    background-position: center;
    background-size: cover;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 10px;
    width: 100%;
    height: 300px;
  }

  .social-links {
    height: 100px;
    width: 100%;
    position: absolute;
    bottom: -8rem;
    right: 0rem;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    transition: bottom 0.3s ease-in-out;
  }

  .active {
    bottom: 0rem;
  }
}
