<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Holiday Giveaway 2024</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
        }
        .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }
        .header {
            text-align: center;
            padding: 40px 0;
            background-color: #ff4444;
            color: white;
        }
        .prize-section {
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .entry-form {
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
        }
        input, button {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
        button {
            background-color: #4CAF50;
            color: white;
            border: none;
            cursor: pointer;
        }
        button:hover {
            background-color: #45a049;
        }
        .timer {
            font-size: 24px;
            text-align: center;
            margin: 20px 0;
        }
        .rules {
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>🎉 Holiday Mega Giveaway 🎉</h1>
        <p>Enter for your chance to win amazing prizes!</p>
    </div>

    <div class="container">
        <div class="timer">
            <h2>Time Remaining:</h2>
            <div id="countdown">Loading...</div>
        </div>

        <div class="prize-section">
            <h2>🎁 Prize Details</h2>
            <ul>
                <li>Grand Prize: [Prize Description]</li>
                <li>Second Prize: [Prize Description]</li>
                <li>Third Prize: [Prize Description]</li>
            </ul>
        </div>

        <div class="entry-form">
            <h2>Enter to Win</h2>
            <form id="giveawayForm">
                <input type="text" placeholder="Full Name" required>
                <input type="email" placeholder="Email Address" required>
                <input type="tel" placeholder="Phone Number">
                <button type="submit">Submit Entry</button>
            </form>
        </div>

        <div class="rules">
            <h2>Contest Rules</h2>
            <ul>
                <li>Contest ends December 24, 2024</li>
                <li>One entry per person</li>
                <li>Winners will be notified via email</li>
                <li>Must be 18 or older to enter</li>
                <li>No purchase necessary</li>
            </ul>
        </div>
    </div>

    <script>
        // Countdown Timer
        function updateTimer() {
            const endDate = new Date('December 24, 2024 23:59:59').getTime();
            const now = new Date().getTime();
            const distance = endDate - now;

            const days = Math.floor(distance / (1000 * 60 * 60 * 24));
            const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
            const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
            const seconds = Math.floor((distance % (1000 * 60)) / 1000);

            document.getElementById('countdown').innerHTML = 
                days + 'd ' + hours + 'h ' + minutes + 'm ' + seconds + 's';

            if (distance < 0) {
                document.getElementById('countdown').innerHTML = 'CONTEST ENDED';
            }
        }

        setInterval(updateTimer, 1000);
        updateTimer();

        // Form Submission
        document.getElementById('giveawayForm').addEventListener('submit', function(e) {
            e.preventDefault();
            alert('Thank you for entering! Good luck!');
            this.reset();
        });
    </script>
</body>
</html>