<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TANMAY AI SERVER</title>
    <script src="https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js"></script>
    <style>
    
    .telegram-link {
    text-align: center;
    margin-top: 20px;
}

.telegram-link a {
    display: inline-block;
    background: red;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid black;
    transition: 0.3s ease;
}

.telegram-link a:hover {
    background: black;
    color: red;
    border: 2px solid red;
}

        /* General Reset */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-image: url('images/wolf-background.jpg'); /* Replace with your background */
            background-size: cover;
            background-position: center;
            font-family: 'Arial', sans-serif;
            color: #FFFFFF;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }

        /* Particles.js container */
        #particles-js {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: -1; /* Keep particles behind the content */
        }

        .container {
            width: 90%;
            max-width: 400px;
            background: rgba(0, 0, 0, 0.8); /* Black transparent */
            border: 2px solid red;
            border-radius: 10px;
            padding: 20px;
            position: relative;
            text-align: center;
            animation: fadeIn 1.5s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .header {
            font-size: 28px;
            font-weight: bold;
            color: red;
            text-align: center;
            margin-bottom: 20px;
        }

        .buttons {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .buttons button {
            flex: 1;
            margin: 0 10px;
            padding: 10px;
            font-size: 16px;
            background: black;
            color: white;
            border: 2px solid red;
            border-radius: 5px;
            cursor: pointer;
            transition: 0.3s ease;
        }

        .buttons button:hover {
            background: red;
            color: black;
        }

        .selection {
            text-align: center;
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 10px;
            color: red;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }

        .period {
            font-size: 14px;
            color: #FFF;
            margin-bottom: 10px;
        }

        #timer {
            font-size: 16px;
            color: red;
            margin-bottom: 20px;
        }

        .result-box {
            height: 150px;
            border: 2px solid red;
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: red;
            font-size: 20px;
            font-weight: bold;
            overflow: hidden;
            position: relative;
        }

        .get-result {
            margin-top: 20px;
            text-align: center;
        }

        .get-result button {
            width: 100%;
            padding: 10px;
            font-size: 16px;
            background: black;
            color: white;
            border: 2px solid red;
            border-radius: 5px;
            cursor: pointer;
            transition: 0.3s ease;
        }

        .get-result button:hover {
            background: red;
            color: black;
        }
    </style>
</head>
<body>
    <!-- Particles.js Container -->
    <div id="particles-js"></div>

    <div class="container">
        <div class="header">TANMAY AI SERVER</div>
        <div class="buttons">
            <button onclick="selectServer('Server 1')">SERVER 1</button>
            <button onclick="selectServer('Server 2')">SERVER 2</button>
        </div>
        <div class="selection" id="serverSelection">SERVER SELECT 👉</div>
        <div class="period" id="periodNumber">PERIOD: Loading...</div>
        <div id="timer">Next in: 60s</div>
        <div class="result-box" id="resultBox">RESULT</div>
        <div class="get-result">
            <button onclick="showResult()">GET RESULT</button>
            <div class="telegram-link">
    <a href="https://t.me/+kiKVyOrOLzwzOGU1" target="_blank">Join Our Telegram Channel</a>
</div>
        </div>
    </div>

    <!-- Load external JavaScript file -->
    <script src="php.js"></script>
</body>
</html>