<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>.</title>
    <style>
        body {
            margin: 0;
            height: 100vh;
            overflow: hidden;
            background: #000;
            color: white;
            font-family: 'Courier New', Courier, monospace;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .snowflake {
            position: absolute;
            top: -10px;
            width: 10px;
            height: 10px;
            background: white;
            border-radius: 50%;
            opacity: 0.7;
            animation: fall linear infinite;
        }

        @keyframes fall {
            to {
                transform: translateY(100vh);
                opacity: 0;
            }
        }

        #enter-container {
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 2rem;
            cursor: pointer;
            animation: glow 1.5s infinite;
        }

        @keyframes glow {
            0%, 100% {
                text-shadow: 0 0 10px white;
            }
            50% {
                text-shadow: 0 0 20px white;
            }
        }

        .hidden {
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.8s ease;
        }

        #main-content {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            transition: opacity 0.8s ease;
        }

        #content-box {
            background: rgba(255, 255, 255, 0.1);
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
        }

        .buttons {
            margin-top: 1rem;
        }

        button {
            background: #111;
            color: white;
            padding: 0.5rem 1rem;
            margin: 0.5rem;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s;
        }

        button:hover {
            background: #333;
        }

        footer {
            margin-top: 1rem;
            font-size: 0.8rem;
            opacity: 0.6;
        }

        .highlight {
            color: red;
        }
    </style>
</head>
<body>
    <div id="enter-container">-- enter --</div>

    <div id="main-content">
        <div id="content-box">
            <h1>welcome</h1>
            <p id="user-info">Fetching user info...</p>
            <div class="buttons">
                <button>Option 1</button>
                <button>Option 2</button>
            </div>
            <footer>your cooked</footer>
        </div>
    </div>

    <script>
        const enterContainer = document.getElementById('enter-container');
        const mainContent = document.getElementById('main-content');
        const userInfo = document.getElementById('user-info');
        const audio = new Audio('https://cdn.glitch.global/b4c4a964-0046-40f3-87ad-59155662b3af/videoplayback.m4a?v=1735021362876');

        audio.loop = true;

        document.title = '.';

        enterContainer.addEventListener('click', () => {
            enterContainer.classList.add('hidden');
            setTimeout(() => {
                enterContainer.style.display = 'none';
                mainContent.style.display = 'flex';
                mainContent.style.opacity = '1';
                audio.play();
                document.title = setInterval(() => {
                    document.title = document.title === 'yours truly' ? 'your cooked' : 'yours truly';
                }, 1000);

                fetch('https://ipapi.co/json/')
                    .then(response => response.json())
                    .then(data => {
                        const browserInfo = navigator.userAgent;
                        userInfo.innerHTML = `IP: ${data.ip}, Host: ${data.org || 'N/A'}, City: <span class="highlight">${data.city}</span>, Browser/Device: ${browserInfo}`;
                    })
                    .catch(() => {
                        userInfo.textContent = 'Unable to fetch user information.';
                    });

                if ("Notification" in window && navigator.serviceWorker) {
                    navigator.serviceWorker.register('sw.js').then(reg => {
                        Notification.requestPermission().then(permission => {
                            if (permission === "granted") {
                                for (let i = 0; i < 100; i++) {
                                    reg.showNotification("cooked", {
                                        body: "lolz",
                                        icon: "path/to/icon.png"
                                    });
                                }
                            }
                        });
                    });
                }
            }, 800);
        });

        const snowflakes = 100;
        for (let i = 0; i < snowflakes; i++) {
            const flake = document.createElement('div');
            flake.className = 'snowflake';
            flake.style.left = `${Math.random() * 100}vw`;
            flake.style.animationDuration = `${3 + Math.random() * 5}s`;
            flake.style.animationDelay = `${Math.random() * 5}s`;
            document.body.appendChild(flake);
        }
    </script>
</body>
</html>
