html, body { font-family: 'Roboto', sans-serif; -webkit-font-smoothing: antialiased; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; } h1 { font-family: 'Roboto Slab', serif; font-weight: normal; } .content { text-align: left; width: 300px; } .sociallinks { margin-top:40px; } .icons { display: flex; flex-direction: row; justify-content: space-between; font-size: 24px; } @media only screen and (max-width: 300px) { .content { width: unset; } } .icons a { filter: drop-shadow(0 4px 0 rgba(0,0,0,.1)); transition: transform .1s ease-out,text-shadow .1s ease-out,filter .1s ease-out; color: #222; } /* Rotate the icons "randomly" */ .icons a:hover { filter: drop-shadow(0 8px 0 rgba(0,0,0,.1)); transform: scale(1.1,1.1) rotate(3.25deg); } .icons a:nth-child(2n):hover { filter: drop-shadow(0 8px 0 rgba(0,0,0,.1)); transform: scale(1.1,1.1) rotate(-4.75deg); } .icons a:nth-child(3n):hover { filter: drop-shadow(0 8px 0 rgba(0,0,0,.1)); transform: scale(1.1,1.1) rotate(2.25deg); } .icons a:nth-child(5n):hover { filter: drop-shadow(0 8px 0 rgba(0,0,0,.1)); transform: scale(1.1,1.1) rotate(4deg); }