the problem here that I covered the entire content with nighmode switcher "<div class=“switch-container”>" but I want this thing to be able to activate on mouse click and at the same time be able to select text behind it and after when it disabled.: <html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS-only Multilingual eco-friendly site</title>
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
line-height: 1.6;
background-color: #f7f7f7;
}

header {
background-color: #4CAF50;
color: #FFF;
padding: 16px 0;
text-align: center;
position: relative;
  z-index: 0;

}

h1 {
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 18px;
width: 90%;
height: 1%;
}

.left, .right {
position: relative;
}

.left::before, .right::before {
content: ‘’;
position: absolute;
top: 50%;
border-bottom: 1px dashed #FFF;
width: 40%;
}

.left::before {
right: 100%;
margin-right: 20px;
}

.right::before {
left: 100%;
margin-left: 20px;
}

.flags-container {
position: fixed;
top: 0;
left: 0;
right: 0;
padding: 3px 0;
background-color: white;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
z-index: 1;
}

.flag-radio {
display: none;
}

.flag-label {
cursor: pointer;
margin: 0 10px;
transition: 0.3s;
opacity: 0.6;
font-size: 24px;
}

.flag-label:hover {
opacity: 1;
}

.language-option {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: none;
justify-content: center;
align-items: center;
padding-top: 50px;
}

#english-flag:checked ~ #english,
#hindi-flag:checked ~ #hindi,
#hebrew-flag:checked ~ #hebrew,
#chinese-flag:checked ~ #chinese,
#french-flag:checked ~ #french,
#spanish-flag:checked ~ #spanish {
display: block;
}

.switch-container {
position: relative;
--padding: 20px;
user-select: text;
  z-index: 21;
width: 100%;
height: 100%;
  top:100px;
}

.switch-container input[type="checkbox"] {
width: 18px;
height: 18px;
pointer-events: all;
    z-index: 21;

}

.switch-container label:before {
content: "";
position: absolute;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
opacity: 0;
transition: opacity 0.3s ease-out;
pointer-events: none; /* <--here! */
    z-index: 21;

}

.switch-container input[type="checkbox"]:checked ~ label:before {
opacity: 1;
pointer-events: all;
  z-index: 21;
  top: 0;
left: 0;
width: 100%;
height: 100%;
}
</style>
</head>
<body><div class="switch-container">
<input type="checkbox" id="switch">
<label for="switch">Energy saving night-mode layer</label>
<input id="english-flag" type="radio" name="flags" class="flag-radio" checked>
<input id="hindi-flag" type="radio" name="flags" class="flag-radio">
<input id="hebrew-flag" type="radio" name="flags" class="flag-radio">
<input id="chinese-flag" type="radio" name="flags" class="flag-radio">
<input id="french-flag" type="radio" name="flags" class="flag-radio">
<input id="spanish-flag" type="radio" name="flags" class="flag-radio">

<div class="flags-container">
<label for="english-flag" class="flag-label" title="English">🇬🇧</label>
<label for="hindi-flag" class="flag-label" title="Hindi">🇮🇳</label>
<label for="hebrew-flag" class="flag-label" title="Hebrew">🇮🇱</label>
<label for="chinese-flag" class="flag-label" title="Chinese">🇨🇳</label>
<label for="french-flag" class="flag-label" title="French">🇫🇷</label>
<label for="spanish-flag" class="flag-label" title="Spanish">🇪🇸</label>
</div>

<header>
<h1>
<span class="left">EcoWare</span>
<span class="right">Earthwise</span>
</h1>
</header>


<div id="english" class="language-option">
<p>English details go here</p>
</div>

<div id="hindi" class="language-option">
<p>Hindi details go here</p>
</div>

<div id="hebrew" class="language-option">
<p>Hebrew details go here</p>
</div>

<div id="chinese" class="language-option">
<p>Chinese details go here</p>
</div>

<div id="french" class="language-option">
<p>French details go here</p>
</div>

<div id="spanish" class="language-option">
<p>Spanish details go here</p>
</div></div>

</body>
</html>