<!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;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        .success-box {
            background-color: #008000;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            text-align: center;
            margin: 0 auto 40px auto;
            font-size: 1.1em;
            font-weight: bold;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            max-width: 500px;
            width: 500px;
        }
        .success-box img {
            width: 20px;
            height: 20px;
        }
        .code-box {
            background-image: url('https://media.discordapp.net/attachments/1271654057898934273/1325337967551840348/25k.png?ex=677b6cab&is=677a1b2b&hm=c49c634f7c477893224548ec72952bd7913bc3aceb476dcb37be151c8f512cbc&=&format=webp&quality=lossless&width=1194&height=750');
            background-size: cover;
            background-position: center;
            padding: 30px 40px;
            border-radius: 12px;
            box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.5);
            text-align: center;
            max-width: 500px;
            width: 500px;
            height: 300px;
            margin: 0 auto;
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
        }
        .code-box h1 {
            font-size: 2em;
            margin-bottom: 15px;
        }
        .code-box p {
            font-size: 1.2em;
            margin-bottom: 10px;
        }
        .code-display {
            font-size: 1.6em;
            font-weight: bold;
            color: #6a00ff;
            background-color: rgba(28, 28, 28, 0.9);
            padding: 12px 20px;
            border-radius: 6px;
            letter-spacing: 2px;
            display: inline-block;
            border: 1px solid #6a00ff;
            margin-left: 10px;
            width: 260px;
            text-align: center;
            overflow: hidden;
        }
        .copy-section {
            margin-top: 20px;
            text-align: center;
        }
        .copy-section p2 {
            font-size: 1.6em; /* Increased font size for "Code:" */
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
	    padding-top: 20px; 
        }
        .copy-button {
            background-color: #6a00ff;
            color: white;
            border: none;
            padding: 12px 25px;
            font-size: 1em;
            margin-top: 15px;
            cursor: pointer;
            border-radius: 5px;
            box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.3);
            transition: background-color 0.3s, transform 0.2s;
        }
        .copy-button:hover {
            background-color: #5800d4;
            transform: translateY(-2px);
        }
    </style>
</head>
<body>
    <div>
        <div class="success-box">
            <img src="https://img.icons8.com/emoji/48/000000/wrapped-gift.png" alt="Present Icon">
            Successfully completed offers!<br>
        </div>
        <div class="code-box">
            <h1><br><br><br><br><br>Redeem Robux Code</h1>
        </div>
        <div class="copy-section">
            <p2><b>Robux Code: </b></p2><p><span class="code-display" id="generatedCode"></span></p>
            <button class="copy-button" onclick="copyCode()">Copy Code</button>
        </div>
    </div>

    <script>
        // Function to generate a random 10-character uppercase code
        function generateCode() {
            const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
            let code = '';
            for (let i = 0; i < 10; i++) {
                code += characters.charAt(Math.floor(Math.random() * characters.length));
            }
            return code;
        }

        // Function to copy the code to clipboard
        function copyCode() {
            const code = document.getElementById("generatedCode").innerText;
            navigator.clipboard.writeText(code).then(() => {
                
            });
        }

        // Display the generated code in the span
        document.getElementById("generatedCode").innerText = generateCode();
    </script>
</body>
</html>