@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: hsl(210, 46%, 95%);
    font-family: 'Manrope', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.container{
    width: 800px;
    height: 300px;
    background-color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    position: relative;
    border-radius: 10px;

}
.hero {
    grid-row-start: 1;
    grid-row-end: 5;
}
.hero img{
    width: 400px;
    height: 100%;
}
.head{
    align-self: self-end;
    font-size: 1.2rem;
    color: hsla(240, 1%, 32%, 0.904);
    font-weight: 700;
    margin-left:40px;
    text-wrap: wrap;
}  
.yap {
    color: hsl(212, 23%, 69%);
    font-weight: 500;
    margin-top: 10px;
    margin-left: 40px;
    line-height: 22px;
    font-size: 13px;
}
.user{
    display: flex;
    justify-content: start;
 
    gap: 10px;

}
.user img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 40px;
    display: inline-block;
}
.name{
    font-weight: bold;
    font-size: 15px;
    text-wrap: nowrap;
    color: hsl(220, 3%, 23%);
}
.user span{
    font-size: 12px;
    text-wrap: nowrap;
    color: hsl(212, 23%, 69%);
}
.share{
   width: 100%;
  display: flex;
  justify-content: end;
}
button{
    height: 30px;
    width: 30px;
    top: 10px;
    right: 30px;
    color: hsl(212, 23%, 69%);
    background-color: transparent;
    border: none;
    position: relative;
    cursor: pointer;
}
.contact{
    display: none;
    position: absolute;
    justify-content: space-around;
    align-items: center;
    height: 40px;
    width: 220px;
    background-color: hsl(217, 19%, 35%);
    border-radius: 10px;
    color: white;
    z-index: 1;
    top: 50%;
    left: 80%;
}
.contact::before{
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 15px 15px 0 15px;
    border-style: solid;
    border-color:hsl(217, 19%, 35%) transparent transparent transparent;
}
.contact p {
    font-size: 14px;
    padding: 0 10px;
    font-weight: 100;
}
.active{
    background-color: hsl(217, 19%, 35%);
    color: white;
    border-radius: 40px;
}
@media screen and (max-width: 390px) {
    .container{
    background-color: white;
    width: 350px;
    height: 85%;
    display: flex;
   position: relative;
    flex-direction: column;
    border-radius: 20px;
    gap: 10px;
}
.hero {
    width: 100%;
    height: 300px;
    display: flex;
 
 
}
.head, .yap{
    margin-left: 20px;
}
.hero img{
    width: 100%;
    height: 260px;
}
.yap{
    color: gray;
    font-size:15px ;
    font-weight: 500;
    line-height: 25x;
    word-spacing: 1px;
}
 
.avatar{
    position: relative;
    right: 20px;
    top: 30px;
}
.name, span{
    position: relative;
    right: 20px;
    top: 40px;
}
.name{
    font-weight: bold;
    font-size: 15px;
}
button{
    position: relative;
    background-color: hsl(209, 45%, 90%);
    color: hsl(217, 19%, 35%);
    border-radius: 50px;
    font-size: 14px;
    top: 40px;
}
.contact{
    display: none;
    justify-content: flex-start;
    gap: 20px;
    position: absolute;
    width: 100%;
    height: 70px;
    top: 90%;
    left: 0;
    border-radius: 0 0 20px 20px;
}  
.contact::before{
    content: '';
    border: none;
}
.contact p {
    font-size: 15px;
    margin-left: 20px;
    letter-spacing: 2px;
    font-weight: 100;
    color: rgba(251, 250, 255, 0.582) ;
}
.contact i{
    color: white;
    font-size: 20px;
}
.dctv{
    position: relative;
    top: 0;
    left: 60px;
    background-color: rgba(251, 250, 255, 0.87);
}
.dctv img{
    width: 15px;
    height: 15px;
    color : white;
    position: relative;
    top: 2px;
    right: 32px;
}
}