document.addEventListener('DOMContentLoaded', function() { // Copy IP functionality const copyBtn = document.querySelector('.copy-btn'); if (copyBtn) { copyBtn.addEventListener('click', function() { navigator.clipboard.writeText('play.firemc.fun'); // Change button text temporarily const originalText = copyBtn.innerHTML; copyBtn.innerHTML = ' Copied!'; feather.replace(); setTimeout(() => { copyBtn.innerHTML = originalText; feather.replace(); }, 2000); }); } // Smooth scrolling for anchor links document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function (e) { e.preventDefault(); document.querySelector(this.getAttribute('href')).scrollIntoView({ behavior: 'smooth' }); }); }); });