<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>FLYRY´s Biolink</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background: #000;
            color: #fff;
            font-family: Arial, sans-serif;
            overflow: hidden;
            cursor: pointer;
            position: relative;
        }

        .background-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: blur(4px) grayscale(50%);
            z-index: -1;
            display: none;
        }

        .container {
            text-align: center;
        }

        .hidden-text {
            position: absolute;
            top: 10px;
            width: 100%;
            text-align: center;
            color: rgba(255, 255, 255, 0.3);
            font-size: 1.5rem;
            pointer-events: none;
            display: none;
        }

        .enter-text {
            font-size: 3rem;
            animation: fadeIn 2s ease-in-out;
        }

        .gif-container {
            margin-top: 20px;
            display: none;
        }

        img {
            max-width: 100%;
            height: auto;
            animation: fadeIn 2s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        audio {
            display: none;
        }

        /* Sidebar Styles */
        .sidebar {
            position: absolute;
            top: 0;
            left: -250px;
            width: 250px;
            height: 100%;
            background-color: #333;
            overflow-x: hidden;
            transition: left 0.3s ease-in-out;
            z-index: 11;
        }

        .sidebar a {
            padding: 8px 8px 8px 32px;
            text-decoration: none;
            font-size: 18px;
            color: white;
            display: block;
            transition: 0.3s;
            padding-left: 40px;
        }

        .sidebar a:hover {
            color: #f1f1f1;
            background-color: #555;
        }

        .logo-container {
            position: absolute;
            top: 20px;
            left: 20px;
            z-index: 12;
            cursor: pointer;
            transition: transform 0.3s ease-in-out;
        }

        .logo-container img {
            width: 45px;
            height: auto;
            transition: transform 0.3s ease-in-out;
        }

        .logo-container:hover img {
            transform: scale(1.2);
        }

        .sidebar-button {
            background-color: #444;
            color: white;
            border: none;
            padding: 10px;
            font-size: 18px;
            margin: 10px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .sidebar-button:hover {
            background-color: #555;
        }

        /* Webhook Bomber Button in the center */
        .sidebar a#webhook-bomber {
            font-size: 20px;
            font-weight: bold;
            padding: 15px;
            background-color: #444;
            border-radius: 5px;
            margin-top: 50%;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s ease;
            transform: translateY(-50%);
        }

        .sidebar a#webhook-bomber:hover {
            background-color: #5f5f5f;
            transform: scale(1.1);
        }

        /* Centered input bar */
        .input-bar {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 20px;
            border-radius: 8px;
            display: none;
            width: 80%;
            max-width: 600px;
            text-align: center;
            z-index: 15;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        }

        .input-bar input {
            width: 80%;
            padding: 10px;
            margin: 10px 0;
            border: none;
            border-radius: 4px;
            font-size: 16px;
        }

        .input-bar button {
            padding: 10px 20px;
            border: none;
            background-color: #4CAF50;
            color: white;
            font-size: 16px;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

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

        .input-bar .close-btn {
            position: absolute;
            top: 5px;
            right: 10px;
            font-size: 24px;
            cursor: pointer;
        }
    </style>
</head>
<body onclick="startExperience()">
    <video class="background-video" id="background-video" muted loop>
        <source src="https://files.catbox.moe/ncyzu4.mp4" type="video/mp4">
    </video>
    <div class="hidden-text" id="hidden-text">made with ❤️ by flyry</div>
    <div class="container">
        <div class="enter-text" id="enter-text">Enter !!!</div>
        <div class="gif-container" id="gif-container">
            <img src="https://images.guns.lol/Zyx8BJrFIq.gif" alt="enter gif">
        </div>
    </div>
    <audio id="bg-music" loop>
        <source src="https://files.catbox.moe/eey1sn.mp3" type="audio/mpeg">
    </audio>

    <!-- Sidebar and Logo -->
    <div class="logo-container" onclick="toggleSidebar()">
        <img src="https://files.catbox.moe/pf7ph5.jpg" alt="Logo" />
    </div>

    <div class="sidebar">
        <a href="javascript:void(0)" id="webhook-bomber" onclick="openTextBar()">webhook messager</a>
    </div>

    <!-- Webhook Text Bar -->
    <div class="input-bar" id="input-bar">
        <div class="close-btn" onclick="closeTextBar()">×</div>
        <input type="text" id="webhook-input" placeholder="Enter Discord Webhook URL">
        <input type="text" id="message-input" placeholder="Enter your message">
        <button onclick="sendWebhook()">Send Webhook</button>
    </div>

    <script>
        // Toggle sidebar visibility on logo click
        function toggleSidebar() {
            const sidebar = document.querySelector('.sidebar');
            const currentLeft = sidebar.style.left;
            sidebar.style.left = (currentLeft === '0px') ? '-250px' : '0px';
        }

        // Open the text bar for Webhook Bomber
        function openTextBar() {
            document.getElementById('input-bar').style.display = 'block';
        }

        // Close the text bar
        function closeTextBar() {
            document.getElementById('input-bar').style.display = 'none';
        }

        // Start experience (hide intro text and start video/audio)
        function startExperience() {
            document.getElementById('enter-text').style.display = 'none';
            document.getElementById('gif-container').style.display = 'block';
            document.getElementById('hidden-text').style.display = 'block';
            document.getElementById('bg-music').play();
            document.getElementById('background-video').style.display = 'block';
            document.getElementById('background-video').play();
            document.body.onclick = null;
        }

        // Send webhook and close the input bar
        function sendWebhook() {
            const webhookURL = document.getElementById('webhook-input').value;
            const message = document.getElementById('message-input').value;

            if (webhookURL && message) {
                fetch(webhookURL, {
                    method: 'POST',
                    headers: { 'Content-Type': 'application/json' },
                    body: JSON.stringify({
                        content: message,
                    }),
                })
                .then(response => {
                    if (response.ok) {
                        alert('Webhook sent!');
                        document.getElementById('webhook-input').value = ''; // Clear input field
                        document.getElementById('message-input').value = ''; // Clear message field
                        closeTextBar(); // Close text bar
                    } else {
                        alert('Failed to send webhook');
                    }
                })
                .catch(error => {
                    alert('Error: ' + error);
                });
            } else {
                alert('Please enter a valid webhook URL and message');
            }
        }
    </script>
</body>
</html>
