<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>KING OF HRITHIK</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #1e1e2f;
            color: #ffffff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
        }
        .container {
            text-align: center;
            padding: 20px;
            border: 2px solid #4caf50;
            border-radius: 10px;
            background-color: #2a2a3d;
        }
        h1 {
            color: #4caf50;
        }
        .result {
            margin-top: 20px;
            font-size: 24px;
            font-weight: bold;
        }
        button {
            background-color: #4caf50;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            margin-top: 20px;
        }
        button:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>CYBER BY HRITHIK CREATE</h1>
        <p id="period-number">Period: Waiting...</p>
        <p id="result" class="result">Waiting...</p>
        <button onclick="quantumHack()">👉Result👈</button>
    </div>

    <script>
        function quantumHack() {
            // Get current time
            const now = new Date();
            const hour = now.getHours();
            const minute = now.getMinutes();
            const totalMinutes = (hour * 60) + minute;

            // Format the date as yyyyMMdd
            const currentDate = now.toISOString().slice(0, 10).replace(/-/g, "");

            // Calculate period number
            const offset = 330; // 5 hours 30 minutes in minutes
            const periodCalculation = 10001 + totalMinutes - offset;
            const periodNumber = currentDate + "1000" + periodCalculation;

            // Set period number in HTML
            document.getElementById("period-number").textContent = "" + periodNumber;

            // Calculate digit sum
            let digitSum = String(periodCalculation).split('').reduce((sum, digit) => sum + parseInt(digit, 10), 0);

            // Reduce digit sum to a single digit if needed
            while (digitSum >= 10) {
                digitSum = String(digitSum).split('').reduce((sum, digit) => sum + parseInt(digit, 10), 0);
            }

            // Determine BIG or SMALL result
            const result = digitSum >= 0 && digitSum <= 4 ? "SMALL" : 
                           digitSum >= 5 && digitSum <= 9 ? "BIG" : "ERROR";

            // Set result in HTML
            document.getElementById("result").textContent = "" + result;
        }
    </script>
</body>
</html>