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

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

body {
    font-size: 13px;
    background-color: hsl(210, 46%, 95%);
    font-family: 'Manrope', sans-serif;
}

.container {
    max-width: 400px;
    margin: 40px auto;
}

.cart {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
}

.cart img {
    width: 100%;
    height: auto;
    display: block;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

h1 {
    color: hsl(217, 19%, 35%);
    font-size: 18px;
    padding: 30px 30px 10px;
    line-height: 1.4;
}

p {
    color: hsl(214, 17%, 51%);
    padding: 0 30px 20px;
    line-height: 1.6;
}

.profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px 20px;
}

.right {
    display: flex;
    align-items: center;
}

.profile img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
}

.name h2 {
    font-size: 14px;
    color: hsl(217, 19%, 35%);
    margin-bottom: 4px;
}

.name p {
    font-size: 12px;
    color: hsl(214, 17%, 51%);
    padding: 0;
}

.share {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(210, 46%, 95%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
    z-index: 6;
    transition: background-color 0.3s ease;
}

.share i {
    font-size: 16px;
    color: hsl(214, 17%, 51%);
}

.share:hover {
    background-color: hsl(217, 19%, 35%);
}

.share:hover i {
    color: white;
}

.share-box {
    width: 400px;
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    background-color: hsl(217, 19%, 35%);
    color: white;
    padding: 25px 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    font-size: 15px;
    letter-spacing: 2px;
    z-index: 1;
}

.share-box i {
    margin-left: 10px;
    font-size: 18px;
}

.hidden {
    display: none; 
  }
.attribution{
    text-align: center;
}
@media (min-width: 1440px) {
    .container {
        max-width: 700px;
    }

    .cart {
        display: flex;
        flex-direction: row;
    }

    .cart img {
        width: 50%;
        height: auto;
        border-radius: 20px 0 0 20px;
    }

    .profile img {
        border-radius: 50%;
        width: 50px;
        height: 50px;
        object-fit: cover;
        margin-right: 15px;
    }

    .text {
        flex: 1;
    }
    .share-box {
        width: 200px;
        position: absolute;
        bottom: 460px;
        left: 70%;
        transform: translateX(-50%);
        background-color: hsl(217, 19%, 35%);
        color: white;
        padding: 10px 20px;
        border-radius: 10px;
        font-size: 12px;
        letter-spacing: 2px;
        z-index: 10;
    }
    
    .share-box i {
        margin-left: 10px;
        font-size: 14px;
    }
    
    .share-box.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .share-box::after {
        content: '';
        position: absolute;
        bottom: -18px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 10px;
        border-style: solid;
        border-color: hsl(217, 19%, 35%) transparent transparent transparent;
    }
    
}