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

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

    --box-shadow-color: hsl(210, 9%, 73%);
    --footer-text-color: hsl(238, 29%, 16%);
    --link-color: hsl(228, 45%, 44%);
}

*{
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif
}

body{ 
    background-color: var(--Light-Grayish-Blue);
    display: flex;
    justify-items: center;
    align-items: center;
    min-height: 100vh;
    font-size: 13px;
}

main{
    display: flex;
    margin-left: 20%;
    margin-right: 20%;
    background-color: white;
    border-radius: 10px 10px;
    box-shadow: 0px 0px 30px 1px var(--box-shadow-color)
}

.left_bg_card img{
    width: 125%;
    min-height: 100%;
}

.left_bg_card{
    overflow: hidden;
    width: 90%;
    border-top-left-radius: 10px 10px;
    border-bottom-left-radius: 10px 10px;
}

.text_card{
    display: flex;
    flex-direction: column;
    margin: 5% 6% 4% 5%;
}

.title{
    font-weight: 700;
    color: var(--Very-Dark-Grayish-Blue)
}

.text_content{
    font-weight: 500;
    color: var(--Desaturated-Dark-Blue);
    line-height: 1.6em;
    margin-top: 5%;
    font-size: 1.2em;
}

.info-share-container{
    display: flex;
    justify-content: space-between;
    margin-top: -7%;
}

.info_container{
    display: grid;
    grid-template-columns: 18% repeat(1, 1fr);
    grid-template-rows: 1fr 1fr;
}

.profil_pic{
    grid-column: 1;
    grid-row-start: 1;
    grid-row-end: 3;
    align-self: center;
}

.profil_pic img{
    width: 100%;
    border-radius: 50%;
}

.name{
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-weight: 700;
    color: var(--Very-Dark-Grayish-Blue);
    font-size: 1.2em;
    margin-left: 8%;
}

.date{
    grid-column: 2;
    grid-row: 2;
    margin-left: 8%;
    align-self: start;
    font-weight: 500;
    color: var(--Grayish-Blue);
    font-size: 1.2em;
}

#share_btn{
    background-color: var(--Light-Grayish-Blue);
    border-radius: 50%;
    padding-left: 4%;
    padding-right: 4%;
    border: none;
    z-index:10;
}

#SNcontainer{
    display: flex;
    position: relative;
    justify-content: space-evenly;
    background-color: var(--Very-Dark-Grayish-Blue);
    border-radius: 10px;
    padding-top: 4%;
    padding-bottom: 4%;
    left: 315px;
    bottom: 65px;
    margin-right: 40%;
    box-shadow: 0px 5px 10px 2px var(--box-shadow-color)
}

#SNcontainer p{
    font-size: 1.2em;
    color: var(--Grayish-Blue)
}

#SNcontainer::after{
    content:""; 
    border-left:20px solid transparent;
    border-right:20px solid transparent;
    border-top: 20px solid var(--Very-Dark-Grayish-Blue);
    position: absolute;
    left: 105px;
    top: 55px;
    }

footer { 
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
    color: var(--footer-text-color)
}

footer a { color: var(--link-color) }

@media screen and (max-width: 475px){
    body{ 
        min-height: 90vh;
    }

    main{
        flex-direction: column;
        margin-left: 10%;
        margin-right: 10%;
    }

    .left_bg_card img{
        width: 100%;
    }

    .left_bg_card{
        width: 100%;
        border-top-right-radius: 10px 10px;
        border-bottom-left-radius: 0px;
    }

    .title{
        font-size: 0.6em;
    }

    .date{
        font-size: 1.1em;
    }

    .text_card{
        margin: 8% 10% 4% 8%;
    }

    .text_content{
        font-size: 1em;
    }

    #SNcontainer{
        box-shadow:none;
        justify-content: left;
        gap: 7%;
        padding-top: 10%;
        padding-bottom: 10%;
        margin-right: -12%;
        margin-left: -10%;
        left: 0;
        top: 10px;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
    }

    .info-share-container{
        margin-top: -19%;
    }
    
    #SNcontainer::after{
        visibility: hidden;
    }

    #SNcontainer p{
        margin-left: 10%;
        font-size: 0.9em;
    }
}