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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    user-select: none;
}

body {
    background: #3498db;
}

.main-box {
    height: 550px;
    width: 400px;
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.main-box .content {
    position: relative;
    height: 100%;
    width: 100%;
}

.content .box {
    position: absolute;
    height: 50px;
    width: 100%;
    left: 0;
    bottom: 0;
    border-radius: 25px;
    cursor: pointer;
}

.content .box {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.content .box .share,
.cancel {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    line-height: 50px;
    font-size: 20px;
    font-weight: 600;
    color: #2980b0;
    background: #fff;
    letter-spacing: 1px;
    border-radius: 25px;
    opacity: 0;
    transition: all 0.3s ease;
}

.content .box .share {
    opacity: 1;
}

#check:checked~.box .share {
    opacity: 0;
}

#check:checked~.box .cancel {
    opacity: 1;
}

#check {
    display: none;
}

.content .image-box {
    position: absolute;
    height: 450px;
    width: 100%;
    border-radius: 25px;
    background: #fff;
    padding: 10px;
    left: 0;
    bottom: 130px;
    transition: all 0.4s ease;
}

#check:checked~.image-box {
    bottom: 80px;
}

.content .image-box::before {
    position: absolute;
    content: '';
    height: 30px;
    width: 30px;
    background: #fff;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

.content .image-box img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.image-box .about {
    position: absolute;
    background: rgba(0, 0, 0, 0.35);
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    padding: 20px;
    border-radius: 25px;
    opacity: 0;
    transition: all 0.3s ease;
}

#check:checked~.image-box .about {
    opacity: 1;
}

.about .details {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 35px;
}

.details .name,
.details .job {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.details .name {
    font-size: 22px;
}

.details .icons {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.details .icons i {
    font-size: 20px;
    color: #fff;
    height: 45px;
    width: 45px;
    border-radius: 50%;
    border: 2px solid #fff;
    line-height: 43px;
    margin: 14px 5px;
    transition: all 0.3s ease;
}

.details .icons i:hover {
    background: #fff;
    color: #2980b0;
}

/* responsiveness */

@media (max-width: 480px) {

    .main-box {
        height: 450px;
        width: 90%;
        top: 60%;
    }

    .content .image-box {
        bottom: 115px;
    }
}

@media (max-width: 410px) {

    .main-box {
        height: 350px;
        top: 65%;
    }

    .content .image-box {
        bottom: 115px;
    }
}