body {
    margin: 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.avatar {
    width: 150px;
    box-shadow: 12px 12px 2px 1px #ccd5ae;
    margin-bottom: 10px; 
    opacity: 0.7;
    animation-name: name-up-down;
    animation-duration: 1s;
    animation-fill-mode: both;
}

.avatar:hover {
    opacity: 1;
    cursor: pointer;
}

.card {
    width: 400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    text-align: center;
    background: #e9edc9;
    color: #2b2839;
    border-bottom: 6px solid #d4a373;
}

@keyframes name-up-down {
  0%   {margin-top: 0px;}
  50%  {margin-top: 20px;}
  100% {margin-top: 0px;}
}