<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AÄÄÄÄAAAAÄAÄ</title>
    <meta property="og:title" content="AÄÄÄÄAAAAÄAÄ">
    <meta property="og:description" content="AÄÄÄÄAAAAÄAÄ">
    <meta property="og:image" content="https://lennart.kits.ee/AÄÄÄÄAAAAÄAÄ.png">
    <meta property="og:url" content="https://lennart.kits.ee">
    <meta property="og:type" content="website">
    <style>
        html, body {
            margin: 0;
            padding: 0;
            height: 100%;
            overflow: hidden;
        }
        #backgroundImage {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100vw;
            height: 100vh;
            transform: translate(-50%, -50%);
            object-fit: cover;
            z-index: 0;
        }
        video {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100vw;
            height: 100vh;
            transform: translate(-50%, -50%);
            object-fit: cover;
            z-index: 1;
            display: none;
        }
        #playButton {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 10px 20px;
            font-size: 18px;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            z-index: 2;
        }
        #playButton i {
            margin-right: 10px;
            font-size: 24px;
        }
    </style>
</head>
<body>
    <img id="backgroundImage" src="AÄÄÄÄAAAAÄAÄ.png" alt="Background Image">
    <video id="video" src="AÄÄÄÄAAAAÄAÄ.mp4" loop muted playsinline></video>
    <button id="playButton">&#128266; AÄÄÄÄAAAAÄAÄ</button>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const video = document.getElementById('video');
            const playButton = document.getElementById('playButton');
            const backgroundImage = document.getElementById('backgroundImage');

            function playVideo() {
                video.muted = false;
                video.play().then(() => {
                    playButton.style.display = 'none';
                    backgroundImage.style.display = 'none';
                }).catch(error => {
                    console.log('Failed to play with sound:', error);
                });
            }

            video.play().then(() => {
                video.style.display = 'block';
            }).catch(error => {
                console.log('Autoplay failed:', error);
            });

            playButton.addEventListener('click', playVideo);
            document.body.addEventListener('click', playVideo);

            document.addEventListener('keydown', function(event) {
                if (event.code === 'Space') {
                    event.preventDefault();
                    playVideo();
                }
            });
        });
    </script>
</body>
</html>
