<!DOCTYPE html>
<html lang="th">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HAPPY NEW YEAR 2025</title>
    <style>
        /* Global Styles */
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            overflow: hidden;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #1f1f1f;
            background-image: url('https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExcjIwMm9sM3hxZXk2cWZsZmk0OXNiN2lkanB2OHNpaWJ2dTR1Y2wxMSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9dg/caI9i6uQGYUrWRFvsG/giphy.gif');
            background-size: cover;
            background-position: center;
            position: relative;
        }
  
        /* Countdown Timer Styles */
        .timer {
            font-size: 50px;
            background-color: rgba(255, 255, 255, 0.1);
            padding: 35px;
            border-radius: 40px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
            text-align: center;
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
            position: relative;
            backdrop-filter: blur(10px);
        }

        .timer span {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 80px;
        }

        .number {
            font-size: 40px;
            font-weight: bold;
            animation: neonColors 2s infinite;
        }

        @keyframes neonColors {
            0% { color: #ff5733; text-shadow: 0 0 10px #ff5733; }
            25% { color: #ff33a8; text-shadow: 0 0 10px #ff33a8; }
            50% { color: #39ff14; text-shadow: 0 0 10px #39ff14; }
            75% { color: #00d9ff; text-shadow: 0 0 10px #00d9ff; }
            100% { color: #ff5733; text-shadow: 0 0 10px #ff5733; }
        }

        .label {
            font-size: 18px;
            color: #ffffff;
        }

        /* Current Date and Time Display */
        .current-time {
            font-size: 20px;
            position: absolute;
            bottom: 10px;
            color: #ff5733;
            z-index: 10;
        }

        /* Neon Animation for Marquee */
        .marquee {
            position: absolute;
            top: 10px;
            width: 100%;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            animation: neonColors 2s infinite;
        }

    </style>
</head>
<body>
    <!-- Countdown Timer -->
    <div class="timer" id="countdown">
        <span><div class="number days">00</div><div class="label">วัน</div></span>
        <span><div class="number hours">00</div><div class="label">ชั่วโมง</div></span>
        <span><div class="number minutes">00</div><div class="label">นาที</div></span>
        <span><div class="number seconds">00</div><div class="label">วินาที</div></span>
    </div>

    <!-- Current Date and Time -->
    <div class="current-time" id="current-time"></div>

    <!-- Countdown Script -->
    <script>
        var countDownDate = new Date("December 31, 2024 23:59:59").getTime();
        var x = setInterval(function() {
            var now = new Date().getTime();
            var distance = countDownDate - now;

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

            document.querySelector(".days").innerHTML = String(days).padStart(2, '0');
            document.querySelector(".hours").innerHTML = String(hours).padStart(2, '0');
            document.querySelector(".minutes").innerHTML = String(minutes).padStart(2, '0');
            document.querySelector(".seconds").innerHTML = String(seconds).padStart(2, '0');

            if (distance < 0) {
                clearInterval(x);
                document.getElementById("countdown").innerHTML = "สวัสดีปีใหม่ 2025!";
            }
        }, 1000);

        function displayCurrentTime() {
            var now = new Date();
            var currentTime = now.toLocaleString('th-TH');
            document.getElementById("current-time").innerHTML = "เวลาปัจจุบัน: " + currentTime;
        }
        setInterval(displayCurrentTime, 1000);
    </script>

    <div class="marquee">สุขสันปีใหม่ 2025 | เว็บทำโดย Farook L Y B N S</div>
</body>
</html>
