Fixed the Styles class to iterate through all styles until closing style tag is found