k-mode');
                        toggleSwitch.checked = true;
                      } else {
                        bodyElement.classList.add('light-mode');
                      }
                
                      toggleSwitch.addEventListener('change', function (event) {
                        if (event.target.checked) {
                          bodyElement.classList.remove('light-mode');
                          bodyElement.classList.add('dark-mode');
                          localStorage.setI