@import url('https://fonts.googleapis.com/css2?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=Be+Vietnam+Pro: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=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&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=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


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

html {
    font-size: 13px;
    font-family: 'Manrope';
}

body, html {
    height: 100%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: hsl(210, 46%, 95%);
}

.main-container {
  display: flex;
  width: 50vw;
  min-width: 700px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.081);
}

.image-container {
    overflow: hidden;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

#drawers-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-container {
  padding: 3rem;
  position: relative;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: hsl(217, 19%, 35%);
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.5rem;
    color: hsl(217, 19%, 35%)
}

.user-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-info {
    flex: 1;
}

.avatar {
    display: flex;
}

#avatar {
    width: 40px;
    border-radius: 25px;
    margin-right: 1.25rem;
}

.user-name {
    font-weight: 700;
    color: hsl(217, 19%, 35%);
    margin-bottom: .2rem;
}

.post-date {
    color: hsl(212, 23%, 69%);
}

.share-icon {
    width: 40px;
    height: 40px;
    padding: .75rem;
    border-radius: 25px;
    background-color: hsl(210, 46%, 95%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.share-icon:hover {
    cursor: pointer;
}

#share-icon-img {
    color: hsl(214, 17%, 51%)
}

.share-links {
    background-color: hsl(217, 19%, 35%);
    display: none;
    flex-wrap: nowrap;  
    justify-content: center;
    align-items: center;
    padding: 1em;
    position: absolute;
    bottom: 100px;
    left: 288px;
    color: hsl(212, 23%, 69%);
    font-size: 12px;
    letter-spacing: .25em;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.352);
}

.share-links::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: hsl(217, 19%, 35%) transparent transparent transparent;
}

.share-links.active {
    display: flex;
}

.link-group {
  display: contents; 
}

.link-element {
    margin: 0 .5em;
}

.share-links svg {
    width: 20px;
    color: hsl(210, 46%, 95%);
}

.share-links svg:hover {
    color: #FFF;
    cursor: pointer;
}

@media screen and (max-width: 700px) {
    
    body, html {
        height: auto;
    }
    
    html {
        font-size: 15px;
    }
    
    .main-container {
        flex-direction: column;
        width: 90vw;
        min-width: 0;
        margin-top: 1em;
    }

    .content-container {
        padding: 2em 3em;
    }

    .image-container {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        border-bottom-left-radius: 0;
    }

  p {
     margin-bottom: 2rem;
  }
  .share-links {
    position: static;
    bottom: auto;
    left: auto;
    border-radius: 10px;
    box-shadow: none;
    flex-direction: row;
    width: 100%;
  }

  .share-links.hidden {
        display: none;
  }

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

  .share-links.mobile-active {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: hsl(217, 19%, 35%);
    padding: 1rem 2rem;
    margin-top: 1rem;
    width: 100%;
    gap: 1rem;
  }

  .link-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

  .share-icon.mobile-active {
    display: flex;
  }

  .user-container.hidden {
    display: none;
  }

  #avatar {
    width: 50px;
  }
}

