added responsive design and transition effect for changing background