まるで + [noun] + の + ようだ/ような + [noun]/ように + [verb]
まるで + [verb (plain)] + ようだ/ような + [noun]/ように + [verb]
まるで + [i-adj] + ようだ/ような + [noun]/ように + [verb]
まるで + [na-adj] + な/である + ようだ/ような + [noun]/ように + [verb]
The pattern まるで…ようだ is used to make vivid comparisons or similes, expressing that something appears, feels, or seems just like or as if it were something else. まるで adds emphasis to the comparison, making it stronger and more dramatic than using ようだ alone.
まるで + Noun + の + ようだ
まるで + Verb (plain form) + ようだ
まるで + い-adjective + ようだ
When modifying a noun, use ような + Noun:
When modifying a verb (describing how something is done), use ように + Verb:
In casual speech, みたいだ is used instead of ようだ with the same meaning.