How can you access the computed styles of an element?
window.getComputedStyle(element) returns a live CSSStyleDeclaration object containing all the computed styles of an element. This includes styles from all sources: inline styles, embedded stylesheets, and external stylesheets. Unlike element.style, this method returns the final calculated styles after all CSS rules have been applied, making it useful for getting the actual rendered styles of an element.