<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Loading Animation</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            height: 100vh;
            overflow: hidden;
            background-color: black;
            font-family: 'Courier New', monospace;
            color: #32CD32;
        }
 /* CODED BY - DARK LMNx9 */
        .matrix {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }

        canvas {
            display: block;
        }

        .header {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 50px;
            z-index: 1;
        }

        .circle-image {
            width: 100px;
            height: 100px;
            border-radius: 12%;
            overflow: hidden;
            margin-bottom: 15px;
            border: 2px solid #32CD32;
        }

        .circle-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
 /* CODED BY - DARK LMNx9 */
        .text-box {
            border: 1.5px solid #32CD32; 
            padding: 10px 30px;
            border-radius: 6px;
            text-align: center;
            font-size: 1.2rem;
            font-weight: bold;
            width: 100%;
            box-sizing: border-box;
        }

        .spinner-container {
            display: flex;
            flex-direction: column; /* Stack spinner and text vertically */
            justify-content: center;
            align-items: center;
            height: 30%; 
            z-index: 1;
        }

        .spinner {
            width: 35px;
            height: 35px;
            border: 4px solid #32CD32;
            border-top: 4px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .loading-text {
            margin-top: 15px; /* Space between spinner and text */
            color: #32CD32;
            font-size: 1.2rem;
            font-weight: bold;
            text-align: center;
        }
 /* CODED BY - DARK LMNx9 */
        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
    </style>
</head>
<body>

    <div class="matrix">
        <canvas id="matrixCanvas"></canvas>
    </div>
    <div class="header">
        <div class="circle-image">
            <img src="https://raw.githubusercontent.com/LMNx9-CYBER-999/About-LMNx9/refs/heads/main/images (3).png" alt="LMNx9 Logo">
        </div>
        <div class="text-box">
            Crypto Converter v1.0<br>
            Developed By - LMNx9
        </div>
    </div>
    <div class="spinner-container">
        <div class="spinner"></div>
        <div class="loading-text">
            Please Wait... Loading...
        </div>
    </div>
    <script>
        setTimeout(() => {
            location.href='file:///android_asset/LMNx2.html';
        }, 9000);
        const canvas = document.getElementById('matrixCanvas');
        const ctx = canvas.getContext('2d');
        canvas.width = window.innerWidth;
        canvas.height = window.innerHeight;
        const matrixChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789@#$%^&*()*&^%";
        const fontSize = 16;
        const columns = canvas.width / fontSize;
        const drops = Array(Math.floor(columns)).fill(1);
        function drawMatrix() {
            ctx.fillStyle = "rgba(0, 0, 0, 0.05)";
            ctx.fillRect(0, 0, canvas.width, canvas.height);
            ctx.fillStyle = "#32CD32";
            ctx.font = fontSize + "px Courier New";
            drops.forEach((y, index) => {
                const text = matrixChars[Math.floor(Math.random() * matrixChars.length)];
                const x = index * fontSize;
                ctx.fillText(text, x, y * fontSize);
                if (y * fontSize > canvas.height && Math.random() > 0.975) {
                    drops[index] = 0;
                }
                drops[index]++;
            });
        }
         /* CODED BY - DARK LMNx9 */
        setInterval(drawMatrix, 50);
        window.addEventListener('resize', () => {
            canvas.width = window.innerWidth;
            canvas.height = window.innerHeight;
        });
    </script>
</body>
</html>
