@media screen and (max-width: 480px) {
    
/* พื้นหลัง GIF */
        .background-img {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -2;
            filter: blur(2px);
        }

        /* Particles.js */
        #particles-js {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        .top-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(17, 17, 17, 0.7);
            padding: 10px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
            z-index: 1000;
        }

        .top-bar .logo {
            display: flex;
            align-items: center;
            font-size: 1.2em;
            font-weight: bold;
            color: #00d4ff;
        }

        .top-bar .logo img {
            height: 39px;
            margin-right: 10px;
            border-radius: 50%;
        }

        .top-bar .discord-link {
            color: white;
            text-decoration: none;
            font-size: 1em;
            background: #7289da;
            padding: 10px 30px;
            border-radius: 25px;
            display: flex;
            align-items: center;
            transition: all 0.3s ease-in-out;
            margin-right: 50px;
        }

        .top-bar .discord-link:hover {
            background: #5b6eae;
            transform: scale(1.1);
        }

        .content {
            position: relative;
            text-align: center;
            z-index: 2;
            max-width: 1200px;
            padding: 20px;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .rainbow-text {
            font-size: 4em;
            text-shadow: 0 0 50px rgba(161, 159, 159, 0.8);
            background: linear-gradient(90deg, #6a11cb, #2575fc);
            background-size: 400%;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: rainbow-animation 3s infinite;
            font-weight: 700;
        }

        @keyframes rainbow-animation {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .btn {
            margin-top: 20px;
            padding: 10px 20px;
            font-size: 1em;
            color: white;
            background: linear-gradient(90deg, #6a11cb, #2575fc);
            border: none;
            border-radius: 20px;
            cursor: pointer;
            text-decoration: none;
            box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
        }

        .btn:hover {
            transform: scale(1.05) rotate(5deg);
            background: linear-gradient(90deg, #2575fc, #6a11cb);
            box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
        }

        footer {
            position: fixed;
            bottom: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.7);
            padding: 10px 0;
            text-align: center;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 20px;
        }

        .social-links a {
            text-decoration: none;
        }

        .social-links img {
            width: 40px;
            height: 40px;
            transition: transform 0.3s ease;
        }

        .social-links img:hover {
            transform: scale(1.2);
        }

        .fam24{
            position: relative;
            top: -2vw;
            font-size: 1em;
        }

        .mobile{
            font-size: 3em;
        }

    }