<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Roblox Scripts</title>
  <link rel="stylesheet" href="styles.css">
  <style>
    header {
      text-align: center; /* Center the text horizontally */
      margin-bottom: 20px; /* Adds space below the header */
    }

    .post {
      display: flex;
      flex-direction: column; /* Stack items vertically */
      align-items: center;
      text-align: center;
    }

    .post small {
      font-size: 14px;
      font-weight: normal;
      color: #bbb;
      font-style: italic;
    }

    .post img {
      width: 200px;
      height: auto;
      margin-bottom: 10px;
    }

    .posts {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      max-width: 960px;
      margin: 0 auto;
      /* Ensure that it always behaves like a 4-column grid, even when fewer posts are available */
      grid-template-rows: auto; /* Ensures the grid adapts based on the number of items */
    }

    .recent-posts {
      display: flex;
      justify-content: center;
      flex-direction: column;
      align-items: center;
      margin-bottom: 30px;
    }

    .button-container {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-top: 20px;
    }

    .button {
      padding: 15px 25px;
      font-size: 20px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .button:hover {
      background-color: #45a049;
    }

    .button:focus {
      outline: none;
    }

    .content-set {
      display: none;
      text-align: center;
      margin-top: 20px;
    }

    .active {
      display: block;
    }

    /* Ensure all sets have the same size, even with fewer posts */
    .content-set .posts {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

  </style>
</head>
<body>

  <header>
    <div>
      <h1>Roblox Scripts</h1>
    </div>
    <nav>
      <ul>
        <li><a href="#">Home</a></li>
        <li><a href="#">Scripts</a></li>
        <li><a href="#">Mobile Scripts</a></li>
        <li><a href="#">Executor</a></li>
      </ul>
    </nav>
  </header>

  <div class="hero">
    <h2>ALL SCRIPTS JUST COPY PASTE</h2>
    <p>- No Popup ✓ - No Direct Link ✓ - 100% Safe ✓</p>
  </div>

  <div class="search">
    <input type="text" placeholder="Search all scripts here">
    <button>Search</button>
  </div>

  <div class="button-container">
    <button class="button" id="button1">1</button>
    <button class="button" id="button2">2</button>
    <button class="button" id="button3">3</button>
  </div>

  <!-- Content Set 1 (All Posts) -->
  <div class="content-set" id="content1">
    <h3>All Posts (Content Set 1)</h3>
    <div class="recent-posts">
      <h2>Recently Posted</h2>
      <div class="posts">
        <div class="post">
          <img src="https://scriptpastebin.com/wp-content/uploads/2025/01/fhahgiehwig-1.png" alt="Blox Fruits Thumbnail">
          <p>KAITUN SIMPLE – Blox Fruits Script Mobile Update Xmas Auto Farm Level 0 – Max Fully, Auto Kaitun (Free No Key)</p>
          <small>29 December 2024</small>
        </div>
        <div class="post">
          <img src="https://scriptpastebin.com/wp-content/uploads/2025/01/adgwtaffewMOBILE-1.png" alt="WAZURE Thumbnail">
          <p>WAZURE – Blox Fruits Script Mobile Update Xmas Auto Farm, Instant Dual Flintlock Hit, Berries Farm (No Key)</p>
          <small>4 January 2025</small>
        </div>
        <div class="post">
          <img src="https://scriptpastebin.com/wp-content/uploads/2025/01/afabyfugwMOBILE-1.png" alt="BT Thumbnail">
          <p>BT – Blox Fruits Script Mobile Update Xmas Auto Farm, Collect Gift, Dojo Quest, Aura Prehistoric</p>
          <small>4 January 2025</small>
        </div>
        <div class="post">
          <img src="https://scriptpastebin.com/wp-content/uploads/2024/12/fghaygfywwMOBILE-1.png" alt="BANANA Thumbnail">
          <p>BANANA – Blox Fruits Script Mobile Update Xmas Auto Sea Event, Instant Kill Leviathan, 1 Hit (Cracked No Key)</p>
          <small>30 December 2024</small>
        </div>
        <div class="post">
          <img src="https://scriptpastebin.com/wp-content/uploads/2024/12/ghaygwaMOBILE-1.png" alt="ALCHEMY Thumbnail">
          <p>ALCHEMY – Blox Fruits Script Mobile Update Xmas Auto Farm, Collect Gift (Instant Hit Dual Flintlock)</p>
          <small>30 December 2024</small>
        </div>
        <div class="post">
          <img src="https://scriptpastebin.com/wp-content/uploads/2024/12/afggyuewMOBILE-1.png" alt="QUANTUM Thumbnail">
          <p>QUANTUM – Blox Fruits Script Mobile Update Xmas Auto Farm, Collect Gift, Auto Prehistoric & More (No Key)</p>
          <small>30 December 2024</small>
        </div>
        <div class="post">
          <img src="https://scriptpastebin.com/wp-content/uploads/2024/12/afghaugiweMOBILE-1.png" alt="REDZ Thumbnail">
          <p>REDZ – Blox Fruits Script Mobile Update Xmas Auto Farm, Collect Gift, Prehistoric, Dojo Quest (No Key)</p>
          <small>30 December 2024</small>
        </div>
        <div class="post">
          <img src="https://scriptpastebin.com/wp-content/uploads/2024/12/fghewgweMOBILE-1.png" alt="MIN Thumbnail">
          <p>MIN – Blox Fruits Script Mobile Update Xmas Auto Farm, Auto Prehistoric Island, Mastery Farm (No Key)</p>
          <small>30 December 2024</small>
        </div>
      </div>
    </div>
  </div>

  <!-- Content Set 2 -->
  <div class="content-set" id="content2">
    <h3>Content Set 2</h3>
    <div class="recent-posts">
      <h2>Recently Posted</h2>
      <div class="posts">
        <!-- Add up to 8 more posters -->
        <div class="post">
          <img src="https://scriptpastebin.com/wp-content/uploads/2024/12/gjewhgwMOBILLE-1.png" alt="ZEN Thumbnail">
          <p>ZEN – Blox Fruits Script Mobile Update Xmas Auto Farm Candy, Instant Gun Hit, Auto Collect Gift</p>
          <small>30 December 2024</small>
        </div>
        <!-- Additional posts can be added here -->
      </div>
    </div>
  </div>

  <!-- Content Set 3 -->
  <div class="content-set" id="content3">
    <h3>Content Set 3</h3>
    <div class="recent-posts">
      <h2>Recently Posted</h2>
      <div class="posts">
        <!-- Add more posters here if needed -->
      </div>
    </div>
  </div>

  <script>
    // JavaScript for showing and hiding content based on button click
    const button1 = document.getElementById('button1');
    const button2 = document.getElementById('button2');
    const button3 = document.getElementById('button3');

    const content1 = document.getElementById('content1');
    const content2 = document.getElementById('content2');
    const content3 = document.getElementById('content3');

    // Function to hide all content sets
    function hideAllContent() {
      content1.classList.remove('active');
      content2.classList.remove('active');
      content3.classList.remove('active');
    }

    // Button 1 click event
    button1.addEventListener('click', () => {
      hideAllContent();
      content1.classList.add('active');
    });

    // Button 2 click event
    button2.addEventListener('click', () => {
      hideAllContent();
      content2.classList.add('active');
    });

    // Button 3 click event
    button3.addEventListener('click', () => {
      hideAllContent();
      content3.classList.add('active');
    });

    // Make sure Content Set 1 is displayed by default
    window.onload = () => {
      content1.classList.add('active');
    }
  </script>

</body>
</html>
