<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Text Translator</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="container">
        <h1>Text Translator but Simpler</h1>

        <!-- Input Textbox -->
        <textarea id="inputText" placeholder="Enter your text here..."></textarea>

        <!-- Translate Button -->
        <button id="translateButton">Translate</button>

        <!-- Output Area -->
        <div id="outputContainer">
            <h2>Translated Text</h2>
            <p id="outputText"></p>
        </div>
    </div>

    <!-- Audio that plays automatically -->
    <audio id="audio" autoplay loop muted>
        <!-- Ensure this path matches where the file is saved -->
        <source src="Relaxed Scene - James Clarke + Slowed + Reverb + Rain sounds [ ezmp3.cc ].mp3" type="audio/mp3">
        Your browser does not support the audio element.
    </audio>

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

    <script>
        // Unmute the audio after the page loads
        window.onload = function() {
            var audio = document.getElementById('audio');
            audio.muted = false; // Unmute after load
        };
    </script>
</body>
</html>