
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700&display=swap');
* {
    padding: 0;
    margin: 0;
    box-sizing: inherit;
}

html {
    font-size: 62.5%;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color:  hsl(210, 46%, 95%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.card {
    background-color: #fff;
    max-width: 375px;
    border-radius: 1rem;
    margin: 10vh auto;
    position: relative; /* important */
}

.card-content {
    padding: 3rem;
}

.banner-img {
    width: 100%;
    height: 230px;
    border-radius: 1rem 1rem 0 0;
}

.main-heading {
    color: hsl(214, 17%, 51%);
    padding-bottom: 1.5rem;
    font-size: 2.4rem;
}

.main-text {
    color: hsl(212, 23%, 69%);
    font-size: 1.5rem;
    line-height: 1.5;
}

.writer-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.writer-info {
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 1.3rem;
    line-height: 1.5;
    position: relative;
}

.writer-name {
    color: hsl(214, 17%, 51%);
}

.date {
    padding: 0;
    color: hsl(212, 23%, 69%);
}

.writer-img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-right: 1rem;
}

.share-btn {
    border-radius: 50%;
    border: none;
   width: 30px;
   height: 30px;
    background-color:hsl(210, 46%, 95%);
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: transform .2s ease-in-out;
}

.share-btn.active {
    transform: translateY(1.5rem);
}

.share-icon {
    fill:hsl(217, 19%, 35%);
    height: 15px;
    width: 15px;
    position: relative;
}

.share-icon.active {
    fill: white;
   
}

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

.social-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    height: 8rem;
    width: 100%;
    background-color: hsl(217, 19%, 35%);
    position: absolute;
    left: 0rem;
    bottom: 0;
    padding-left: 3rem;
    padding-right: 15rem;
    border-radius: 0 0 1rem 1rem;
    opacity: 0;
    transition: all 0.3s;
}

.social-wrapper span {
    color: hsl(212, 23%, 69%);
    font-size: 1.5rem;
    letter-spacing:5px;
    text-transform: uppercase;

}

.social-wrapper img {
    cursor: pointer;
}

.social-wrapper.active {
    opacity: 1;
}

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

.share-icon.active {
    fill: white;

}


@media (min-width: 1200px) {
    .card {
        display: grid;
        grid-template-columns: auto auto;
       max-width: 1200px;
       margin: auto 5vw;
       box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.2); 
    }

    .banner-img {
        border-radius: 1rem 0 0 1rem;
        width: 100%;
        height: 100%;
        display: block;
    }

    .card-content {
        padding: 5rem;
    }
    .main-heading {
        font-size: 3rem;
    }

    .main-text {
        font-size: 1.8rem;
    }

    .writer-wrapper {
        position: relative;
    }
    .writer-info {
        font-size: 1.6rem;
        display: flex;
    }
    .writer-img {
        width: 60px;
        height: 60px;
        margin-right: 2rem;
    }

    .share-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        height: 4rem;
        width: 4rem;
    }

    .share__icon {
        height: 2rem;
        width: 2rem;
    }

    .social-wrapper {
        padding: 2rem 4rem;
        background-color: hsl(217, 19%, 35%);
        border-radius: 1rem;
        width: 30rem;
        opacity: 0;
        position: absolute;
        left: auto;
        left: 47rem;
        bottom: 8rem;
    }

    .social-wrapper::after {
        top: 7rem;
        position: absolute;
        right: 12rem;
        content: "";
      border-left: 20px solid transparent;
      border-right: 20px solid transparent;
      border-top: 25px solid hsl(217, 19%, 35%);
    }

    .share-btn.active {
        transform: translateY(0rem);
    }

} 