Fixed card rendering issues on different screens