Added CSS to card flip. Fixed JS bugs.