fix the bug by using

background-size: contain

also remove uneccessary css attributes