Here are the lines I replaced. Try these: const styles = { error: `color: red; font-weight: bold;`, outer: `position: relative; vertical-align: middle; font-family: pictos; display: block; background: #f4e6b6; border: 1px solid black; height: auto; line-height: 34px; text-align: center; border-radius: 2px;`, rollName: `font-family: arial; font-size: 1.1rem; color: black; font-style:italic; font-weight: bold; position:relative; overflow: hidden; display: block; line-height: 0.9rem; margin: 1px 0px 0px 0px; white-space: nowrap; text-align: left; left: 2px;`, buttonContainer: `display: inline-block; text-align: center; vertical-align: middle; line-height: 26px; margin: auto 5px auto 5px; height: 1.95rem; width: 1.95rem; border: #8c6700 1px solid; box-shadow: 0px 0px 3px #805200; border-radius: 5px; background-color: whitesmoke; position: relative;`, buttonShared: `background-color: transparent; border: none; border-radius: 5px; padding: 0px; width: 100%; height: 100%; overflow: hidden; white-space: nowrap; position: absolute; top: 0; left: 0; text-decoration: none;`, crit: `color: darkred; font-size: 2.18rem; line-height: 1.73rem; text-shadow: 0px 0px 2px black;`, crit2: `color: #ff4040; font-size: 1.35rem; line-height: 1.8rem;`, full: `color: darkred; font-size: 1.8rem; line-height: 1.73rem; text-shadow: 0px 0px 2px black;`, half: `color: black; font-family: pictos three; font-size: 1.95rem; line-height: 2.25rem; text-shadow: 0px 0px 2px black;`, halfSmall: `color: black; font-family: pictos three; font-size: 1.65rem; line-height: 2.1rem; text-shadow: 0px 0px 1px black;`, half2: `color: whitesmoke; font-family: cursive; font-size: 0.68rem; line-height: 1.95rem;`, critHalf: `color: #d51d1d; font-family: pictos three; font-size: 2.24rem; line-height: 2.1rem; text-shadow: 0px 0px 2px black;`, healFull: `color: green; font-size: 1.8rem; line-height: 2.73rem; text-shadow: 0px 0px 2px black;`, damageLabel: `font-family: cursive; font-size: 0.9rem; font-weight: bolder; color: #f2c8c8; line-height: 1.8rem;`, healLabel: `color: #cdf7d1; font-family:cursive; font-size: 1.35rem; font-weight:bold; line-height: 1.65rem; text-shadow: 0px 0px 2px white;`, resist: ` font-family: pictos three; font-size: 1.95rem; line-height: 2.1rem; text-shadow: 0px 0px 2px black; color: #003f82;`, resistSmall: ` font-family: pictos three; font-size: 1.65rem; line-height: 2.1rem; color: #003f82; text-shadow: 0px 0px 1px black;`, resistLabel: `font-family: cursive; font-size: 0.75rem; line-height: 1.95rem; `, ...