Source Code: https://codepen.io/shivang-software-developer/pen/xxgaOpG
Challenge: https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Cascade_tasks#task_one
I have implemented the solution (codepen link above). Please review it and let me know if this is the best way to solve the challenge.
Thanks,