added script for window size detection and resizing, updated styles