<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Mod Menu Free Fire</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #111;
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      margin: 0;
      overflow: hidden;
    }

    #particles-js {
      position: fixed;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      z-index: -1;
    }

    .panel {
      background-color: #000;
      padding: 20px;
      border-radius: 10px;
      width: 450px;
      box-shadow: 0 4px 20px rgba(255, 0, 0, 0.5);
    }

    .panel h2 {
      color: red;
      text-align: center;
      margin-bottom: 20px;
    }

    .menu {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .menu-item {
      display: flex;
      align-items: center;
    }

    .menu-item input[type="checkbox"] {
      display: none;
    }

    .menu-item label {
      position: relative;
      display: flex;
      align-items: center;
      cursor: pointer;
      font-size: 14px;
      padding-left: 30px;
    }

    .menu-item label::before {
      content: '';
      position: absolute;
      left: 0;
      width: 20px;
      height: 20px;
      background-color: #444;
      border: 2px solid #888;
      border-radius: 50%;
      transition: background-color 0.3s, border-color 0.3s;
    }

    .menu-item input[type="checkbox"]:checked + label::before {
      background-color: red;
      border-color: red;
      content: '✔';
      color: white;
      font-size: 16px;
      text-align: center;
      line-height: 18px;
    }

    .buttons {
      display: flex;
      justify-content: space-between;
      margin-top: 20px;
    }

    .buttons button {
      background-color: red;
      color: #fff;
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .buttons button:hover {
      background-color: #cc0000;
    }
  </style>
</head>
<body>
  <div id="particles-js"></div>

  <div class="panel">
    <h2>Cracked (devkd) </h2>
   <div class="menu">
  <div class="menu-item"><input type="checkbox" id="function1"><label for="function1">Aimlock</label></div>
  <div class="menu-item"><input type="checkbox" id="function2"><label for="function2">Nhe Tam</label></div>
  <div class="menu-item"><input type="checkbox" id="function3"><label for="function3">Bosster system</label></div>
  <div class="menu-item"><input type="checkbox" id="function4"><label for="function4">Senssi</label></div>
  <div class="menu-item"><input type="checkbox" id="function5"><label for="function5">Post Fps</label></div>
  <div class="menu-item"><input type="checkbox" id="function6"><label for="function6">Aimbot 45%</label></div>
  <div class="menu-item"><input type="checkbox" id="function7"><label for="function7">Antiband</label></div>
  <div class="menu-item"><input type="checkbox" id="function8"><label for="function8">Nhe Tam V2</label></div>
  <div class="menu-item"><input type="checkbox" id="function9"><label for="function9">Nhay May</label></div>
  <div class="menu-item"><input type="checkbox" id="function10"><label for="function10">Fix Rung</label></div>
  <div class="menu-item"><input type="checkbox" id="function11"><label for="function11">Giam Lo</label></div>
  <div class="menu-item"><input type="checkbox" id="function12"><label for="function12">ProHead</label></div>
  <div class="menu-item"><input type="checkbox" id="function13"><label for="function13">Nhay Tam</label></div>
  <div class="menu-item"><input type="checkbox" id="function14"><label for="function14">Giam Lag</label></div>
  <div class="menu-item"><input type="checkbox" id="function15"><label for="function15">Aimlock V2</label></div>

  <!-- Thêm 10 chức năng mới -->
  <div class="menu-item"><input type="checkbox" id="function16"><label for="function16">Auto Headshot 02</label></div>
  <div class="menu-item"><input type="checkbox" id="function17"><label for="function17">Fix Lố</label></div>
  <div class="menu-item"><input type="checkbox" id="function18"><label for="function18">Buff Nhay</label></div>
  <div class="menu-item"><input type="checkbox" id="function19"><label for="function19">Screen Mod</label></div>
  <div class="menu-item"><input type="checkbox" id="function20"><label for="function20">Sensi ProMax</label></div>
  <div class="menu-item"><input type="checkbox" id="function21"><label for="function21">No Recoil 55%</label></div>
  <div class="menu-item"><input type="checkbox" id="function22"><label for="function22">Head Lock</label></div>
  <div class="menu-item"><input type="checkbox" id="function23"><label for="function23">Super On</label></div>
  <div class="menu-item"><input type="checkbox" id="function24"><label for="function24">Mod Stick</label></div>
  <div class="menu-item"><input type="checkbox" id="function25"><label for="function25">Skill Aim</label></div>
</div>

    <div class="buttons">
      <button onclick="activateAll()">ATIVAR</button>
      <button onclick="deactivateAll()">DESATIVAR</button>
    </div>
  </div>

  <!-- Thêm thư viện particles.js -->
  <script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
  <script>
    // Hàm phát âm thanh tuut
    function playTuut() {
      const audioContext = new (window.AudioContext || window.webkitAudioContext)();
      const oscillator = audioContext.createOscillator();
      oscillator.type = 'square'; // Loại sóng vuông (mang lại âm thanh "tuut")
      oscillator.frequency.setValueAtTime(1000, audioContext.currentTime); // Tần số âm thanh (1 kHz)
      oscillator.connect(audioContext.destination);
      oscillator.start();
      oscillator.stop(audioContext.currentTime + 0.2); // Dừng sau 0.2 giây để có một âm thanh ngắn
    }

    // Hàm kích hoạt tất cả checkbox
    function activateAll() {
      document.querySelectorAll('.menu-item input[type="checkbox"]').forEach(checkbox => {
        checkbox.checked = true;
        playTuut(); // Phát âm thanh khi chọn checkbox
      });
    }

    // Hàm tắt tất cả checkbox
    function deactivateAll() {
      document.querySelectorAll('.menu-item input[type="checkbox"]').forEach(checkbox => {
        checkbox.checked = false;
      });
    }

    // Thêm sự kiện cho từng checkbox để phát âm thanh khi chọn
    document.querySelectorAll('.menu-item input[type="checkbox"]').forEach(checkbox => {
      checkbox.addEventListener('change', playTuut); // Gọi playTuut khi checkbox thay đổi
    });

    // Cấu hình particles.js
    particlesJS("particles-js", {
      particles: {
        number: { value: 80, density: { enable: true, value_area: 800 } },
        color: { value: "#ff0000" },
        shape: {
          type: "circle",
          stroke: { width: 0, color: "#000000" },
          polygon: { nb_sides: 5 }
        },
        opacity: {
          value: 0.5,
          random: false,
          anim: { enable: false, speed: 1, opacity_min: 0.1, sync: false }
        },
        size: {
          value: 5,
          random: true,
          anim: { enable: false, speed: 40, size_min: 0.1, sync: false }
        },
        line_linked: {
          enable: true,
          distance: 150,
          color: "#ff0000",
          opacity: 0.4,
          width: 1
        },
        move: {
          enable: true,
          speed: 6,
          direction: "none",
          random: false,
          straight: false,
          out_mode: "out",
          attract: { enable: false, rotateX: 600, rotateY: 1200 }
        }
      },
      interactivity: {
        detect_on: "canvas",
        events: {
          onhover: { enable: true, mode: "repulse" },
          onclick: { enable: true, mode: "push" },
          resize: true
        },
        modes: {
          grab: { distance: 400, line_linked: { opacity: 1 } },
          bubble: { distance: 400, size: 40, duration: 2, opacity: 8 },
          repulse: { distance: 200 },
          push: { particles_nb: 4 },
          remove: { particles_nb: 2 }
        }
      },
      retina_detect: true
    });
  </script>
</body>
</html>