.link{ color: #a4508b; background: linear-gradient(transparent, #5f0a87) bottom /100% var(--d, 0) no-repeat; font-family: 'Rubik Iso', cursive; font-size: 25px; font-weight: 400; letter-spacing: 1px; line-height: 22px; padding: 0 5px 4px; display: inline-block; transition: 0.5s ease 0s; } .link:focus, .link:hover{ --d: 12px; color: #5f0a87; } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }