Added canvas resize feature and modified CSS