<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>No Internet</title>
    <style>
                /* CODED BY - DARK LMNx9 */
        body, html {
            margin: 0;
            padding: 0;
            height: 100%;
            background-color: black;
            color: #00FF00;
            font-family: 'Courier New', monospace;
            overflow: hidden;
        }

        h1, p {
            text-align: center;
            margin: 20px;
            position: relative;
            z-index: 2;
        }

        .button-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
            position: relative;
            z-index: 2;
        }
        .button {
            text-align: center;
            margin: 20px;
            position: relative;
            border: 1px solid #00FF00;
            color: #00FF00;
            background: transparent;
            font-size: 20px;
            cursor: pointer;
            text-transform: uppercase;
            font-family: 'Courier New', monospace;
        }
        .button:hover {
            background: #00FF00;
            color: black;
        }

        .footer {
            position: absolute;
            bottom: 20px;
            width: 100%;
            text-align: center;
            font-size: 14px;
            color: #00FF00;
            z-index: 2;
        }
        .footer a {
            color: #00FF00;
            text-decoration: none;
            font-weight: bold;
        }
        .footer a:hover {
            text-decoration: underline;
        }

        canvas {
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1;
        }
    </style>
</head>
<body>
    <canvas id="matrixCanvas"></canvas>
    <div class="main-content">
        <h1>No Internet Connection !</h1>
        <p>Please check your connection and try again.</p>
        <div class="button-container">
            <button class="button" onclick="location.href='file:///android_asset/LMNx2.html';">RETRY</button>
        </div>
        <div class="footer">
            <p><h4>Developed by - DARK LMNx9</h4></p>
        </div>
    </div>
    <script>
        function retryPage() {
            location.reload();
        }
        /* CODED BY - DARK LMNx9 */
        function exitPage() {
            window.close();
        }
        /* CODED BY - DARK LMNx9 */
        const canvas = document.getElementById("matrixCanvas");
        const ctx = canvas.getContext("2d");
        canvas.width = window.innerWidth;
        canvas.height = window.innerHeight;

        const letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789@#$%^&*()*&^%";
        const fontSize = 16;
        const columns = Math.floor(canvas.width / fontSize);
        const drops = Array(columns).fill(0);
        /* CODED BY - DARK LMNx9 */
        function drawMatrix() {
            ctx.fillStyle = "rgba(0, 0, 0, 0.05)";
            ctx.fillRect(0, 0, canvas.width, canvas.height);
            ctx.fillStyle = "#00FF00";
            ctx.font = fontSize + "px Courier New";
            for (let i = 0; i < drops.length; i++) {
                const text = letters[Math.floor(Math.random() * letters.length)];
                const x = i * fontSize;
                const y = drops[i] * fontSize;

                ctx.fillText(text, x, y);
                if (y > canvas.height && Math.random() > 0.975) {
                    drops[i] = 0;
                }

                drops[i]++;
            }
        }
        /* CODED BY - DARK LMNx9 */
        setInterval(drawMatrix, 50);
        /* CODED BY - DARK LMNx9 */
        window.addEventListener("resize", () => {
            canvas.width = window.innerWidth;
            canvas.height = window.innerHeight;
            drops.fill(0);
        });
    </script>
</body>
</html>
