text: document.getElementById('mode').addEventListener('click', () => {
  
    document.body.classList.toggle('dark');
    document.body.classList.toggle('light');
    localStorage.setItem('theme', document.body.classList.contains('dark') ? 'dark' : 'light');
  });
  
  if (localStorage.getItem('theme') === 'dark') {
  
    document.body.classList.add('dark');
    document.body.classList.remove('light');
  
  } else if (localStorage.getItem('theme') === 'light') {
    document.body.classList.add('light');
    document.body.classList.remove('dark');
  
  }
  