added CSS transitions and the beginning of the main chemistry functions