i am trying to change color on buttons when main button is clicked, one color is changing why the other buttons color is not changing, is it because it's outside main <div> how can i achieve it, without removing any div.
button.one:focus~div.two {
background-color: rgba(185, 28, 28, 1);
}
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet" />
<div>
<button class="one bg-red-400 font-bold px-4 py-4 rounded-lg">MAIN BUTTON</button>
<div class="two bg-blue-400 font-bold px-4 py-4 rounded-lg">RED
</div>
</div>
<div class="two bg-blue-400 font-bold px-4 py-4 rounded-lg">MAKE THIS RED TOO</div>