separate styles into individual classes to avoid glitch when scrolling to fast