      canvas.width = window.innerWidth;
        canvas.height = window.innerHeight;

        // Constants
        const G = 0.1; // Gravitational constant for simulation
        const AU = 100; // Astronomical unit in pixels
        const planets = [
            { name: 'Mercury', color: ['#5a5856', '#bfbdbc', '#8c8a89', '#f4f6f8'], distance: 0.39 * AU, size: 3, speed: 0.24 },
            { name: 'Venus', color: ['#868a8d', '#d9b392', '#f3dbc3', '#414141'], distance: 0.72 * AU, size: 6, speed: 0.615 },
    