@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;600;700&display=swap');

body {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
}
p {
    font-weight: 400;
}


/* Reset ค่าพื้นฐาน */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* จัดสไตล์ให้ body */
body {
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    padding-bottom: 60px; /* กันพื้นที่ให้ปุ่มด้านล่าง */
}

/* ส่วน Header */
header {
    background-color: #ff9900;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* โลโก้ */
.logo img {
    height: 50px;
}

/* เมนู */
.menu {
    list-style: none;
    display: flex;
}

.menu li {
    margin: 0 10px;
}

.menu a {
    color: rgb(12, 11, 11);
    text-decoration: none;
    font-weight: bold;
}

/* Hamburger Menu สำหรับมือถือ */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: rgb(12, 4, 4);
}

/* ปรับเมนูในมือถือ */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        background-color: #222;
        padding: 10px;
        border-radius: 5px;
    }

    .menu li {
        margin-bottom: 10px;
    }

    .menu-toggle {
        display: block;
    }
}

/* ปุ่มสมัครสมาชิก และ ปุ่มเข้าเล่นที่ติดอยู่ด้านล่าง */
.fixed-buttons {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.fixed-buttons a {
    flex: 1;
    padding: 15px;
    text-align: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.btn-register {
    background-color: #049417;
}

.btn-play {
    background-color: #6600cc;
}

/* ปรับปุ่มให้ดูเด่นขึ้น */
.btn-register:hover, .btn-play:hover {
    opacity: 0.8;
}

/* ส่วนสารบัญ */
.content-box {
    background-color: #111;
    padding: 20px;
    border-radius: 5px;
    margin: 20px;
}

.content-box h2 {
    border-bottom: 2px solid #ff9900;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* สไตล์ให้กับรายการ */
ul {
    list-style: none;
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
}






/* กล่องสารบัญ */
.content-box {
    background-color: #111;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

/* ปรับแต่งภาพบนสารบัญ */
.content-box img {
    width: 100px; /* ปรับขนาดตามต้องการ */
    height: auto;
    margin-bottom: 15px; /* เว้นระยะจากหัวข้อ */
}

/* หัวข้อของสารบัญ */
.content-box h2 {
    border-bottom: 3px solid #ff9900;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 22px;
}

/* รายการภายในสารบัญ */
.content-box ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.content-box ul li {
    padding: 8px 0;
    font-size: 18px;
}

/* ปรับขนาดภาพให้เต็มจอและ Responsive */
.hero-image img {
    width: 100%;
    max-height: 400px; /* ปรับความสูงได้ */
    object-fit: cover; /* ทำให้ภาพเต็มกรอบ */
    border-radius: 10px; /* เพิ่มขอบโค้งมน */
    margin-bottom: 20px; /* เพิ่มช่องว่างด้านล่าง */
}








.gallery {
    display: grid;
    grid-template-columns: 1fr; /* เริ่มต้นแสดงภาพเรียงแนวตั้ง */
    gap: 10px; /* ระยะห่างระหว่างภาพ */
    justify-content: center;
    padding: 20px;
}

/* ปรับขนาดภาพให้เป็น 800x800 และแสดงเต็ม */
.gallery img {
    width: 100%;
    max-width: 800px;
    height: auto; /* ให้ขนาดภาพแสดงเต็ม ไม่ตัดขอบ */
    aspect-ratio: 1 / 1; /* บังคับอัตราส่วนเป็น 1:1 (800x800) */
    object-fit: contain; /* แสดงภาพเต็มโดยไม่ตัดขอบ */
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* สำหรับหน้าจอใหญ่ (Desktop) ให้แสดงภาพแบบ 2 คอลัมน์ */
@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* แสดง 2 ภาพต่อแถว */
    }
}





/*ใต้สาระบัญ*/
/* กำหนดพื้นหลังเป็นสีดำ และข้อความสีขาว */
body {
    background-color: rgb(255, 255, 255);
    color: rgb(255, 255, 255);
    font-family: Arial, sans-serif;
    text-align: center;
}

/* สไตล์ของตัว container หลัก */
.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    
}

/* หัวข้อไฮไลท์ (สีม่วง) */
.highlight-title {
    color: #000000;
    font-size: 22px;
    font-weight: bold;
}

/* จัดตำแหน่งภาพให้อยู่ตรงกลาง */
.image-container {
    text-align: center;
    margin: 10px 0;
}

.image-container img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
}

/* สไตล์ของข้อความให้ชิดภาพ */
.text-content {
    font-size: 18px;
    line-height: 1.6;
    padding: 10px;
    text-align: left;
    color: #000000;
}

/* ไฮไลท์คำสำคัญ (เช่น สล็อตเว็บตรง) */
.highlight {
    color: #000000;
    font-weight: bold;
}














/*ปุ่ม*/
.promo-box img {
    width: 100%; /* ขยายภาพให้เต็มพื้นที่ของกล่อง */
    max-width: 600px; /* เพิ่มขนาดภาพให้ใหญ่ขึ้น */
    display: block;
    margin: 0 auto; /* จัดให้อยู่ตรงกลาง */
    border-radius: 10px; /* ปรับมุมภาพให้โค้งเล็กน้อย */
}


.promo-box img {
    width: 100%; /* ทำให้ภาพขยายเต็มพื้นที่ของกล่อง */
    max-width: 850px; /* ปรับขนาดภาพให้ใหญ่ขึ้น (เปลี่ยนจาก 350px เป็น 450px) */
    border-radius: 5px; /* เพิ่มความโค้งมนให้ภาพ */
}

.promo-button {
    display: block;
    width: 200px; /* ขยายเต็มความกว้าง */
    max-width: 750px; /* กำหนดขนาดสูงสุดของปุ่ม */
    background-color: rgb(12, 131, 18);
    color: white;
    text-align: center;
    padding: 15px 0; /* เพิ่มระยะห่างภายในปุ่ม */
    margin: 15px auto; /* จัดให้อยู่ตรงกลาง */
    font-size: 18px; /* ปรับขนาดตัวอักษรให้ใหญ่ขึ้น */
    font-weight: bold;
    border-radius: 8px; /* มุมโค้งมน */
    text-decoration: none;
    cursor: pointer;
}



.promo-button:hover {
    background-color: #a00000; /* สีแดงเข้มขึ้นตอน Hover */
}














.container {
    display: grid;
    grid-template-columns: 1fr; /* เริ่มต้นให้เป็น 1 คอลัมน์ */
    gap: 20px;
    text-align: center;
    padding: 20px;
}

/* การ์ด */
.card {
    background: #111;
    padding: 20px;
    border-radius: 10px;
}

/* ปรับให้ภาพไม่ใหญ่เกินไป */
.card img {
    width: 100%;
    max-width: 200px;
    margin-bottom: 10px;
}

/* ปรับเป็น 2 คอลัมน์เมื่อจอใหญ่ขึ้น */
@media (min-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr); /* 2 คอลัมน์ */
    }
}





