Complex sentence: The girls initially bonded over their respective ailments, but, as their friendship developed, they formed an elaborate fantasy life together.
Split into simpler sentences: The girls initially bonded over their respective ailments. Later, as their friendship developed, they formed an elaborate fantasy life together.