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

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

img{
    max-width: 100%;
}

body{
    background-color: hsl(210, 46%, 95%);
    font-family: "Manrope";

    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main{
    background-color: white;
    margin: 4.5rem 1.5rem;
    border-radius: 10px;
    box-shadow: 5px 2px 30px rgba(0, 0, 0, 0.1);
    
}
.main__drawers{
    border-radius: 10px 10px 0 0;
}
.main__section{
    margin-block: 2.25rem 1.25rem;
}
.main__h1{
    color: hsl(217, 19%, 35%);
    font-size: 1rem;
    padding-inline: 2rem;

}
.main__description{
    color: hsl(214, 17%, 51%);
    font-size: 0.85rem;
    margin-block: 1.375rem 2.375rem;
    padding-inline: 2rem;

}

.main__pub-info{
    padding-inline: 2rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
}
.main__publisher{
    display: flex;
    align-items: center;
}
.main__pfp{
    width: 42px;
    height: 42px;
    border-radius: 50%;
}
.main__name{
    font-size: 0.8125rem;
    color: hsl(217, 19%, 35%);
    margin-inline-start: 1rem;
    display: flex;
    flex-flow: column;
}

.main__date{
    color: hsl(212, 23%, 69%);
    font-weight: 400;
    margin-block-start: .2rem;
}

.main__share-icon{
    width: 30px;
    height: 30px;
    padding: .5rem;
    background-color: hsl(214, 17%, 51%);
    border-radius: 50%;
    display: flex;
    align-items: center;
}
.icon{
    color: #6E8098;
}
.main__publisher{
    display: flex;
}

.share-state{
    background-color: hsl(217, 19%, 35%);
    width: 100%;
    padding-inline-start: 2rem;
    padding-block: 1rem;
    border-radius: 0 0 10px 10px;
}
.main__sharing-opt{
    display: none;
    align-items: center;
}
.main__share{
    color: hsl(212, 23%, 69%);
    font-size: .85rem;
    font-weight: 300;
    letter-spacing: .85ch;
    margin-inline-end: 1.375rem;
}
.main__sharing-opt img{
    margin-inline-end: .75rem;
}
.share-active{
    width: 30px;
    height: 30px;
    padding: .5rem;
    background-color: hsl(214, 17%, 51%);
    border-radius: 50%;
    display: flex;
    align-items: center;
}

@media screen and (min-width: 1024px) {
    .main{
        display: flex;
        margin: 0;
        max-width: 725px;
        max-height: 300px;

    }
    .main__drawers{
        max-width: 280px;
        max-height: 300px;
        border-radius: 10px 0 0 10px;
    }
    .main__h1{
        font-size: 1.375rem;
    }
    .main__description{
        font-size: 0.85rem;
        margin-block: 1.25rem;
    }

    .main__publisher{
        display: flex;
    }
    .main__pub-info{
        position: relative;
    }
    .main__sharing-opt{
        display: none;
        background-color: hsl(217, 19%, 35%);
        padding-inline: 2rem 1.25rem;
        padding-block: 1rem;
        border-radius: 10px;
        width: max-content;

        position: absolute;
        left: 275px;
        top: -60px;
    }
    .main__sharing-opt::after {
        content: ''; 
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid hsl(217, 19%, 35%); 
        position: absolute;
        bottom: -10px; 
        left: 50%;
        transform: translateX(-50%); /* Center the triangle */
      }
}