@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ปุ่มปกติ */
.btn-play, .btn-register {
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    text-align: center;
}

.btn-play {
    background-color: blue; /* ปุ่มทางเข้าเล่น */
}

.btn-register {
    background-color: red; /* ปุ่มสมัครสมาชิก */
    animation: blink 1s infinite; /* กระพริบ */
}

/* ปุ่มไลน์ลอย */
/* ปุ่มไลน์ลอย (Floating Button) */
.floating-line-button {
    position: fixed;
    top: 50%; /* จัดให้อยู่ตรงกลางแนวตั้ง */
    right: 20px; /* ติดฝั่งขวา */
    transform: translateY(-50%); /* จัดให้อยู่ตรงกลางสมบูรณ์แบบ */
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.floating-line-button img {
    width: 70px;
    height: 70px;
}

.floating-line-button:hover {
    transform: scale(1.1);
}


header {
    position: fixed;  /* ติดอยู่ด้านบน */
    top: 0;
    left: 0;
    width: 100%;  /* กว้างเต็มจอ */
    background-color: #ffffff; /* ปรับสีพื้นหลังตามต้องการ */
    z-index: 1000; /* ให้แน่ใจว่าอยู่บนสุด */
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* เพิ่มเงาเล็กน้อย */
}

/* ปรับให้เนื้อหาที่เหลือไม่ถูก header ทับ */
body {
    padding-top: 70px; /* ปรับตามความสูงของ header */
}
