fixing styling to center items and simplify rules