First, please donot post code as a picture, no-one likes typing from a screen. Then, you can try to use card-mod and fix certain things…there are a few very large threads out there …these two posts from Ildar are super helpful.
Card-mod - Add css styles to any lovelace card - Share your Projects! / Dashboards & Frontend - Home Assistant Community