<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Game Selection with Animations</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #111;
            color: #fff;
            text-align: center;
            margin: 0;
            padding: 0;
        }

        .game-container {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            flex-direction: column;
        }

        /* Button styles */
        .game-item {
            margin: 20px;
            padding: 20px;
            font-size: 24px;
            cursor: pointer;
            position: relative;
        }

        .game-button {
            display: inline-block;
            padding: 15px 30px;
            font-size: 20px;
            background-color: #333;
            color: #fff;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            text-transform: uppercase;
            transition: transform 0.2s ease-in-out;
            position: relative;
            overflow: hidden;
        }

        /* Hover effect for button */
        .game-button:hover {
            transform: scale(1.1);
        }

        .led-animation {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 8px;
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.5) 25%, rgba(255, 255, 255, 0) 50%);
            background-size: 200% 200%;
            animation: led-pulse 1.5s infinite ease-in-out;
        }

        @keyframes led-pulse {
            0% {
                background-position: 200% 0%;
            }
            50% {
                background-position: -200% 200%;
            }
            100% {
                background-position: 200% 0%;
            }
        }

        /* LED glow effect around the button */
        .game-button::before {
            content: '';
            position: absolute;
            top: -4px;
            left: -4px;
            right: -4px;
            bottom: -4px;
            border-radius: 12px;
            background: rgba(0, 255, 0, 0.5);
            animation: glow 1.5s infinite alternate;
            z-index: -1;
        }

        @keyframes glow {
            0% {
                box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
            }
            100% {
                box-shadow: 0 0 20px rgba(0, 255, 0, 1);
            }
        }

        /* Animation for moving text */
        .moving-text {
            position: absolute;
            animation: move 5s linear infinite;
            font-size: 36px;
            color: #00ff99;
        }

        @keyframes move {
            0% {
                transform: translateX(-100%);
            }
            100% {
                transform: translateX(100%);
            }
        }

        /* Styling for the 'Jangan Mencuri' warning */
        .warning {
            font-size: 18px;
            color: red;
            margin-top: 30px;
            animation: blink 1s infinite;
            text-transform: uppercase;
        }

        @keyframes blink {
            0% { opacity: 0; }
            50% { opacity: 1; }
            100% { opacity: 0; }
        }

        /* Styling for the hadith and punishment warning */
        .hadith {
            font-size: 16px;
            color: #f8d7da;
            margin-top: 20px;
            padding: 10px;
            border: 1px solid #f8d7da;
            border-radius: 5px;
            background-color: #721c24;
        }

        /* Styling for the punishment warning */
.punishment {
    font-size: 14px;
    color: #d9534f; /* Merah cerah untuk teks */
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #d9534f; /* Warna border lebih terang */
    border-radius: 5px;
    background-color: #f2dede; /* Latar belakang lebih terang */
}

    </style>
</head>
<body>
    <div class="game-container">
        <div class="game-item">
            Game Tic tac toe
            <button class="game-button" onclick="window.location.href='game.html'">
                Masuk ke Game (xox)
                <div class="led-animation"></div>
            </button>
        </div>

        <div class="game-item">
            Game Fly bird
            <button class="game-button" onclick="window.location.href='https://flappybird.io'">
                Masuk ke Game Play bird
                <div class="led-animation"></div>
            </button>
        </div>

        <div class="game-item">
            Game Catur Vs computer
            <button class="game-button" onclick="window.location.href='https://poki.com/id/g/master-chess#fullscreen'">
                Masuk ke Game catur
                <div class="led-animation"></div>
            </button>
        </div>

        <div class="game-item">
            Game Lainnya
            <button class="game-button" onclick="window.location.href='https://www.friv.com'">
                Masuk ke Game Lainnya
                <div class="led-animation"></div>
            </button>
        </div>
        
        <!-- Adding the 'Jangan Mencuri' warning -->
        <div class="warning">
            Jangan Mencuri! Hormati Hak Cipta!
        </div>

        <!-- Hadith and punishment for stealing -->
        <div class="hadith">
            <strong>Hadist tentang Mencuri:</strong><br>
            Rasulullah bersabda, "Barangsiapa yang mengambil hak orang lain walau hanya sejengkal tanah, maka akan dikalungkan ke lehernya (pada hari kiamat nanti) seberat tujuh lapis bumi." (HR Bukhari dan Muslim).
        </div>

        <div class="punishment">
            <strong>Allah berfirman dalam Al-Quran (5:38) - " Laki-laki yang mencuri dan perempuan yang mencuri, potonglah kedua tangannya sebagai siksaan dari Allah atas kejahatannya. Dan Allah Maha Kuasa.".
        </div>
    </div>
</body>
</html>
