:root {
    --black-border: rgba(0, 0, 0, 0.12);
    --black-primary: rgba(0, 0, 0, 0.87);
}


body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 100vh;
    margin: 0;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.54);
}


.material-icons {
    font-size: 18px;
}


.profile-card {
    background-color: white;
    width: 100vw;
    margin: calc(34px * 2 + 32px) 16px 0;
    max-width: 352px;
    border-radius: 4px;
    box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
              0px 1px 1px 0px rgba(0, 0, 0, 0.14),
              0px 1px 3px 0px rgba(0, 0, 0, 0.12);
    cursor: default;
}


.profile-card__content {
    position: relative;
    padding: 24px;
}


.profile-card__cover {
    position: absolute;
    width: calc(100% - (24px * 2));
    top: -34px;
    box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2),
              0px 8px 10px 1px rgba(0, 0, 0, 0.14),
              0px 3px 14px 2px rgba(0, 0, 0, 0.12);
    transition: transform .3s cubic-bezier(.34,2,.6,1);
    border-radius: 4px;
    overflow: hidden;
}

.profile-card__cover::before {
    content: "";
    display: block;
    width: 100%;
    padding-top: calc(100% / 16 * 9);
}

.profile-card:hover .profile-card__cover,
.profile-card [type="checkbox"]:checked ~ .profile-card__content .profile-card__cover{
    transform: translateY( calc(24px * 2.5 * -1) );
}


.profile-card__cover img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.profile-card__info-row {
    display: flex;
    justify-content: space-between;
}

.profile-card__cover + .profile-card__info-row {
    padding: 76px 0 16px;
    border-bottom: 1px solid var(--black-border, rgba(0, 0, 0, 0.12));
}

.profile-card__name + .profile-card__info-row {
    margin-top: 16px;
}


.profile-card__info-row i {
    margin-right: 4px;
    vertical-align: top;
    color: rgba(0, 0, 0, 0.38);
}


.profile-card__name {
    margin-top: 24px;
}


.profile-card__name > div {
    font-size: 20px;
    font-weight: bold;
    color: var(--black-primary, rgba(0, 0, 0, 0.87));
}

.follow,
.unfollow {
    cursor: pointer;
}


.follow i,
.unfollow i {
    transition: all 750ms ease;
}


.follow:hover i {
    color: #4caf50;
}

.unfollow:hover i {
    color: #f44336;
}


.profile-card__dropdown {
    border-top: 1px solid var(--black-border, rgba(0, 0, 0, 0.12));
}


.profile-card__dropdown ul {
    background-color: #eeeeee;
    margin: 0;
    padding: 0;
    list-style-type: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 500ms ease;
}

.profile-card [type="checkbox"]:checked ~ .profile-card__dropdown ul {
    max-height: calc(56px * 3);
}


.profile-card__dropdown li {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 56px;
    line-height: 56px;
}


.profile-card__dropdown a {
    margin-right: 4px;
    text-decoration: none;
    color: inherit;
}


.profile-card__dropdown i {
    position: absolute;
    right: 8px;
    opacity: 0;
    transition: transform 300ms ease;
    color: #2196f3;
}

.profile-card__dropdown a:hover + i {
    opacity: 1;
    transform: translateX(2px);
}


.profile-card__dropdown-trigger {
    display: block;
    height: 56px;
    line-height: 56px;
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    color: var(--black-primary, rgba(0, 0, 0, 0.87));
    cursor: pointer;
}


.profile-card [type="checkbox"]:checked ~ .profile-card__dropdown .profile-card__dropdown-trigger span {
    display: none;
}

.profile-card [type="checkbox"]:checked ~ .profile-card__dropdown .profile-card__dropdown-trigger::before {
    content: "Hide";
}



@media all and (max-width: 384px) {

    body {
        font-size: 12px;
    }


    .profile-card {
        max-width: 288px;
        margin-top: 110px;
    }

    .profile-card:last-child {
        margin-bottom: 24px;
    }


    .profile-card__content {
        padding: 16px;
    }


    .profile-card__cover {
        width: calc(100% - (16px * 2))
    }

    .profile-card__cover.profile-card__cover {
        transform: translateY( calc(24px * 2.5 * -1) );
    }


    .profile-card__cover + .profile-card__info-row {
        padding-top: 60px;
    }

    .profile-card__name + .profile-card__info-row {
        margin-top: 12px;
    }


    .profile-card__name {
        margin-top: 16px;
    }


    .profile-card__name > div {
        font-size: 16px;
    }


    .profile-card__dropdown li,
    .profile-card__dropdown-trigger {
        height: 48px;
        line-height: 48px;
    }
}
