.card12 {
width: 190px;
height: 254px;
background: #f5f5f5;
padding: 2rem 1.5rem;
transition: box-shadow .3s ease, transform .2s ease;
}
.card12-info {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
transition: transform .2s ease, opacity .2s ease;
}
/*Image*/
.card12-avatar {
--size: 60px;
background: linear-gradient(to top, #f1e1c1 0%, #fcbc97 100%);
width: var(--size);
height: var(--size);
border-radius: 50%;
transition: transform .2s ease;
margin-bottom: 1rem;
}
/*card12 footer*/
.card12-social {
transform: translateY(200%);
display: flex;
justify-content: space-around;
width: 100%;
opacity: 0;
transition: transform .2s ease, opacity .2s ease;
}
.card12-social__item {
list-style: none;
}
.card12-social__item svg {
display: block;
height: 18px;
width: 18px;
fill: #515F65;
cursor: pointer;
transition: fill 0.2s ease ,transform 0.2s ease;
}
/*Text*/
.card12-title {
color: #333;
font-size: 1.5em;
font-weight: 600;
line-height: 2rem;
}
.card12-subtitle {
color: #859ba8;
font-size: 0.8em;
}
/*Hover*/
.card12:hover {
box-shadow: 0 8px 50px #23232333;
}
.card12:hover .card12-info {
transform: translateY(-5%);
}
.card12:hover .card12-social {
transform: translateY(100%);
opacity: 1;
}
.card12-social__item svg:hover {
fill: #232323;
transform: scale(1.1);
}
.card12-avatar:hover {
transform: scale(1.1);
}