@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&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%);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
}

img {
    max-width: 100%;
}

body {
    background-color: var(--Light-Grayish-Blue);
    color: var(--Very-Dark-Grayish-Blue);
    display: grid;
    place-content: center;
    font-size: 13px;
    height: 100vh;
}

.container {
    width: 850px;
    margin-inline: auto;

}

.box {
    display: grid;
    grid-template-columns: 40% 60%;
    box-shadow: 0px 8px 16px hsl(var(--Grayish-Blue), .2);

}

.box .imge {
    height: 340px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    overflow: hidden;
}

.box .imge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0;
}

.box .text {
    padding: 3.5em;
    display: grid;
    gap: 1.5em;
    background-color: white;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.box .text h2 {
    font-weight: 700;
    font-size: 1.8em;
    color: var(--Very-Dark-Grayish-Blue);
}


.box .text p {
    line-height: 23px;
    font-size: 1.15em;
}

.box .text .foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}


.box .foot .user {
    display: flex;
    align-items: center;
}


.box .foot .user .thm {
    flex-basis: 40px;
    height: 40px;
    margin-inline-end: 1em;
    border-radius: 50%;
    overflow: hidden;
}

.box .foot .user .thm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.box .foot .user .title h5 {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--Very-Dark-Grayish-Blue);
}

.box .foot .user .title span {
    font-size: 1.2em;
    color: var(--Grayish-Blue);
}

.share button {
    height: 35px;
    width: 35px;
    border: 0;
    background-color: var(--Grayish-Blue);
    border-radius: 50%;
    cursor: pointer;
    transition: 300ms;
    position: relative;
    z-index: 1;
}

.share button img {
    transition: 300ms;
}


.box-share {
    position: absolute;
    top: -6.5em;
    background-color: var(--Very-Dark-Grayish-Blue);
    display: flex;
    justify-content: center;
    min-width: 255px;
    padding: 1.5em;
    right: -105px;
    border-radius: 10px;
    box-shadow: 0 3px 10px hsl(var(--Grayish-Blue), .2);
    transition: 300ms;
    opacity: 0;
    visibility: hidden;
}

.box-share.active {
    opacity: 1;
    visibility: visible;
}

.box-share span {
    letter-spacing: .5em;
    text-transform: uppercase;
    margin-inline-end: 1.5em;
    color: var(--Grayish-Blue);
}

.box-share ul {
    display: flex;
    padding: 0;
    list-style: none;
    gap: 1.1em;
}


.box-share ul li a {
    display: block;
    width: 16px;
    height: 16px;
}

.box-share ul li a img {
    width: 100%;
    height: 100%;
}


.box-share::after {
    content: "";
    position: absolute;
    border: 15px solid transparent;
    border-top-color: var(--Very-Dark-Grayish-Blue);
    left: 50%;
    transform: translateX(-50%);
    bottom: -2.2em;
    filter: drop-shadow(0 3px 10px hsl(var(--Grayish-Blue), .2));
}

.share button:active,
.share button:hover {
    background-color: var(--Desaturated-Dark-Blue);
}


.share button:active img,
.share button:hover img {
    filter: brightness(0)invert(1);
}



@media (max-width: 850px) {
    .container {
        width: 100%;
        padding-inline: 1em;

    }

    .box {
        grid-template-columns: 100%;
        overflow: hidden;
    }

    .box .imge {
        height: 290px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;

    }

    .box .text {
        gap: 1em;
        padding-block-end: 1;
        padding-inline: 2.5em;
    }

    .box .text h2 {
        font-size: 1.2em;
    }

    .box .text p {
        font-size: 1em;
    }

    .box .foot {
        margin-block-start: 1em;
    }

    .box-share {
        left: -2.5em;
        right: -2.5em;
        min-width: 100%;
        bottom: -1em;
        top: inherit;
        transform: unset;
        min-height: 73px;
        align-items: center;
        justify-content: flex-start;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        padding-inline-start: 3.5em;
    }

    .box-share::after {
        display: none;
    }

}