<div id="a">A</div>
<div id="b">B</div>
<div id="c">C</div>
<style>
#a, #b, #c {
height: 100px;
width: 100px;
background-color:red;
font-size: 100px;
margin-bottom: 20px;
}
#a:active, #b:active, #c:active {
background-color: blue;
}
</style>
Upon clicking on individual elements like #a, #b, or #c, only the respective element changes color. However, a requirement emerged to make all elements change color simultaneously upon clicking any of them.
If this capability necessitates JavaScript, please provide a solution using vanilla JS.