.link{ color: #000; font-family: 'Slabo 27px', serif; font-size: 24px; line-height: 18px; text-transform: capitalize; display: inline-block; position: relative; z-index: 1; transition: all 0.3s ease 0s; } .link:focus, .link:hover{ color: transparent; text-shadow: 2px 2px 1px #fff; } .link:before{ content: ""; background: linear-gradient(#eaafc8,#654ea3); opacity: 0; position: absolute; left: 5px; top: 5px; bottom: 0; right: 0; z-index: -1; transition: all 0.2s ease-out 0s; } .link:hover:before{ opacity: 1; left: -5px; top: -5px; } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }