added trail function, changed a few css details relating to window size