
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
  }
  
  
  body {
    font-family: 'Manrope', sans-serif;
    background-color: hsl(210, 46%, 95%);
    min-height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
  }
  
  .main {
    max-width: 730px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    position: relative;
  }
  
  .article-image {
    flex: 0 0 285px;
    background-image: url('./images/drawers.jpg');
    background-size: cover;
    background-position: center;
    background-color: #3b6055; 
  }
  
  .content {
    flex: 1;
    padding: 32px 40px;
    position: relative;
  }
  
  h1 {
    color: hsl(217, 19%, 35%);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .description{
    color: hsl(214,17%,51%);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
    width: 350px;
  }
  
  .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    position: relative;
  }

  .author{
    display: flex;
    align-items: center;
  }
  
  .author img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 16px;
  }
  .author-info h2{
    color: hsl(217, 19%, 35%);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
  }
  .author-info p {
  color: hsl(212, 23%, 69%);
  font-size: 13px;
 }

  .share-wrapper{
    position: relative;
  }

  .share-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: hsl(210, 46%, 95%);
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s;
  }
  .share-button img{
    width: 15px;
    height: 15px;
  }
  .share-button.active{
    background-color: hsl(214, 17%, 51%);
  }
  .share-button.active img{
    filter: brightness(0) invert(1);
  }
  .share-popup{
    position: absolute;
    bottom: 50px;
    right: -110px;
    width: 248px;
    background-color: hsl(217, 19%, 35%);
    padding: 15px 35px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
  }


.share-popup.active{
  opacity: 1;
  visibility: visible;
}
.share-popup::after{
  content: "";
  position: absolute;
  bottom: -10px;
  left: 112px;
  width: 0;
  height: 0;
  transform: translateX(0);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid hsl(217, 19%, 35%);
}
.share-popup p {
  color: hsl(212, 32%, 69%);
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 13px;
  margin-right: 15px;
  font-weight: 500;
}
.social-icons{
  display: flex;
  gap: 15px;
}
  .social-icons img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s;
  }
  
  .social-icons img:hover {
    opacity: 1;
  }
  
  .attribution {
    font-size: 11px;
    text-align: center;
    margin-top: 20px;
    color: hsl(214, 17%, 51%);
  }
  
  .attribution a {
    color: hsl(228, 45%, 44%);
  }

  /* mobile screens */
  @media screen and (max-width: 375px) {

    .main{
      flex-direction: column;
      max-width: 100%;
    }
    .article-image {
      flex: 0 0 200px;
      width: 100%;
      border-radius: 10px 10px 0 0;
      background-position: top center;
    }
    
    .content {
      padding: 36px 32px;
    }
    
    .description {
      width: 100%;
      font-size: 12px;
    }
    
    h1 {
      font-size: 16px;
    }
    
    .share-popup {
      right: -70px;
      bottom: 60px;
    }
    
    .share-popup::after {
      left: 50%;
      transform: translateX(-50%);
    }
  }
  
  /* larger screens */
  @media screen and (max-width: 1440px) {
    body {
      padding: 0 20px;
    }
    
    .main {
      width: 100%;
    }
  }
  /* tablet screens*/
  @media screen and (min-width: 376px) and (max-width: 768px) {
    .main {
      max-width: 600px;
      flex-direction: row;
    }
    
    .article-image {
      flex: 0 0 220px;
    }
    
    .content {
      padding: 30px;
    }
    
    .description {
      width: 100%;
      font-size: 13px;
    }
    
    .share-popup {
      right: -80px;
    }
  }
  