I created a navigation menu using HTML and SCSS, but I'm facing an issue where the menu does not close when clicking on links inside it. The menu continues to overlay the content on the page instead of closing. Essentially, I want the navigation menu to close automatically when a link is clicked.
Here's my HTML code
<input type="checkbox" class="navigation__checkbox" id="navi-toggle">
<label for="navi-toggle" class="navigation__button">
<span class="navigation__icon"> </span>
</label>
<div class="navigation__background"> </div>
<div class="navigation__nav">
<div class="container-fluid" id="hd">
<div class="row">
<div class="col-9 col-md-5 col-lg-5" id="both">
<h6 class="fw-b" id="in-nav">-on the web- </h6>
<div class="social-links fs-5 mb-4 end text-dark">
<i class="bi bi-twitter"></i>
<i class="bi bi-facebook"></i>
<i class="bi bi-github"></i><br>
<i class="bi bi-linkedin"></i>
<i class="bi bi-instagram"></i>
<i class="bi bi-medium"></i>
</div>
<div class="mb-4">
<a class="resume" href="afolabi-resume.pdf" target="_blank" rel="noopener noreferrer">Resume 📙</a>
</div>
</div>
<div class="col-5 col-md-6 col-lg-6">
<div class="list">
<h6 class="fw-b" id="in-nav" style="margin-left:2rem;">-navigation-</h6>
<ul class="ul">
<li class="list-item"><a href="/" id="c" >Home</a></li>
<li class="list-item"><a href="#projects" id="c">Projects</a></li>
<li class="list-item"><a href="#stacks" id="c">Stacks</a></li>
<li class="list-item"><a href="#social-links" id="c">Contact</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>