*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body{
    min-height: 100vh;
    display: grid;
    justify-content: center;
    place-content: center;
}

/* Cards */

.cards{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px;
    flex-wrap: wrap;
}

/* Card */

.cards .card{
    background: var(--background-img);
    background-size: cover;
    width: 300px;
    height: 500px;
    border-radius: 6px;
    box-shadow: 0px 0px 10px black;
    display: flex;
    flex-direction: column;
}

.cards .card:hover{
  margin: 20px 10px;
  transform: scale(1.1);
  box-shadow: 0px 0px 28px rgba(0, 0, 0, 0.8);
  transition: all cubic-bezier(0.175, 0.885, 0.32, 1.275) 300ms;
}

/* card body */

.cards .card .body{
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    height: 100%;
    margin-top: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    border-radius: 6px;
    padding: 10px 25px;
    animation-name: move_up;
    animation-duration: 1s;
}
/* card body avatar */

.cards .card .body .avatar{
    background: var(--background-img);
    background-size: cover;
    width: 100px;
    height: 100px;
    border-radius: 100%;
    box-shadow: 0px 0px 10px rgb(20, 20, 20);
    margin-top: -25%;
}

.cards .card .body p{
    text-align: center;
}

/* card .body footer */

.cards .card .body .footer{
    display: flex;
    width: 100%;
    height: 40px;
    justify-content: space-evenly;
    align-items: center;
}

/* card .body footer a*/

.cards .card .body .footer a{
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 6px 4px;
    width: 35px;
    height: 35px;
    border-radius: 100%;
}

.cards .card .body .footer a:hover{
    box-shadow: 0px 0px 10px rgb(255, 255, 255);
    transition: all 200ms ease-in-out;
}
/* Animation */
@keyframes move_up {
    0%{
        margin-top: 100%;
        background-color: rgba(0, 0, 0, 0);
    }
    50%{
        margin-top: 30%;
        background-color: rgba(0, 0, 0, 0.5);
    }
    100%{
        margin-top: 50%;
        background-color: rgba(0, 0, 0, 0.8);
    } 
}