styling background and marble number logic