lected class from all buttons
        pollButtons.forEach(btn => btn.classList.remove('selected'));
        // Add selected class to the clicked button
        button.classList.add('selected');
        selectedValue = button.getAttribute('data-value');
      });
    });


    document.getElementById('voteButton').addEventListener('click', function() {
      if (selectedValue) {
        document.getElementById('result').innerHTML = `You voted for: ${selectedValue}<br>Thank you!`;
        // Save voting statu