<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Kryption Cheat UI</title>
  <style>

.snowflake {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: snowfall 10s linear infinite;
    z-index: 9999; /* Ensures snowflakes are above other elements */
  }

  @keyframes snowfall {
    0% { transform: translateY(0); } /* Starts from the top */
    100% { transform: translateY(100vh); } /* Falls all the way to the bottom */
  }

  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1b1b1b;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative; /* Allow snowflakes to be positioned relative to the body */
  }

  .top-bar {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 16px;
    font-weight: bold;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 10000; /* Keeps top-bar above the snowflakes */
  }

  .gui-container {
    width: 1200px;
    height: 500px;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-top: 40px;
    overflow-y: auto;
    z-index: 1; /* Ensure the snowflakes appear above the container */
  }

    .top-bar img {
      height: 30px;
      margin-right: 10px;
    }

    .tab-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 200px;
      height: 100%;
      background-color: #1a1a1a;
      border-right: 1px solid #333;
    }

    .tab {
      width: 100%;
      height: 50px;
      background-color: #1a1a1a;
      border-bottom: 1px solid #333;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      font-weight: bold;
      transition: background-color 0.3s ease;
    }

    .tab:hover {
      background-color: #3a3a3a;
    }

    .tab.active {
      background-color: #2e2e2e;
      color: #fff;
    }

    /* Content Section */
    .content-container {
      position: absolute;
      top: 0;
      left: 200px;
      width: calc(100% - 200px);
      height: 100%;
      padding: 20px;
      overflow: auto;
    }

    input[type="checkbox"], input[type="range"], input[type="number"], input[type="text"], select {
      background-color: #333;
      color: #fff;
      border: 1px solid #444;
      border-radius: 2px;
      padding: 8px 10px;
      margin: 10px 0;
      width: 100%;
      max-width: 250px; 
      box-sizing: border-box;
    }

    input[type="checkbox"] {
      width: auto;
      margin-right: 10px;
      vertical-align: middle;
    }

    input[type="checkbox"]:checked {
      background-color: #55bd00;
    }

    input[type="range"] {
      -webkit-appearance: none;
      appearance: none;
      height: 10px;
      background: #444;
      outline: none;
      border-radius: 5px;
      transition: background 0.3s ease;
      width: 100%;
    }

    input[type="range"]:focus {
      background: #0e9e4a;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 20px;
      height: 20px;
      background: #0e9e4a;
      border-radius: 50%;
      transition: background-color 0.3s ease;
    }

    input[type="range"]::-moz-range-thumb {
      width: 20px;
      height: 20px;
      background: #0e9e4a;
      border-radius: 50%;
      transition: background-color 0.3s ease;
    }

    button {
      background-color: #0e9e4a;
      color: #fff;
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease;
      text-align: center;
      display: block;
      margin: 10px auto;
    }

    button:hover {
      background-color: #0d872e;
    }

    label {
      font-weight: normal;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
    }

    .keybind {
      font-weight: bold;
      cursor: pointer;
      color: #0e9e4a;
    }

    .tab-content {
      display: none;
    }

    .tab-content.active {
      display: block;
    }

    .config-button-container {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .config-button-container > * {
      margin-top: 20px;
    }

    .gui-container {
      scrollbar-width: thin;
      scrollbar-color: #444 #222;
    }

    .gui-container::-webkit-scrollbar {
      width: 8px;
    }

    .gui-container::-webkit-scrollbar-track {
      background: #222;
    }

    .gui-container::-webkit-scrollbar-thumb {
      background-color: #444;
      border-radius: 5px;
    }

  </style>
</head>
<body>

  <div class="top-bar">
    <img src="standard (1).gif" alt="Logo"> 
    Kryption External Fortnite Public | .gg/HF3kQep2XB
  </div>

  <div class="gui-container">
    <div class="tab-container">
      <div class="tab active" id="aim-tab-button">Aim</div>
      <div class="tab" id="visuals-tab-button">Visuals</div>
      <div class="tab" id="rage-cheats-tab-button">Rage Cheats</div>
      <div class="tab" id="configs-tab-button">Configs</div>
    </div>

    <div class="content-container">
      <div class="tab-content aim-tab active">
        <h2>Aim Settings</h2>
        <label for="enable-aimbot">
          <input type="checkbox" id="enable-aimbot">
          Enable Aimbot
        </label>
        
        <label for="aimkey">Aimkey:
          <input type="text" id="aimkey" value="MOUSE1">
        </label>
        
        <label for="aim-part">Aim Part:
          <select id="aim-part">
            <option value="head">Head</option>
            <option value="torso">Torso</option>
            <option value="legs">Legs</option>
          </select>
        </label>

        <label for="aim-smoothness">Aimbot Smoothness: 
            <input type="range" id="aim-smoothness" min="1" max="10" step="1" value="1">
            <span id="aim-value">1</span> <!-- Default value is 1 -->
          </label>

        <label for="enable-prediction">
            <input type="checkbox" id="enable-prediction">
            Enable Prediction
          </label>
        <h2>FOV</h2>
        <label for="enable-fov-circle">
          <input type="checkbox" id="enable-fov-circle">
          Enable Fov Circle
        </label>

        <label for="fov-size">FOV Size - 
            <input type="range" id="fov-size" min="1" max="300" value="50">
            <span id="fov-value"> 50</span>
          </label>


        <h2>Triggerbot</h2>
        <label for="enable-triggerbot">
          <input type="checkbox" id="enable-triggerbot">
          Enable Triggerbot
        </label>

        <label for="trigger-key">Trigger Key:
          <input type="text" id="trigger-key" value="MOUSE1">
        </label>

        <label for="trigger-delay">Triggerbot Delay: 
            <input type="range" id="trigger-delay-number" min="0.1" max="1" step="0.1" value="0.1">
            <span id="trigger-value">0.1</span>
          </label>
      </div>



      <div class="tab-content visuals-tab">
        <h2>Player Esp</h2>
        <label for="show-box-esp">
          <input type="checkbox" id="show-box-esp">
          Show Box Esp
        </label>

        <label for="show-rounded-box">
          <input type="checkbox" id="show-rounded-box">
          Show Rounded Box
        </label>

        <label for="show-skeleton-esp">
          <input type="checkbox" id="show-skeleton-esp">
          Show Skeleton Esp
        </label>

        <label for="show-colored-visible-check">
          <input type="checkbox" id="show-colored-visible-check">
          Show Colored Visible Check
        </label>

        <label for="show-visual-check">
          <input type="checkbox" id="show-visual-check">
          Show Visual Check
        </label>

        <label for="show-distance">
          <input type="checkbox" id="show-distance">
          Show Distance
        </label>

        <label for="show-gun-esp">
          <input type="checkbox" id="show-gun-esp">
          Show Gun Esp
        </label>

        <label for="show-username">
          <input type="checkbox" id="show-username">
          Show Username
        </label>

        <label for="show-rank">
          <input type="checkbox" id="show-rank">
          Show Rank
        </label>

        <label for="show-player-arrows">
          <input type="checkbox" id="show-player-arrows">
          Show Player Arrows
        </label>
      </div>

      <div class="tab-content rage-cheats-tab">
        <h2>Rage Cheats Settings</h2>
        <p>Coming Soon...</p>
      </div>
      <div class="tab-content configs-tab">
        <h2>Configs</h2>
        <label for="config-name">Config Name:
          <input type="text" id="config-name" placeholder="Enter config name">
        </label>
  
        <div class="config-button-container">
          <button id="create-configs-button">Create Config</button>
          <button id="load-configs-button">Load Config</button>
          <input type="file" id="config-file" style="display:none" />
        </div>
      </div>
    </div>
  
    <script>
      document.getElementById("create-configs-button").addEventListener("click", createConfig);
      document.getElementById("load-configs-button").addEventListener("click", openConfigFile);
      document.getElementById("config-file").addEventListener("change", loadConfig);
  
      function createConfig() {
        const configName = document.getElementById('config-name').value;
        if (!configName) {
          alert('Please enter a config name.');
          return;
        }
  
        const configData = {
          aimbotEnabled: document.getElementById('enable-aimbot').checked,
          aimkey: document.getElementById('aimkey').value,
          aimPart: document.getElementById('aim-part').value,
          aimSmoothness: document.getElementById('aim-smoothness').value,
          predictionEnabled: document.getElementById('enable-prediction').checked,
          fovCircleEnabled: document.getElementById('enable-fov-circle').checked,
          fovSize: document.getElementById('fov-size').value,
          triggerbotEnabled: document.getElementById('enable-triggerbot').checked,
          triggerKey: document.getElementById('trigger-key').value,
          triggerDelay: document.getElementById('trigger-delay-number').value,
          boxEspEnabled: document.getElementById('show-box-esp').checked,
          roundedBoxEnabled: document.getElementById('show-rounded-box').checked,
          skeletonEspEnabled: document.getElementById('show-skeleton-esp').checked,
          visualCheckEnabled: document.getElementById('show-visual-check').checked,
          distanceEnabled: document.getElementById('show-distance').checked,
          gunEspEnabled: document.getElementById('show-gun-esp').checked,
          usernameEnabled: document.getElementById('show-username').checked,
          rankEnabled: document.getElementById('show-rank').checked,
          playerArrowsEnabled: document.getElementById('show-player-arrows').checked,
        };
  
        const configBlob = new Blob([JSON.stringify(configData, null, 2)], { type: 'application/json' });
        const configUrl = URL.createObjectURL(configBlob);
        const a = document.createElement('a');
        a.href = configUrl;
        a.download = `${configName}.kcfg`;
        a.click();
        URL.revokeObjectURL(configUrl);
      }
  
      function openConfigFile() {
        document.getElementById('config-file').click();
      }
  
      function loadConfig(event) {
        const file = event.target.files[0];
        if (!file) return;
  
        const reader = new FileReader();
        reader.onload = function(e) {
          const configData = JSON.parse(e.target.result);
  

          document.getElementById('enable-aimbot').checked = configData.aimbotEnabled;
          document.getElementById('aimkey').value = configData.aimkey;
          document.getElementById('aim-part').value = configData.aimPart;
          document.getElementById('aim-smoothness').value = configData.aimSmoothness;
          document.getElementById('enable-prediction').checked = configData.predictionEnabled;
          document.getElementById('enable-fov-circle').checked = configData.fovCircleEnabled;
          document.getElementById('fov-size').value = configData.fovSize;
          document.getElementById('enable-triggerbot').checked = configData.triggerbotEnabled;
          document.getElementById('trigger-key').value = configData.triggerKey;
          document.getElementById('trigger-delay-number').value = configData.triggerDelay;
          document.getElementById('show-box-esp').checked = configData.boxEspEnabled;
          document.getElementById('show-rounded-box').checked = configData.roundedBoxEnabled;
          document.getElementById('show-skeleton-esp').checked = configData.skeletonEspEnabled;
          document.getElementById('show-visual-check').checked = configData.visualCheckEnabled;
          document.getElementById('show-distance').checked = configData.distanceEnabled;
          document.getElementById('show-gun-esp').checked = configData.gunEspEnabled;
          document.getElementById('show-username').checked = configData.usernameEnabled;
          document.getElementById('show-rank').checked = configData.rankEnabled;
          document.getElementById('show-player-arrows').checked = configData.playerArrowsEnabled;
        };
        reader.readAsText(file);
      }
    </script>

  <script>

    document.getElementById("aim-tab-button").addEventListener("click", function() {
      changeTab('aim');
    });

    document.getElementById("visuals-tab-button").addEventListener("click", function() {
      changeTab('visuals');
    });

    document.getElementById("rage-cheats-tab-button").addEventListener("click", function() {
      changeTab('rage-cheats');
    });

    document.getElementById("configs-tab-button").addEventListener("click", function() {
      changeTab('configs');
    });

    function changeTab(tab) {
      document.querySelectorAll('.tab').forEach(tabElement => tabElement.classList.remove('active'));
      document.querySelectorAll('.tab-content').forEach(tabContent => tabContent.classList.remove('active'));
      
      document.getElementById(`${tab}-tab-button`).classList.add('active');
      document.querySelector(`.${tab}-tab`).classList.add('active');
    }

    document.querySelectorAll('input[type="range"]').forEach(slider => {
      slider.addEventListener('input', function() {
        let value = (this.value - this.min) / (this.max - this.min) * 100;
        this.style.background = `linear-gradient(to right, #0e9e4a ${value}%, #444 ${value}%)`;
      });
    });


  const fovSize = document.getElementById('fov-size');
  const fovValue = document.getElementById('fov-value');


  fovSize.addEventListener('input', function() {
    fovValue.textContent = fovSize.value;

  });

  const aimSmoothness = document.getElementById('aim-smoothness');
  const aimValue = document.getElementById('aim-value');

 
  aimSmoothness.addEventListener('input', function() {
    aimValue.textContent = aimSmoothness.value;

  });

  const triggerDelay = document.getElementById('trigger-delay-number');
  const triggerValue = document.getElementById('trigger-value');


  triggerDelay.addEventListener('input', function() {

    triggerValue.textContent = parseFloat(triggerDelay.value).toFixed(1);
  });


  for (var i = 0; i < 100; i++) {
    var snowflake = document.createElement("div");
    snowflake.className = "snowflake";
    snowflake.style.left = Math.random() * window.innerWidth + "px";
    snowflake.style.top = Math.random() * 40 + "px";
    snowflake.style.animationDuration = (Math.random() * 10 + 5) + "s"; 
    snowflake.style.animationDelay = (Math.random() * 5) + "s"; 
    document.body.appendChild(snowflake);
  }
  </script>

</body>
</html>
