/* General Styles */ html { scroll-behavior: smooth; } body { background-color: #121212; color: #ffffff; height: 100vh; display: flex; user-select: none; flex-direction: column; } /* Loading screen (screen that will fade to black) */ #loading { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); /* ใส่สีดำ */ display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 1; transition: opacity 1.5s ease-out; /* ทำให้ค่อยๆ Fade */ } /* Background & Fixed Elements */ #plexus-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; } /* Clock Display */ #clockDisplay { text-align: center; bottom: 10px; left: 10px; font-size: 15px; color: gray; } #clockText { text-align: center; bottom: 10px; left: 12px; font-size: 19px; color: #e5ccff; white-space: nowrap; animation: fadeEffect 3s infinite; } .clockStyle { text-align: center; /* จัดข้อความให้กึ่งกลาง */ font-family: 'Roboto', sans-serif; /* เปลี่ยนฟอนต์เป็น Roboto */ font-size: 18px; font-weight: bold; color: white; } @keyframes fadeEffect { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } } /* Animation Styles */ @keyframes pulseAnimation { 0% { transform: scale(1); text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5); } 50% { transform: scale(1.1); text-shadow: 0px 0px 15px rgba(255, 255, 255, 0.8); } 100% { transform: scale(1); text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5); } } @keyframes fadeInUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } } @keyframes fadeInZoom { 0% { opacity: 0; transform: scale(0.8) translateY(20px); } 100% { opacity: 1; transform: scale(1) translateY(0); } } @keyframes zoomIn { 0% { opacity: 0; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } } /* Text Animations */ .someSelector::before { content: "[ "; visibility: hidden; transition: visibility 0.5s ease-in-out; } .someSelector::after { content: " ]"; visibility: hidden; transition: visibility 0.5s ease-in-out; } .someSelector.show-brackets::before, .someSelector.show-brackets::after { visibility: visible; } .someSelector { animation: pulseAnimation 1.5s ease-in-out infinite; } .fade-in { opacity: 0; transform: perspective(1000px) rotateY(-15deg); transition: opacity 1s ease-out; } .Zoom-in { opacity: 0; transition: opacity 1s ease-out !important; } .Zoom-in.show { opacity: 1; } .fade-in.show { opacity: 1; } /* Scrollbar */ ::-webkit-scrollbar { width: 0px; height: 0px; } /* Navbar Styles */ .navbar { background-color: rgba(5, 4, 4, 0.226); padding: 0rem 0rem; } .navbar-brand i { font-size: 1.5rem; } .navbar-toggler { border-color: rgba(255, 255, 255, 0.3); } .nav-link:hover { color: #ffffff; } .navbar-toggler { position: absolute; right: 20px; /* ขยับไปทางขวา */ top: 25px; /* ขยับขึ้นจากขอบบน */ } /* Button Styles */ .btn-download { margin-top: 50px !important; background-color: rgba(168, 168, 168, 0.05); color: #ffffff; border: 3px solid rgba(59, 59, 59, 0.3); border-radius: 20px; transition: transform 0.3s ease-in-out !important; animation: zoomIn 0.5s ease-out; } .btn-download:hover { transform: scale(1.1); background-color: #ff8bf0; border: 3px solid rgba(59, 59, 59, 0); } .nav-link:hover { color: #ffffff; } /* Banner Styles */ .banner-img { max-width: 100%; height: auto; border-radius: 10px; transform: perspective(1000px) rotateY(-15deg); transition: transform 0.3s ease-in-out; box-shadow: 0 0 25px rgba(0, 0, 0, 0.8); } .banner-img:hover { transform: perspective(1000px) rotateY(-10deg) scale(1.05); transition: transform 0.3s ease-in-out; } /* Content Section */ .content-container { margin-top: 50px !important; flex: 1; display: flex; justify-content: center; align-items: center; } /* Dark Sections */ .dark-section { background-color: rgba(0, 0, 0, 0.); padding: 50px 0; } .dark-section2 { background-color: rgba(0, 0, 0, 0.); padding: 50px 0; } /* Item Cards */ .item-container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 30px; animation: zoomIn 0.5s ease-out; } .item-card { background-color: rgba(41, 41, 41, 0.56); border-radius: 10px; padding: 20px; width: 100%; max-width: 335px; text-align: center; max-width: 335px; flex: 1 1 280px; transition: width 0.3s ease-in-out; } .item-card img { max-width: 100%; height: 200px; object-fit: cover; border-radius: 10px; transform: scale(0); } .item-card h5 { margin-top: 15px; font-size: 1.2rem; } .item-card p { font-size: 1rem; color: #bbb; } .item-card .btn { margin-top: 15px; background-color: #ff8bf0; color: white; border-radius: 10px; padding: 10px 20px; text-decoration: none; } .item-card .btn:hover { background-color: #ff61d5; } /* Section Titles */ .section-title { text-align: center; font-size: 1.5rem; margin-bottom: 30px; color: #ffffff; } /* Responsive Design */ @media (max-width: 767px) { .item-card { max-width: 90%; } } @media (max-width: 991px) { .item-container { flex-direction: column; align-items: center; } .item-card { max-width: 75%; margin-bottom: 20px; } } @media (min-width: 992px) { .item-container { flex-direction: row; } .item-card { max-width: 30%; } } @media (max-width: 576px) { .item-card { max-width: 100%; /* ให้ไอเท็มใช้พื้นที่เต็ม */ margin: 10px 0; } .item-container { flex-direction: column; /* จัดให้เป็นแนวตั้ง */ align-items: stretch; } .navbar { padding: 10px; /* ลดระยะขอบ */ } } .item-container { display: flex; flex-wrap: wrap; /* ให้ไอเท็มเลื่อนลงเมื่อพื้นที่ไม่พอ */ justify-content: center; /* จัดให้อยู่กึ่งกลาง */ gap: 20px; /* เพิ่มช่องว่างระหว่างไอเท็ม */ } .item-card { flex: 1 1 calc(50% - 20px); /* ให้แต่ละไอเท็มกว้าง 50% ของคอนเทนเนอร์ */ box-sizing: border-box; } @media (max-width: 576px) { .item-card { flex: 1 1 100%; /* ให้ไอเท็มใช้พื้นที่เต็มในจอเล็ก */ } } /* ป้องกันการเลื่อนแนวนอน */ body { overflow-x: hidden; }