.link{ color: #555; font-family: 'Rampart One', cursive; text-transform: capitalize; font-size: 23px; font-weight: 400; line-height: 23px; display: inline-block; transition: all 0.5s ease 0s; } .link:focus, .link:hover{ color: #17a2b8; animation: bounce 1s cubic-bezier(0.075, 0.82, 0.165, 1); } @keyframes bounce { from{ transform: scale(1.1); } to{ transform: scale(1); } } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }