@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

*{
  margin:0;
  padding: 0;
  box-sizing: border-box;
  font-family:Manrope ;
  font-size:13px;
}
body{
  background: hsl(210, 46%, 95%);
  display:flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
}
main{
  background: white;
  display:grid;
  grid-column: 1fr;
  width:87vw;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
  max-width:350px;
  position:relative;
  
}
.drawer{
  width:100%;
  height:100%;
  object-fit:cover;

}
.michelle{
  max-width: 40px;
  border-radius:50%;
}
.img-box{
  height:30vh;
  max-height:300px;
}
.title{
  color: hsl(217, 19%, 35%) ;
  font-weight: 700;
  font-size:16px;
}
.text-container{
  padding:30px;
  display:flex;
  flex-direction: column;
  gap:30px;
}
.description{
  font-size:12.8px;
  color: hsl(214, 17%, 51%);
  font-weight: 500;
}
.title-box{
  display:flex;
  gap:15px;
  flex-direction: column;
}
.lower-box{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.left-side{
  display: flex;
  gap:15px;
}
.girl-name{
  color: hsl(217, 19%, 35%) ;
  font-weight: 700;
}
.date{
  color: hsl(212, 23%, 69%) ;
  font-weight: 500;
}
.share{
  height: 30px;
  width:30px;
  background: hsl(210, 46%, 95%)  ;
  align-self:center;
  padding:7px;
  border-radius:50%;
}
.share-toggle{
  z-index: 2;
  position:absolute;
  bottom:18px;
  right:18px;
}
.share-title{
  position:absolute;
  background: hsl(217, 19%, 35%)  ;
  width:100%;
  display: flex;
  left:0px;
  bottom:0px;
  align-items: center;
  gap:15px;
  height:67px;
  padding: 30px;
  display:none;
}
.hidden{
  display: flex;
}
.share-text{
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size:13px; 
  font-weight: 500;
  color: hsl(210, 46%, 95%)  ;
}
.icon-box{
  display: flex;
  justify-content: space-between;
}

@media(min-width:768px){
  main{
    display: flex;
    flex-direction: row;
    max-width:800px;
  }
  .drawer{
    height: 100%;
    width:100%;
  }
  .img-box{
    min-width:250px;
    max-height:250px;
  }
  .share{
    width:40px;
    height:40px;
  }
  .share-toggle{
    bottom: auto;
    right:30px;
    
  }
  .share-title{
    bottom:120px;
    left:635px;
    width:230px;
    z-index: 3;
    border-radius:10px;
    height: 50px;
  }
  .share-title::after{
    content: "";
  position: absolute;
  bottom: -18px; /* Adjust to position below the box */
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: hsl(217, 19%, 35%)  transparent transparent transparent; /* Creates an arrow */
  }
  main{
    overflow:visible;
  }
}

