Horrible (adjective) modifies the subject pronoun "it" The subject is "it" The verb is "must have been" The gerund phrase, "standing in the rain" also refers to the subject "it" Another way of saying this is: Standing in the rain must have been horrible.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.