.link{ color: #555; font-family: 'M PLUS 1 Code', sans-serif; font-size: 22px; font-weight: 500; line-height: 20px; text-transform: capitalize; display: inline-block; transition: all 0.5s ease 0s; } .link:hover, .link:focus{ color: #2980b9; text-decoration: underline; transform: rotateX(360deg) rotate(-5deg); } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }