/* Define custom colors */ :root { --primary-color: #4ecdc4; --secondary-color: #ff6b6b; --bg-color: #0a0a0a; --text-color: #fff; --gold: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c); } body { font-family: 'Prompt', sans-serif; background-color: #333; /* เปลี่ยนพื้นหลังเป็นสีดำ */ color: #fff; /* เปลี่ยนสีข้อความเป็นขาว */ background-size: cover; /* ปรับขนาดภาพให้พอดีกับหน้าจอ */ display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; overflow: hidden; transition: all 0.5s ease; } /* Container styles */ .container { background: rgba(255, 255, 255, 0.1); /* Transparent background */ padding: 30px; border-radius: 20px; /* Rounded corners */ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7); /* Dark shadow for depth */ text-align: center; width: 100%; max-width: 380px; backdrop-filter: blur(10px); /* Blur effect for the container */ transform: translateY(10px); animation: fadeIn 1s ease-out; /* ช้าลงจาก 0.5s เป็น 1s */ } /* Heading style */ h2 { margin-bottom: 15px; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px; background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8); background-size: 400%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbow 8s ease infinite; /* เพิ่มเวลาของการเคลื่อนไหวให้ช้าลง */ } /* Logo without rotation */ .logo { width: 100px; height: 100px; margin-bottom: 20px; object-fit: contain; border-radius: 50%; } /* Input and button styling */ input, button { width: 100%; padding: 15px; margin: 15px 0; border: none; border-radius: 10px; background: #333; color: white; outline: none; box-sizing: border-box; font-size: 16px; transition: background 0.5s ease, transform 0.3s ease; /* ทำให้การเปลี่ยนแปลงของปุ่มช้าลง */ } input:focus, button:focus { transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 87, 34, 0.7); } /* ปรับแต่งปุ่ม */ button { width: 100%; padding: 15px; margin: 15px 0; border: none; border-radius: 50px; /* ปรับมุมให้กลมขึ้น */ background: #00aaff; /* ปรับเป็นสีฟ้า */ color: white; font-size: 18px; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease; /* การเปลี่ยนแปลงที่ราบรื่น */ box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* เงาที่มีมิติ */ text-transform: uppercase; letter-spacing: 1px; } /* เมื่อผู้ใช้เอามาวาง (hover) */ button:hover { background: #0099cc; /* เปลี่ยนเป็นฟ้าเข้มเมื่อ hover */ transform: scale(1.05); /* ทำให้ปุ่มขยายขนาดขึ้นเล็กน้อย */ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* เงาที่ชัดเจนขึ้น */ } /* เมื่อปุ่มถูกเลือก (focus) */ button:focus { outline: none; box-shadow: 0 0 15px #00aaff, 0 0 30px rgba(0, 170, 255, 0.5); /* ทำให้มีเงารอบๆ ปุ่ม */ transform: scale(1.1); /* ทำให้ขยายขนาดเมื่อถูก focus */ } /* Loading and status text */ #smsStatus, #randomPhoneNumber, #loading { margin-top: 20px; font-size: 16px; display: none; } #smsStatus { color: #4caf50; /* Green for success message */ } #loading { color: #ff9800; /* Orange for loading */ font-weight: bold; font-size: 18px; } .loading { display: none; color: #007bff; font-weight: bold; margin-top: 10px; animation: fadeInOut 1s infinite; } /* Add fadeIn animation */ @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeInOut { 0%, 100% { opacity: 0; } 50% { opacity: 1; } } .status { margin-top: 15px; font-weight: bold; } /* Rainbow animation for h2 text */ @keyframes rainbow { 0% { background-position: 0 0; } 50% { background-position: 400% 0; } 100% { background-position: 0 0; } } h2 { margin-bottom: 15px; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px; background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8); background-size: 400%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbow 500s ease infinite; /* ปรับการเคลื่อนไหวให้ช้าลงจาก 5s เป็น 15s */ } /* เพิ่มฟอนต์ Prompt ให้ทุกข้อความ */ * { font-family: 'Prompt', sans-serif; margin: 0; padding: 0; box-sizing: border-box; } footer { text-align: center; /* จัดตำแหน่งข้อความให้อยู่กลาง */ position: fixed; /* ให้ข้อความอยู่ที่ด้านล่างสุดของหน้าจอ */ bottom: 0; width: 100%; padding: 10px 0; background-color: rgba(0, 0, 0, 0.5); /* พื้นหลังโปร่งใส */ color: #fff; /* สีข้อความขาว */ font-size: 14px; /* ขนาดฟอนต์ */ } footer p { margin: 0; font-family: 'Prompt', sans-serif; /* ฟอนต์ Prompt */ }