Fucking hell, what a day. Finally fixed the damn css bug