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

body {
    background-color: hsl(210, 46%, 95%);
}

.container {
    display: flex;
    margin: auto;
    width: 50%;
    background-color: white;
    border-radius: 15px;
    margin-top: 250px;
    position: relative;
}

.img-container {
    flex: 40%;

}

.img-container img {
    width: 100%;
    height: 100%;
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;

}

.txt-container {
    flex: 60%;
    padding: 30px;
    position: relative;
}

.txt-container h1 {
    font-size: 25px;
    color: hsl(217, 19%, 35%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.txt-container p {
    font-size: 18px;
    color: hsl(214, 17%, 51%);
    padding: 15px 0;
}

.profile {
    display: flex;
    gap: 10px;
    position: relative;
    padding-top: 10px;
}

.profile div img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.name-con {
    padding-top: 5px;
}

.name-con h1 {
    font-size: 16px;
}

.name-con span {
    color: hsl(214, 17%, 51%);
    font-size: 13px;
    font-family: 'Courier New', Courier, monospace;
}

.share button {
    position: absolute;
    top: 15px;
    right: 0;
    border-radius: 50%;
    padding: 10px;
    border: none;
    cursor: pointer;

}

.share button:hover {
    background-color: hsl(212, 23%, 69%);
    color: white;
}


.share-con {
    width: 270px;
    height: 65px;
    background-color: hsl(217, 19%, 35%);
    position: absolute;
    right: 320px;
    top: 390px;
    border-radius: 15px;
    display: none;

}

.share-con::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 55%;
    margin-left: -7px;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: hsl(217, 19%, 35%) transparent transparent transparent;
}

.share-con p {
    color: hsl(212, 23%, 69%);
    font-family: monospace;
    font-size: 16px;
    text-transform: uppercase;
    padding: 20px;
    padding-left: 20px;
}

.share-con img {
    padding: 20px 10px 20px 10px;
    gap: 60px;
    size: 100%;
    cursor: pointer;
}

@media (max-width:370px) {
    .container {
        flex-direction: column;
        width: 100%;
        margin: 70px 30px;
        position: relative;

    }

    .img-container img {
        border-top-right-radius: 15px;
        border-top-left-radius: 15px;

    }

    .txt-container {
        padding: 25px 15px;
    }

    .txt-container h1 {
        font-size: 16px;
    }

    .txt-container p {
        font-size: 15px;
    }

    .name-con h1 {
        font-size: 14px;
    }

    .name-con span {
        font-size: 11px;
    }


    .share-con {
        width: 100%;
        height: 74px;
        position: absolute;
        right: 0;
        top: 500px;
        border-top-right-radius: 0;
        border-top-left-radius: 0;
        display: flex;

    }

    .share-con::after {
        border-width: 0px;
    }

    .share button{
        z-index: 1;
        margin-top: 15px;
    }
}