Move code styles in main.css. Add events example