Card flip animation when item is clicked