* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'manrope', sans-serif;
  background-color: hsl(210, 46%, 95%);
  color: #333;
  line-height: 1.6;
  font-size: 13px;

}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.card {
  display: flex;
  border-radius: 10px;
 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.card-content {
  padding: 1.7rem;
  max-width: 390px;
  position: relative;
}
h2 {
  font-weight: 700;
}
.m-top {
  margin-top: 0.5rem;
}
.card-img {
  width: 250px;
  height: 280px;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
  border-color: #333;
}

.drawer-img {
  width: auto;
  height: 100%;
  object-fit: cover;
  display: block;
  
}

.card-img, .drawer-img {
  margin: 0;
  padding: 0;
}

.profile-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}
.profile {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    
}

.share-btn {
  margin-left: 7rem;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  background-color: hsla(214, 17%, 51%, 0.1);
  border: none;
}
.share-btn {
  cursor: pointer;
}

.share-panel {
  display: none;                  
  position: absolute;             
  bottom: 95px;  
  right: -65px;                 
  background-color: hsl(217, 19%, 35%);
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  color: white;
  align-items: center;
  gap: 1rem;
  font-size: 13px;
  letter-spacing: 5px;
  z-index: 10;
}
.share-panel a:hover img {
  transform: scale(1.3) rotate(5deg);
  opacity: 0.8;
}

.active {
  background-color: hsl(217, 19%, 35%);
  display: flex;
}


.share-panel .triangle {
  position: absolute;
  bottom: -10px;
  left: 100px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid hsl(217, 19%, 35%);
}



@media (max-width:768px) {
  .container {
    padding: 2rem;
  }
  .card {
    flex-direction: column;
    width: 100%;
    max-width: 370px;
    border-radius: 10px;
  }
  

.card-content{
  max-width: 370px;
  padding-bottom: 0%;
}

.card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}
.drawer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.share-btn {
  position: relative;
  margin-left: auto;
  width: 25px;
  height: 25px;
  top: 0.6rem;
}
.share-panel {
  position: static; 
  margin-top: 1rem;
  border-radius: 0 0 10px 10px;
  align-items: center;
  justify-content:left;
  color: hsl(214, 17%, 51%);
  margin-left: -1.7rem;
  margin-right: -1.7rem;
  margin-bottom: 0%;
}


.share-panel .triangle {
  display: none;
}

.profile {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-bottom: 1rem; /* to show when it is active */
}

.profile.hidden {
  padding-bottom: 0; /* to remove padding when it is hidden */
}


.hidden {
  display: none;
}
.edit {
  position: relative;
  top: 4.3rem;
  
  background-color: hsla(210, 46%, 95%, 0.2);
  filter: brightness(0) invert(1);
}

}