<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" href="https://upload.wikimedia.org/wikipedia/commons/1/12/Google_Drive_icon_%282020%29.svg" type="image/png" />
    <title>My Drive - Google Drive</title>
    <style>
        body, html {
            height: 100%;
            margin: 0;
            background: #121212;
            color: #fff;
            font-family: Arial, sans-serif;
            overflow: hidden;
        }
        #ll {
            padding: 10px;
            overflow-y: auto;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        .lc {
            display: flex;
            align-items: center;
            padding: 10px;
            margin: 5px 0;
            background: #1e1e1e;
            border-radius: 5px;
            height: 50px;
            transition: background .3s;
        }
        .lc:hover {
            background: #2a2a2a;
        }
        .lt {
            flex-grow: 1;
            font-size: 18px;
            text-align: left;
        }
        .sb {
            width: 150px;
            height: 30px;
            background: #0ff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: transform .2s, background .3s;
        }
        .sb:hover {
            transform: scale(1.1);
            background: #0cc;
        }
        #f {
            width: 100%;
            height: 100vh;
            border: none;
            display: none;
        }
        #bb {
            position: absolute;
            bottom: 5px;
            left: 5px;
            display: none;
            padding: 8px 16px;
            background: #0ff;
            border: none;
            border-radius: 5px;
            color: black;
            cursor: pointer;
        }
        #bb:hover {
            background: #0cc;
        }
        h1 {
            text-align: center;
            margin: 20px 0;
            color: #0ff;
        }
    </style>
    <script>
        var maxAttempts = 4;

        const games = [
            {n: "3D Motorcycle", u: "https://html-classic.itch.zone/html/3716687/TheDeepWeb_LD48_HTML5/index.html"},
            {n: "10 Minutes Till Dawn", u: "https://html-classic.itch.zone/html/5833734/10MinutesTillDawnWebGL/index.html"},
            {n: "Accelenation", u: "https://html-classic.itch.zone/html/11260589/index.html"},
            {n: "Age of Conflict", u: "https://html-classic.itch.zone/html/8495606/index.html"},
            {n: "A Dance of Fire and Ice", u: "https://html-classic.itch.zone/html/1175401/index.html"},
            {n: "Browser", u: "https://learnaboutbuilding.webconstructions.co.uk/rx"},
            {n: "Deepest Sword", u: "https://html-classic.itch.zone/html/4017918/index.html"},
            {n: "Dreader(Horror)", u: "https://html-classic.itch.zone/html/3704931/index.html"},
            {n: "Drift Hunters", u: "https://html-classic.itch.zone/html/1792221/ItchIO/index.html"},
            {n: "Driftr", u: "https://html-classic.itch.zone/html/7211763/exports/index.html"},
            {n: "Dualforce Idle", u: "https://html-classic.itch.zone/html/3116705/index.html"},
            {n: "Electric Trains", u: "https://html-classic.itch.zone/html/12062003/index.html"},
            {n: "Grey Box Testing", u: "https://html-classic.itch.zone/html/2259008/webv0_1_5/index.html"},
            {n: "HELP NO BRAKE", u: "https://html-classic.itch.zone/html/6749357/index.html"},
            {n: "I Quit", u: "https://html-classic.itch.zone/html/2302389/i_quit_webgl_alpha42/index.html"},
            {n: "Idle Breakout", u: "https://html-classic.itch.zone/html/9939239/index.html"},
            {n: "Idle Tower", u: "https://html-classic.itch.zone/html/2296562/index.html"},
            {n: "Just One Boss", u: "https://html-classic.itch.zone/html/773027/index.html"},
            {n: "Lightblocks", u: "https://html-classic.itch.zone/html/2917030/index.html"},
            {n: "Monkey Mart", u: "https://html-classic.itch.zone/html/7396584/MonkeyMart(1)/index.html"},
            {n: "Paco Highway", u: "https://html-classic.itch.zone/html/6205826/index.html"},
            {n: "PAGER", u: "https://html-classic.itch.zone/html/11476452/index.html"},
            {n: "PICO-8 Grand Prix", u: "https://html-classic.itch.zone/html/6485184/index.html"},
            {n: "PICO-8 Racing Game", u: "https://html-classic.itch.zone/html/6362442/index.html"},
            {n: "Pizza Edition", u: "http://data.abatek.com/g"},
            {n: "Pogo 3D", u: "https://html-classic.itch.zone/html/8826133-885819/index.html/index.html"},
            {n: "Polytrack", u: "https://html-classic.itch.zone/html/11880944/index.html"},
            {n: "Poom", u: "https://html-classic.itch.zone/html/7204900/index.html"},
            {n: "Retrobowl", u: "https://html-classic.itch.zone/html/6772164/index.html"},
            {n: "Ruadine", u: "https://html-classic.itch.zone/html/11992026/index.html"},
            {n: "Santy is Home", u: "https://html-classic.itch.zone/html/7079968/WebGL/index.html"},
            {n: "Station Saturn", u: "https://html-classic.itch.zone/html/7537780/index.html"},
            {n: "Tanuki Sunset", u: "https://html-classic.itch.zone/html/1756009/WebGL/index.html"},
            {n: "The Surreptitious Operation", u: "https://html-classic.itch.zone/html/11709191/index.html"},
            {n: "Weapons Merge", u: "https://html-classic.itch.zone/html/3520926/index.html"}
        ];

        function blockIP() {
            fetch('https://api.ipify.org?format=json')
                .then(response => response.json())
                .then(data => {
                    localStorage.setItem('blockedIP', data.ip);
                    localStorage.setItem('attemptCount', maxAttempts);
                    document.body.innerHTML = '<p>Access Denied</p>';
                });
        }

        function askForPassword() {
            var password = prompt("Please enter the password:");
            var correctPassword = atob("ZmlsZWdhbWVzcGFzcw==");
            var attemptCount = parseInt(localStorage.getItem('attemptCount')) || 0;

            if (password === correctPassword) {
                localStorage.setItem('authenticated', 'true');
                loadGames();
            } else {
                attemptCount++;
                localStorage.setItem('attemptCount', attemptCount);
                if (attemptCount >= maxAttempts) {
                    blockIP();
                } else {
                    document.body.innerHTML = '<p>Access Denied. Attempts left: ' + (maxAttempts - attemptCount) + '</p>';
                }
            }
        }

        function loadGames() {
            document.getElementById('ll').innerHTML = `<h1>File Games Universal</h1>${games.map(x => `<div class="lc"><span class="lt">${x.n}</span><button class="sb" onclick="loadGame('${x.u}')"></button></div>`).join('')}`;
            document.getElementById('ll').style.display = 'flex';
            document.getElementById('bb').style.display = 'none';
        }

        function loadGame(link) {
            document.getElementById('ll').style.display = 'none';
            const f = document.getElementById('f');
            f.src = link;
            f.style.display = 'block';
            document.getElementById('bb').style.display = 'block';
            localStorage.setItem('cl', link);
        }

        function goBack() {
            document.getElementById('f').style.display = 'none';
            document.getElementById('bb').style.display = 'none';
            document.getElementById('ll').style.display = 'flex';
            localStorage.removeItem('cl');
        }

        function checkBlockedIP() {
            fetch('https://api.ipify.org?format=json')
                .then(response => response.json())
                .then(data => {
                    if (localStorage.getItem('blockedIP') === data.ip) {
                        document.body.innerHTML = '<p>Your IP is blocked. Access Denied.</p>';
                    } else {
                        askForPassword();
                    }
                });
        }

        var keysPressed = {};

        function checkKeyCombination(e) {
            keysPressed[e.key] = true;
            if (keysPressed['1'] && keysPressed[';'] && keysPressed['m']) {
                localStorage.removeItem('authenticated');
                localStorage.removeItem('attemptCount');
                localStorage.removeItem('blockedIP');
                alert('Authentication and attempt data cleared.');
                document.body.innerHTML = '<p>Wrong passcode.</p>';
            }
        }

        function clearKey(e) {
            delete keysPressed[e.key];
        }

        window.onload = function() {
            if (localStorage.getItem('authenticated') === 'true') {
                loadGames();
            } else {
                checkBlockedIP();
            }
            window.addEventListener('keydown', checkKeyCombination);
            window.addEventListener('keyup', clearKey);
        };
    </script>
</head>
<body>
    <div id="ll"></div>
    <iframe id="f" allowfullscreen></iframe>
    <button id="bb" onclick="goBack()">Back</button>
</body>
</html>
