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

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

:root{
    --Very-Dark-Grayish-Blue: hsl(217, 19%, 35%);
    --Desaturated-Dark-Blue: hsl(214, 17%, 51%);
    --Grayish-Blue: hsl(212, 23%, 69%);
    --Light-Grayish-Blue: hsl(210, 46%, 95%);
    --white: #FFFF;
}

.hidden{
    display: none;
}
.removeHidden{
    display: flex !important;
}

body{
    font-family: Manrope, 'serif';
    background-color: var(--Light-Grayish-Blue);
    font-size: 13px;
}

main{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

h1{
    font-size: 1.2em;
    color: var(--Very-Dark-Grayish-Blue);
}

article{
    width: 327px;
    height: 538px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
}


/* --hero-img-- */
#hero-img{
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/*--article-content--*/

.article-content {
    padding: 1.4em;
}

.article-content .header {
    font-size: 1.54em;
    margin-bottom: 0.8em;
    color: var(--Very-Dark-Grayish-Blue);
}

#description{
    color:var(--Grayish-Blue);
    line-height: 1.7;
    margin-bottom: 1.4em;
}

/*--creator-pfp--*/

#creators-pfp{
    display: flex;
    justify-content: space-between;
    margin-top: 1.3em;
}
#creators-detail{
    display: flex;
}
#creators-detail img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1em;
}

#creators-detail p{
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

#creators-detail small{
    color: var(--Grayish-Blue);
}

#name{
    color: var(--Very-Dark-Grayish-Blue);
    font-weight: bold;
}
.share-svg{
    background-color: var(--Light-Grayish-Blue);
    cursor: pointer;
    border-radius: 50%;
}

.share-1{
    margin: 0.9em;
}

/* --- share-onClci --*/
.share{
    color: var(--Grayish-Blue);
    display: none;
    transition: 0.3s ease-in-out;
    background-color: var(--Very-Dark-Grayish-Blue);
    padding: 1.5em 2em;
    justify-content: space-between;
    align-items: center;
}


.share-items{
    display: flex;
}

.social-imgs{
    margin-left: 3em;
}

.social-imgs svg{
    margin-right: 1em;
    cursor: pointer;
}

.share-svg-2{
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.share-2{
    margin: 0.6em; 
}

.share-svg-2{
    background-color: var(--Desaturated-Dark-Blue);
}

#triangle{
    display: none;
}

/*--- Tablet-breakpoint ---*/

@media (min-width: 768px) {
    article{
        width: 608px;
        height: 346px;
        background-color: var(--white);
        border-radius: 8px;
        overflow: visible;
        display: grid;
        grid-template-columns: 37.66% 62.34%;
        position: relative;
    }

    .article-content{
        height: 100%;
        padding: 4em 2.5em;
    }

    #hero-img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: left;
        clip-path: inset(0 0 0 round 8px 0 0 8px);
    }

    /*--share-button-on-hover--*/
    .share-svg:active{
        background-color: var(--Very-Dark-Grayish-Blue);
    }
    
    .share-svg:active svg{
        fill: var(--white);
    }
    
    .share-svg-2{
        display: none;
    }

    .share{
        display: none;
        padding: 1em 2.3em;
        justify-content: space-between;
        z-index: 3;
        position: absolute;
        right: -4.7em;
        top: 50%;
        border-radius: 15px;
        box-shadow: 3px 4px 10px var(--Light-Grayish-Blue);
    }

    #triangle{
        display: flex;
        width: 0;
        height: 0;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-bottom: 13px solid var(--Very-Dark-Grayish-Blue); 
        transform: rotate(180deg);
        position: absolute;
        left: 9.3em;
        margin-top: 4.5em;
        z-index: 4;
        /* box-shadow: 0px 4px 10px var(--Light-Grayish-Blue); */
    }

    .share-items p{
        margin-right: 0.6em;
    }

}


/*--- Desktop-breakpoint ---*/

@media (min-width: 1020px){
    article{
        width: 730px;
        height: 280px;
    }
    .article-content{
        height: 100%;
        padding: 2.2em 2.5em;
    }

    #hero-img{
        height: 280px;
    }
}

