Moved CSS and added flap variables