Fixed problems with resizing window

Cleaned CSS code