<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Trex | Best Free Hitbox Expander Script</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: Arial, sans-serif;
      background-color: #000000; /* Changed to black */
      color: white;
      display: flex;
      height: 100vh;
      overflow: hidden;
    }

    /* Sidebar */
    .sidebar {
      width: 250px;
      background-color: #000000; /* Changed to black */
      padding: 30px 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      box-shadow: 3px 0px 15px rgba(0, 0, 0, 0.7);
    }

    .sidebar h1 {
      font-size: 28px;
      color: rgb(250, 127, 139);
      margin-bottom: 40px;
    }

    .nav-links {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .nav-link {
      font-size: 18px;
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      padding: 10px;
      border-radius: 5px;
      transition: background-color 0.3s;
    }

    .nav-link:hover {
      background-color: rgb(250, 127, 139);
      color: black;
    }

    /* Main content area */
    .main-content {
      flex: 1;
      background-color: #000000; /* Changed to black */
      padding: 40px;
      overflow-y: auto;
      display: none; /* Hide all content initially */
    }

    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 40px;
    }

    .header h2 {
      font-size: 36px;
      color: rgb(250, 127, 139);
    }

    .header .btn {
      padding: 12px 24px;
      background-color: rgb(250, 127, 139);
      border: none;
      color: black;
      font-size: 18px;
      font-weight: bold;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .header .btn:hover {
      background-color: #d45d6b;
    }

    /* Version Box */
    .version-box {
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: transparent;
      border: 0.1px solid rgba(255, 0, 0, 0.8); /* Red-ish color with transparency */
      border-radius: 12px;
      padding: 8px 16px;
      font-size: 18px;
      color: rgb(250, 127, 139);
      position: relative;
      top: -10px;
      right: 10px;
    }

    .version-box .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background-color: rgb(250, 127, 139);
      margin-left: 8px;
      animation: glowing 1.5s infinite alternate;
    }

    @keyframes glowing {
      0% {
        box-shadow: 0 0 5px rgb(250, 127, 139), 0 0 10px rgb(250, 127, 139), 0 0 15px rgb(250, 127, 139);
      }
      100% {
        box-shadow: 0 0 20px rgb(250, 127, 139), 0 0 30px rgb(250, 127, 139), 0 0 40px rgb(250, 127, 139);
      }
    }

    /* Dashboard Sections */
    .dashboard-section {
      background-color: #000000; /* Changed to black */
      padding: 20px;
      border-radius: 10px;
      margin-bottom: 30px;
    }

    .dashboard-section h3 {
      font-size: 24px;
      margin-bottom: 20px;
      color: rgb(250, 127, 139);
    }

    .box {
      background-color: #000000; /* Changed to black */
      color: white;
      padding: 20px;
      height: 400px;
      overflow-y: auto;
      font-family: monospace;
      white-space: pre-wrap;
      border-radius: 10px;
      border: 1px solid rgb(250, 127, 139);
    }

    /* Footer */
    .footer {
      text-align: center;
      font-size: 14px;
      color: rgba(255, 255, 255, 0.6);
      margin-top: 40px;
    }

    .footer a {
      color: rgb(250, 127, 139);
      text-decoration: none;
    }

    .footer a:hover {
      text-decoration: underline;
    }

    /* Features Page */
    .features-content {
      display: none; /* Hide initially */
    }

    .features-content.active {
      display: block; /* Show when active */
    }

    .features-list {
      font-size: 18px;
      line-height: 1.8;
      color: white;
      text-align: center; /* Center the text horizontally */
      margin: 0 auto; /* Center the content horizontally */
      padding: 10px; /* Add padding to prevent the text from touching the edges */
      display: flex; /* Use flexbox to align items */
      justify-content: center; /* Horizontally center content */
      align-items: center; /* Vertically center content */
      flex-direction: column; /* Stack the content vertically */
      width: 100%; /* Make it take the full width of its parent */
    }

  </style>
</head>
<body>

<!-- Sidebar -->
<div class="sidebar">
  <h1>Trex Dashboard</h1>
  <div class="nav-links">
    <a href="#" class="nav-link" id="homeLink">Home</a>
    <a href="#" class="nav-link" id="featuresLink">Features</a>
  </div>
  <div>
    <p>&copy; 2025 Trex Script | dahood hitbox expander, and more.</p>
  </div>
</div>

<!-- Main Content -->
<div class="main-content" id="homeContent">
  <!-- Header -->
  <div class="header">
    <h2>Trex | Best Free Hitbox Expander Script</h2>
    <button class="btn" onclick="copyScript()">Copy Script</button>
  </div>

  <!-- Version Box -->
  <div class="version-box">
    <span>V1.0</span>
    <div class="dot"></div>
  </div>

  <!-- Dashboard Section 1 -->
  <div class="dashboard-section">
    <h3>About the Script</h3>
    <p>Best Free Dahood Script, Including Hitbox Expander. And Alot More.</p>
  </div>

  <!-- Dashboard Section 2: Script Viewer -->
  <div class="dashboard-section">
    <h3>Script Code</h3>
    <div class="box" id="scriptBox">
      <!-- Script content will be loaded here -->
    </div>
  </div>

  <!-- Footer -->
  <div class="footer">
    <p>Powered by <a href="https://github.com/Etheticc" target="_blank">Etheticc</a></p>
  </div>
</div>

<!-- Features Content -->
<div class="features-content" id="featuresContent">
    <div class="dashboard-section">
      <h3>List Is Coming Soon</h3>
      <div class="features-list">

      </div>
    </div>
  
  
<script>
  // Function to load the script content from the URL
  fetch('https://raw.githubusercontent.com/Etheticc/trex/refs/heads/main/trex%20v1.0%20xeno%20support.lua')
    .then(response => response.text())
    .then(data => {
      document.getElementById('scriptBox').textContent = data;
    })
    .catch(error => console.error('Error loading script from URL:', error));

  // Function to copy the script content to clipboard
  function copyScript() {
    const scriptBox = document.getElementById('scriptBox');
    const range = document.createRange();
    range.selectNode(scriptBox);
    window.getSelection().removeAllRanges();
    window.getSelection().addRange(range);
    document.execCommand('copy');
    window.getSelection().removeAllRanges();
    alert('Script copied to clipboard!');
  }

  // Toggle between Home and Features views
  const homeLink = document.getElementById('homeLink');
  const featuresLink = document.getElementById('featuresLink');
  const homeContent = document.getElementById('homeContent');
  const featuresContent = document.getElementById('featuresContent');

  homeLink.addEventListener('click', () => {
    homeContent.style.display = 'block';
    featuresContent.style.display = 'none';
  });

  featuresLink.addEventListener('click', () => {
    homeContent.style.display = 'none';
    featuresContent.style.display = 'block';
  });

  // Show the home content by default
  homeContent.style.display = 'block';
</script>

</body>
</html>
