/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #0e0b09 0%, #3000df 100%);
    color: #fff;
    /* เพิ่มส่วนนี้เพื่อจำลองหน้าจอและจัดกึ่งกลาง */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* --- เพิ่มเข้ามาเพื่อจำลองหน้าจอมือถือ --- */
.mobile-wrapper {
    width: 720px;
    height: 1080px;
    border: 2px solid #333;
    border-radius: 0px;
    overflow-y: auto; /* ทำให้เลื่อนดูเนื้อหาได้ */
    overflow-x: hidden;
    position: relative; /* เพื่อให้ bottom-nav อยู่ภายในกรอบนี้ */
    background: #0e0b09; /* สีพื้นหลังเหมือน body */
    scrollbar-width: none; /* ซ่อน scrollbar สำหรับ Firefox */
}

/* ซ่อน scrollbar สำหรับ Chrome, Safari, and Opera */
.mobile-wrapper::-webkit-scrollbar {
    display: none;
}
/* --- สิ้นสุดส่วนจำลองหน้าจอ --- */


.container {
    width: 100%; /* ปรับให้เต็มความกว้างของ wrapper */
    margin: auto;
    overflow: hidden;
    padding-bottom: 5px;
    padding-left: 15px; /* เพิ่มระยะห่างซ้ายขวา */
    padding-right: 15px;
    box-sizing: border-box; /* ป้องกัน padding ทำให้ container ล้น */
}

.header {
    text-align: center;
    padding: 20px 0;
}

.logo {
    width: 80%; /* ปรับขนาดโลโก้ให้สัมพันธ์กับหน้าจอ */
    max-width: 350px; /* กำหนดขนาดใหญ่สุด */
    margin-bottom: 20px;
}

.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn {
    padding: 18px 30px; /* เพิ่มความสูงของปุ่ม */
    margin: 10px 0;
    border: none;
    cursor: pointer;
    font-size: 18px; /* เพิ่มขนาดตัวอักษร */
    border-radius: 12px; /* เพิ่มความโค้งมน */
    width: 100%;
    max-width: 550px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: shake 0.5s infinite;
    animation-delay: 5s;
    animation-iteration-count: infinite;
}

.btn-signup {
    background: linear-gradient(180deg, #ffd700, #1900ff);
    color: #eeeeee;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-login {
    background: linear-gradient(180deg, #ff5f00, #1900ff);
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn:active {
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    50% {
        transform: translateX(2px);
    }
    75% {
        transform: translateX(-2px);
    }
}

.promo {
    text-align: center;
}

.promo-image {
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bar-image {
    width: 100%; /* ปรับให้เต็มความกว้างของ wrapper */
    margin: 0;
    display: block; /* แก้ปัญหาช่องว่างใต้ภาพ */
}

.info {
    padding: 20px;
    text-align: center;
    background: #1e1a18;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.info h2 {
    font-size: 2em; /* เพิ่มขนาดหัวข้อ */
    margin-bottom: 20px;
    color: #ffd700;
}

.info p {
    font-size: 1.1em; /* เพิ่มขนาดตัวอักษร */
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 0;
}

.bottom-nav {
    position: absolute; /* เปลี่ยนเป็น absolute เพื่อให้อยู่ใน wrapper */
    bottom: 0;
    width: 100%;
    max-width: 720px; /* กำหนดความกว้างสูงสุดให้เท่า wrapper */
    background: #2b2725;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    box-sizing: border-box;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.menu li {
    flex: 1;
    text-align: center;
}

.menu li a {
    color: #ffd700;
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu li a:hover {
    background-color: #e1b700;
    color: #000;
}

.menu li a .fa {
    display: block;
    font-size: 28px; /* เพิ่มขนาดไอคอน */
    margin-bottom: 8px; /* เพิ่มระยะห่าง */
}

.group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -20px;
}

.group .img-fluid {
    width: 70px; /* เพิ่มขนาดไอคอนกลาง */
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background-color: #fff;
    padding: 5px;
}

/* ไม่จำเป็นต้องใช้ Media Queries ถ้าเราจำลองหน้าจอ แต่เก็บไว้เผื่อนำไปใช้จริง */
@media (max-width: 720px) {
    .logo {
        width: 70%;
    }
    .btn {
        padding: 15px 25px;
        font-size: 16px;
    }
    .info h2 {
        font-size: 1.8em;
    }
    .info p {
        font-size: 1em;
    }
    .menu li a .fa {
        font-size: 24px;
    }
    .group .img-fluid {
        width: 65px;
        height: 65px;
    }
}

.image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
