Struggle with selectors

Hello everyone.

Firstly sorry for my poor English.

I have a problem with selectors.

I want when I click .Popup-link, .popdown is hidden, and when I click .Popdown-link, .popup is hidden.

It just happens when I click .Popup-link but when I click .Popdown-link .popup still there

How can I fix that? Please help me. Thanks

Hello,

Are you looking for a solution that uses on HTML and CSS or would you be interested in using JavaScript to accomplish this?

Also, wyould it be possible for you to copy your code into this forum or into an online editor and give us the link so we can test our solution?

Sorry . My bad
https://codepen.io/nguyenthanhminh112000/pen/MWKJGMx?editors=1100
I am looking for a solution that uses on HTML and CSS because I haven’t learnt Javascript yet .

I think I may have finally figured it out. I think it would be super easy using onclick() in JavaScript, but this is the best I could do using CSS. Hopefully it helps.

https://www.w3schools.com/code/tryit.asp?filename=GFY2O1JUT17S

Oh. Thanks for helping me .