{ margin: 0; padding: 0; box-sizing:border-box; font-family: Arial, Helvetica, sans-serif; } body { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 100vh; font-family: 'Lato', sans-serif; margin: 0; } h2 { text-align: center; } .social-media-container { position: fixed; top: 50%; left: calc(100% - 60px); list-style-type: none; padding: 0; transform: translateY(-50%); min-width: 250px; } .social-media { align-items: center; display: flex; transition: transform .3s ease-in-out; } .social-media:hover { transform: translateX(calc(-100% + 60px)); } .social-media.instagram { background-color: #a80297; } .social-media.facebook { background-color: #3b5998; } .social-media.twitter { background-color: #00aced; } .social-media.youtube { background-color: rgb(243, 10, 10); } .social-media.linkedin { background-color: #007bb6; } .social-media i { color: #fff; font-size: 20px; padding: 15px; text-align: center; width: 60px; } .social-media a { color: #fff; padding: 0 10px; text-decoration: none; } footer { background-color: #222; color: #fff; font-size: 14px; bottom: 0; position: fixed; left: 0; right: 0; text-align: center; z-index: 999; } footer p { margin: 10px 0; } footer i { color: red; } footer a { color: #3c97bf; text-decoration: none; }