Recursirvely check the parents of the clicked item
Inline CSS is evil. Use classes which makes styling easier. Might need more indent classes.