#desc {
    visibility: hidden;
    opacity: 0;
}
.exp-container > .buttons:has(.button:focus) + #desc {
    opacity: 1;
    transition: 0.5s;
}
.exp-container > .buttons:has(#OMI:focus) + #desc > .top > h1:before {
    visibility: visible;
    transition: 0.5s;
    content: "Graphic Design Lead";
}
.exp-container > .buttons:has(#OMI:focus) + #desc > .top > .date:before {
    visibility: visible;
    transition: 0.5s;
    content: "July 2021 - July 2022";
}
.exp-container > .buttons:has(#OMI:focus) + #desc > .content > .exp::before {
    visibility: visible;
    transition: 0.5s;
    content: "- Developing screens and UI components for the web application using React and Tailwind. - Fixing UI issues and integrating backend APIs with Redux Saga.";
}
.exp-container > .buttons:has(#OMI:focus) + #desc > .content > .comp::before {
    visibility: visible;
    transition: 0.5s;
    content: "Remote";
}<div class="exp-container">
    <div class="title">
        EXPERIENCE
    </div>
    <div class="buttons">
        <button class="button" id="OMI"><span>ONE</span></button>
        <button class="button" id="RC"><span>TWO</span></button>
        <button class="button" id="MRKT"><span>THREE</span></button>
        <button class="button" id="BIBLE"><span>FOUR</span></button>
        <button class="button" id="FREE"><span>FIVE</span></button>
        <button class="button" id="CHAR"><span>SIX</span></button>
    </div>
    <div id="desc">
        <div class="top">
            <h1>Placeholder Text <span class="date">Month 2022 - Month 2022</span></h1>
        </div>
        <div class="content">
            <div class="comp">Placeholder Text</div>
            <div class="exp">Placeholder Text<br>Placeholder Text<br>Placeholder Text</div>
        </div>
    </div>
</div>I made some changes that included trying :has(), but my issue is now that I want to align these buttons so they evenly fit inside in the fluid background.
Doing so requires the buttons to be in a seperate div from the content so I am able to make the buttons flex (as far as I know).
Is this possible in just CSS or do I have to include js?
 
     
     
     
    