.hotbar { align-self: left; display: inline-block; left: 20px; line-height: 0; opacity: 1; position: absolute; top: 4px; transition: top 150ms, opacity 200ms; } .label { background-color: transparent; color: white; font-family: Cookbook, Georgia, 'Times New Roman', Times, serif; left: 50%; margin: 0; position: absolute; text-shadow: 0px -1px 0px black, 1px 0px 0px black, 0px 1px 0px black, -1px 0px 0px black ; top: -17.5px; transform: translateX(-50%); }