<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Private Server</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
    <style>
        body {
            font-family: 'Poppins', sans-serif;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background: url('https://ideogram.ai/assets/progressive-image/balanced/response/2JVkSMrPTgmi5a8ISHDwTw') no-repeat center center fixed;
            background-size: cover;
            color: white;
        }
        .card {
            width: 300px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            text-align: center;
            padding: 20px;
        }
        .card-header {
            color: white;
            border-radius: 10px 10px 0 0;
            padding: 10px 0;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .card-header .icon img {
            width: 80px;
            height: 80px;
            cursor: pointer;
            border-radius: 50%;
            border: 2px solid white;
        }
        .card-header .dots {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 30px;
            cursor: pointer;
            color: white;
        }
        .card-header .dots-menu {
            display: none;
            position: absolute;
            top: 35px;
            right: 10px;
            background: #1f7937;
            border-radius: 5px;
            padding: 10px;
        }
        .card-header .dots-menu a {
            color: white;
            text-decoration: none;
            padding: 10px 0;
            display: block;
        }
        .card-header .dots-menu a:hover {
            background: #4a5568;
        }
        .card-content {
            margin-top: 20px;
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }
        .card-content .period-label {
            color: Magenta;
            font-size: 22px;
        }
        .card-content .period-number {
            color: DarkRed;
        }
        .result-text {
            color: #00FF00;
            font-size: 20px;
            margin-top: 20px;
            font-weight: bold;
            text-shadow: 1px 1px 2px black;
        }
        .card-buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }
        .card-buttons a {
            text-decoration: none;
            background: #2B3033;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            border: 2px solid #2B1C59;
            transition: background 0.3s, transform 0.2s;
        }
        .card-buttons a:hover {
            background: #4a5568;
            transform: scale(1.05);
        }
        footer {
            margin-top: 20px;
            font-size: 14px;
            color: white;
            background-color: #1f2937;
            padding: 10px;
            text-align: center;
        }
        footer span {
            color: yellow;
        }
    </style>
    <script>
        let isImage1 = true;
        function toggleImage() {
            const image = document.getElementById("image1");
            image.src = isImage1 ? "image2.png" : "image.png";
            isImage1 = !isImage1;
        }
        function toggleMenu() {
            const menu = document.getElementById('dots-menu');
            menu.style.display = menu.style.display === 'block' ? 'none' : 'block';
        }
        function handleMenuClick(action) {
            if (action === 'predict') {
                predictResult();
            } else if (action === 'refresh') {
                refreshPeriod();
            }
            toggleMenu();
        }
        function updatePeriod() {
            const now = new Date();
            const hours = now.getUTCHours();
            const minutes = now.getUTCMinutes();
            const totalMinutes = hours * 60 + minutes;
            const date = now.toISOString().split("T")[0].replace(/-/g, "");
            const periodNumber = `${date}1000${10001 + totalMinutes}`;
            document.getElementById("period-number").textContent = periodNumber;
        }
        function refreshPeriod() {
            document.getElementById("period-number").innerHTML = '<span class="loading-text">Loading...</span>';
            setTimeout(() => updatePeriod(), 1500);
        }
        function predictResult() {
            const resultDiv = document.getElementById("result-output");
            resultDiv.innerHTML = '<span class="loading-text">Loading...</span>';
            setTimeout(() => {
                const result = Math.random() > 0.5 ? 'BIG' : 'SMALL';
                resultDiv.innerHTML = `<span class="result-output">${result}</span>`;
            }, 1000);
        }
        setInterval(updatePeriod, 1000);
        updatePeriod();
    </script>
</head>
<body>
<div class="card">
    <div class="card-header">
        <div class="icon">
            <img id="image1" src="https://ideogram.ai/assets/progressive-image/balanced/response/2JVkSMrPTgmi5a8ISHDwTw" alt="Image" onclick="toggleImage()">
        </div>
        <div class="dots" onclick="toggleMenu()">...</div>
        <div class="dots-menu" id="dots-menu">
            <a href="#" onclick="handleMenuClick('predict')">Predict</a>
            <a href="#" onclick="handleMenuClick('refresh')">Refresh</a>
        </div>
    </div>
    <div class="card-content">
        <span class="period-label">Period Number:</span>
        <span id="period-number" class="period-number"><span class="loading-text">Loading...</span></span>
    </div>
    <div class="result-text">
       👉<span id="result-output"></span>👈
    </div>
    <div class="card-buttons">
        <a href="https://t.me/+NruRE5jTXRM4NTA1" target="_blank">
            <i class="fa-brands fa-telegram"></i> Telegram
        </a>
        <a href="#" onclick="predictResult()">
            <i class="fa-solid fa-chart-line"></i> Predict
        </a>
    </div>
    <footer>Powered by <span>2025</span></footer>
</div>
</body>
</html>
