<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta property="og:description" content="destruction is a form of creation">
	<meta name="theme-color" data-react-helmet="true" content=
	"#000000"
	<link rel="icon" href="media/icon.png" type="image/png" sizes="100x100">
    <title>nn</title>
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
    <style>
        body {
            margin: 0;
            font-family: 'Montserrat', sans-serif;
            background-color: #000;
            color: #fff;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .enter-screen {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 1;
            transition: opacity 0.5s ease;
            z-index: 10;
        }

        .enter-screen.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .enter-button {
            font-family: 'Montserrat', sans-serif; 
            font-size: 18px;
            font-weight: 400;
            color: #fff;
            background: none;
            border: none;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .enter-button:hover {
            color: #ccc;
        }

        .container {
            text-align: center;
            display: none;
            opacity: 0;
            transition: opacity 0.5s ease; 
        }

        .container.visible {
            display: block;
            opacity: 1;
        }

        .profile-pic {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background-color: #000;
            object-fit: cover;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .profile-pic.visible {
            opacity: 1;
        }

        .name {
            font-family: 'Poppins', sans-serif;
            font-size: 26px;
            font-weight: 600;
            margin-top: 20px;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .name.visible {
            opacity: 1;
        }

        .subtitle {
            font-size: 16px;
            font-weight: 400;
            color: #aaa;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .subtitle.visible {
            opacity: 1;
        }

        audio {
            display: none; 
        }

        .footer {
            position: fixed;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
            text-align: center;
            font-family: 'Poppins', sans-serif;
            letter-spacing: 1px;
            z-index: 1;
        }

        .footer span {
            font-weight: 600;
        }
    </style>
</head>
<body>

    <div class="enter-screen" id="enterScreen">
        <button class="enter-button" onclick="enterSite()">click</button>
    </div>

    <div class="container" id="bioContainer">
        <img src="media/nn.jpg" alt="profile picture" class="profile-pic" id="profilePic">
        <div class="name" id="profileName">nn</div>
        <div class="subtitle" id="profileSubtitle"></div>
        
        <audio id="audio1" src="audio/1.mp3"></audio>
        <audio id="audio2" src="audio/2.mp3"></audio>
        <audio id="audio3" src="audio/3.mp3"></audio>
		<audio id="audio4" src="audio/4.mp3"></audio>
		<audio id="audio5" src="audio/5.mp3"></audio>
    </div>

    <div class="footer">
        &copy; <span>wren.lol</span> 2024 - 2025.
    </div>

    <script>
        let playlist = [];
        let currentAudioIndex = 0;

        function enterSite() {
            const enterScreen = document.getElementById('enterScreen');
            enterScreen.classList.add('hidden');

            setTimeout(() => {
                const bioContainer = document.getElementById('bioContainer');
                bioContainer.classList.add('visible');

                setTimeout(() => {
                    document.getElementById('profilePic').classList.add('visible');
                }, 200); 

                setTimeout(() => {
                    document.getElementById('profileName').classList.add('visible');
                }, 400); 

                setTimeout(() => {
                    document.getElementById('profileSubtitle').classList.add('visible');
                }, 600); 

                initializePlaylist();
                playNextAudio();
            }, 500); 
        }

        function initializePlaylist() {
            const audios = [
                document.getElementById('audio1'),
                document.getElementById('audio2'),
                document.getElementById('audio3'),
				document.getElementById('audio4'),
				document.getElementById('audio5')
            ];

            playlist = audios.filter(audio => audio.src);

            playlist = shuffleArray(playlist);
        }

        function shuffleArray(array) {
            for (let i = array.length - 1; i > 0; i--) {
                const j = Math.floor(Math.random() * (i + 1));
                [array[i], array[j]] = [array[j], array[i]];
            }
            return array;
        }

        function playNextAudio() {
            if (currentAudioIndex < playlist.length) {
                const audio = playlist[currentAudioIndex];
                audio.play();

                audio.onended = function() {
                    currentAudioIndex++;
                    playNextAudio(); 
                };
            }
        }
    </script>

<script src="js/telemetry.js"></script>
<script src="js/audio.js"></script>

</body>
</html>
