@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700&display=swap');

: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%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--light-grayish-blue);
    font-size: 15px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center ;
}

main {
    margin: 10px;
}

.container {
    margin: auto;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    border-radius: 20px;
    background-color: #FFF;
}

    .area--img {
        flex: 0.4;
        height: 400px;
        width: 400px;
        min-width: 280px;
        min-height: 280px;
        border-radius: 20px 0px 0px 20px;
        background-image: url(images/drawers.jpg);
        background-size: cover;
        background-position: center;

    }

    .area--copy {
        flex: 0.6;
        display: flex;
        flex-direction: column;
        justify-content:space-between;
    }

    .area--text {
        flex: 2;
        padding: 50px 50px 0px 50px;
    }

        .area--text h1 {
            font-weight: 700;
            color: var(--very-dark-grayish-blue);
            font-size: 26px;
        }

        .area--text p {
            color: var(--desaturated-dark-blue);
            margin: 20px 0px 0px 0px;
            line-height: 25px;
        }
    
    .area--author {
        flex: 1;
        display: flex;
        align-items: flex-end;
        padding: 20px 50px 50px 50px;
    }

        .area--author .avatar {
            border-radius: 50%;
            max-width: 40px;
            height: 40px;
        }

        .area--author .info {
            color: var(--very-dark-grayish-blue);
            font-weight: 700;
            display: flex;
            flex-direction: column;
            justify-content: center;
            width: calc(100% - 80px);
            padding-left: 20px;
        }

            .area--author span {
                color: var(--desaturated-dark-blue);
                font-weight: 500;
            }

            .share--button {
                height: 40px;
                width: 40px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                background-color: var(--light-grayish-blue);
                cursor: pointer;
            }

            .area--share-desktop {
                background-color: var(--very-dark-grayish-blue);
                width: 300px;
                color: var(--grayish-blue);
                position: absolute;
                padding: 15px 35px;
                border-radius: 10px;
                margin-left: 25px;
                margin-bottom: 150px;
                }

            .seta {
                position: absolute;
                width: 20px;
                height: 20px;
                background-color: inherit;
                transform: rotate(45deg);
                margin-top: 25px;
                margin-left: 90px;
            }

            .social-icons {
                display: flex;
                align-items: center;
                justify-content: space-around;
                width: 100%;
            }

    .area--share-mobile {
        background-color: var(--very-dark-grayish-blue);
        color: var(--grayish-blue);
        padding: 20px 30px 20px 30px;
        border-radius: 0px 0px 20px 20px;
        display: flex;
        justify-content: space-between;

    }

            .social-icons-mobile {
                display: flex;
                align-items: center;
                padding-right: 50px;
                width: calc(100% - 40px);
            }

                .social-icons-mobile img {
                    padding-left: 20px;
                }


footer {
    font-size: 11px;
    width: 100%;
    text-align: center;
    margin-top: 50px;
}

footer a {
    text-decoration: none;
}


@media only screen and (max-width: 980px) {

    body {
        font-size: 15px;
    }

    .area--img {
        height: 350px;
        width: 350px;
        min-width: 280px;
        min-height: 280px;
    }

    .area--text {
        padding: 40px 40px 0px 40px;
    }

    .area--text h1 {
        font-size: 24px;
    }
    .area--text p {
        line-height: 24px;
    }

    .area--author {
        padding: 20px 40px 40px 40px;
    }

    .area--share-desktop {
        width: 270px;
        margin-left: 0px;
        }

}


@media only screen and (max-width: 780px) {
    body {
        justify-content: flex-start;}

    .container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .area--img {
        height: 100%;
        width: 100%;
        border-radius: 20px 20px 0px 0px;
    }

    .area--text {
        padding: 40px 40px 0px 40px;
    }

    .area--author {
        padding: 40px;
    }

    .area--share-mobile {
        background-color: var(--very-dark-grayish-blue);
        color: var(--grayish-blue);
        padding: 20px 40px;
        border-radius: 0px 0px 20px 20px;
        display: flex;
        justify-content:space-between;
        margin-top: 40px;
    }
}

.hide {
    display: none;
}
