built in the 12th century of the later zoroid dynasty , its main building had a ground plan based on the mandlebrot set , and its vertical features were composed of spires and domes , decorated with numerous windows , arcades , and balconies .