﻿/* style.css */
.header {
    background-color: #800000;
    padding: 10px 20px;
    text-align: center;
}
.header img {
    max-width: 200px;
}
.menu {
    display: flex;
    justify-content: center;
    background-color: #990000;
    padding: 10px;
}
.menu a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}
.banner {
    text-align: center;
    padding: 20px;
    background: url('banner.jpg') no-repeat center center;
    background-size: cover;
}
.banner img {
    max-width: 100%;
}
.section {
    padding: 30px 20px;
}
.section h2 {
    color: #ffcc00;
}
.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.card {
    background-color: #222;
    border: 1px solid #555;
    padding: 20px;
    width: 250px;
    text-align: center;
}
.card img {
    max-width: 100%;
    height: auto;
}
.cta {
    text-align: center;
    margin: 30px 0;
}
.cta a {
    background-color: #ffcc00;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}
.faq {
    background-color: #111;
    padding: 30px;
}
.faq h3 {
    color: #ffcc00;
}
.faq div {
    margin: 10px 0;
}
.footer {
    background-color: #222;
    padding: 20px;
    text-align: center;
}
.footer a {
    color: #ffcc00;
    text-decoration: none;
}

body {
    font-family: 'kanit', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url(https://i.pinimg.com/736x/ae/e1/33/aee133e814b0a99d7ea1e995713cbabd.jpg);
    color: #ffffff;
    background-size: inherit;
}

/* Container Layout */
.container {
    display: flex;
}

/* banner highlight */
.highlight-image {
    display: flex;
    justify-content: center; /* จัดให้อยู่กลาง */
    align-items: center;
    max-width: 100%; /* จำกัดความกว้างสูงสุดของ container */
    overflow: hidden;
    padding: 10px; /* เพิ่มพื้นที่รอบรูป */
}

.responsive-image {
    max-width: 100%; /* ทำให้รูปไม่กว้างเกิน container */
    height: auto; /* รักษาสัดส่วนของรูป */
    display: block; /* กำจัด space ด้านล่างรูป */
    border-radius: 10px; /* เพิ่มมุมโค้ง (ถ้าต้องการ) */
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #1e1e1e;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    transform: translateX(0);
}

    .sidebar.active {
        transform: translateX(-100%);
    }

    .sidebar .logo {
        font-size: 24px;
        font-weight: bold;
        color: #ff6f00;
    }

    .sidebar nav ul {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .sidebar nav a {
        text-decoration: none;
        color: #ffffff;
        padding: 10px;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

        .sidebar nav a:hover {
            background-color: #ff6f00;
        }

.top-bar a {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    background-color: #007BFF;
    border-radius: 5px;
    margin: 5px;
}

    .top-bar a:hover {
        background-color: #0056b3;
    }

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    font-size: 30px;
    color: white;
    padding: 10px;
    cursor: pointer;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

/* Main Content */
.content {
    margin-left: 270px;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    width: 100%;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

    .top-bar button {
        border: none;
        background-color: #c50707;
        color: white;
        cursor: pointer;
        display: inline-block;
        padding: 15px 7%;
        font-size: 18px;
        font-weight: bold;
        text-align: center;
        border-radius: 10px;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
        text-decoration: none;
        transition: all 0.3s ease;
    }

.banner {
    background-color: #1e1e1e;
    padding: 10px 20px;
    border-radius: 10px;
    text-align: center;
}

    .banner h2 {
        margin-bottom: 20px;
        color: #ff6f00;
    }

    .banner .cta {
        padding: 10px 20px;
        background-color: #ff6f00;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

.game-section {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
}


.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 4fr); /* เปลี่ยนเป็น 4 คอลัมน์ */
    gap: 20px;
}


.game-card {
    background-color: #2b2b2b;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
    font-weight: bold;
    border: 1px solid #ff6f00;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px 0;
    background-color: #1e1e1e;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.active {
            transform: translateX(0);
        }

    .content {
        margin-left: 0;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .top-bar {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}
/* ส่วน Banner */
.banner {
    text-align: center;
    margin-bottom: 20px;
}

    .banner h2 {
        margin-bottom: 15px;
        color: #ff6f00;
    }

.banner-images {
    display: flex;
    gap: 10px;
    justify-content: center;
}


    .banner-images img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        transition: transform 0.3s ease;
    }

        .banner-images img:hover {
            transform: scale(1.05);
        }

/* ปรับให้เป็นแบบ 1 แถวบนมือถือ */
@media (max-width: 768px) {
    .banner-images {
        flex-direction: column; /* เปลี่ยนจากแถวแนวนอนเป็นแนวตั้ง */
        align-items: center;
    }

        .banner-images a img {
            max-width: 90%; /* ลดขนาดของภาพเพื่อให้พอดีกับหน้าจอ */
        }
}

/* ส่วนเกมยอดนิยม */
.game-section {
    margin-top: 30px;
    text-align: center;
}

.game-grid {
    display: grid;
    gap: 15px;
    justify-items: center;
}

    .game-grid a img {
        width: 100px;
        height: auto;
        border-radius: 10px;
        transition: transform 0.3s ease;
    }

        .game-grid a img:hover {
            transform: scale(1.1);
        }

header {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
}

    header h1 {
        margin: 0;
        font-size: 2.5rem;
        color: #60cf10;
    }

    header img {
        width: 180px;
    }



nav-footer {
    background-color: #222;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    justify-content: center; /* Default center for desktop */
}

    nav-footer a {
        flex: 0 0 auto;
        text-decoration: none;
        color: #fff;
        font-weight: 500;
        padding: 10px 15px;
        margin: 0 5px;
        border-radius: 5px;
    }

        nav-footer a:hover {
            background-color: #60cf10;
            color: #000;
        }
/* Media query for mobile devices */
@media (max-width: 768px) {
    nav-footer {
        justify-content: flex-start; /* Align to the left for mobile */
    }
}

.section {
    max-width: 1366px;
    margin: 15px auto;
    padding: 20px;
    background-color: #7b0202de;
    border: solid;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgb(70 255 246 / 67%);
}

    .section img {
        width: 100%;
        max-width: 600px;
        height: auto;
        margin: 10px 0;
        border-radius: 10px;
    }

    .section h1, .section h2 {
        color: #ffffff;
        text-align: -webkit-center;
    }

footer {
    background-color: #111;
    text-align: center;
    padding: 15px 0;
    margin-left: 270px;
}

    footer p {
        margin: 0;
        color: #fff;
    }

    footer a {
        color: #60cf10;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }

.promotion-block {
    text-align: center;
    margin-bottom: 20px;
}

    .promotion-block img {
        width: 100%;
        max-width: 1200px;
        height: auto;
        border-radius: 10px;
        margin-bottom: 10px;
    }

.blog-home > .elementor-container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 20px;
}

.elementor-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.game-home-grid > .game-container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 20px;
}

.game-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.grid-item {
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: solid;
}

    .grid-item img {
        width: 100%;
        max-width: 150px;
        height: auto;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .grid-item h2 {
        color: #60cf10;
        margin: 10px 0;
    }

    .grid-item p {
        color: #ccc;
    }

#table-of-contents {
    max-width: 70%;
    margin: 0 auto;
    padding: 20px;
    background-color: #222;
    margin-bottom: 20px;
}

    #table-of-contents h2 {
        color: #60cf10;
    }

    #table-of-contents ol {
        list-style-type: decimal;
        padding-left: 20px;
    }

        #table-of-contents ol ol {
            list-style-type: lower-alpha;
        }

            #table-of-contents ol ol ol {
                list-style-type: lower-roman;
            }

    #table-of-contents a {
        color: #60cf10;
        text-decoration: none;
    }

        #table-of-contents a:hover {
            text-decoration: underline;
        }

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.button {
    display: inline-block;
    padding: 15px 13%;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-radius: 25px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
}

.button-login {
    background-color: #ff0b0b;
    color: #000;
    border: none;
}

    .button-login:hover {
        background-color: #ddd;
    }

.button-register {
    background-color: #fff400;
    color: #000;
    border: none;
}

    .button-register:hover {
        background-color: #444;
    }

section#promotion-title {
    text-align: -webkit-center;
}
/* ตั้งค่าเฉพาะบนมือถือ */
@media screen and (max-width: 768px) {
    .button-container-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #111; /* เปลี่ยนสีพื้นหลังถ้าต้องการ */
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* เพิ่มเงาเพื่อแยกจากเนื้อหา */
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        z-index: 9999; /* ทำให้ชั้นอยู่บนสุด */
    }

        .button-container-footer .button {
            text-align: center;
            padding: 10px 13%;
            border-radius: 5px;
            text-decoration: none;
            color: #111;
        }

    .button-login {
        background-color: #ff0b0b;
        color: #FFD700;
        border: none;
    }

    .button-register {
        background-color: #FFD700;
        color: #000;
        border: none;
    }
}

/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #9b0202;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    /* Logo */
    .sidebar .logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .sidebar .logo img {
            width: 40px;
        }

        .sidebar .logo span {
            font-size: 20px;
            font-weight: bold;
        }

    /* Menu */
    .sidebar .menu ul {
        list-style-type: none;
        padding: 0;
    }

        .sidebar .menu ul li {
            margin-bottom: 15px;
        }

            .sidebar .menu ul li a {
                text-decoration: none;
                color: #fff;
                display: flex;
                align-items: center;
                gap: 10px;
                padding: 10px;
                border-radius: 5px;
            }

                .sidebar .menu ul li a:hover {
                    background-color: #333333;
                }

/* Icons */
.icon-home::before {
    content: "🏠";
}

.icon-slot::before {
    content: "🎰";
}

.icon-sport::before {
    content: "⚽";
}

.icon-casino::before {
    content: "🃏";
}

.icon-fish::before {
    content: "🎣";
}

.icon-promo::before {
    content: "🎁";
}

.icon-vip::before {
    content: "♣️";
}

.icon-friend::before {
    content: "👥";
}

.icon-language::before {
    content: "🌐";
}

.icon-contact::before {
    content: "💬";
}

.icon-suggest::before {
    content: "⭐";
}

.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #660000;
    padding: 10px 0;
    z-index: 1000;
    border-top: 3px solid #ffcc00;
}

    .sticky-footer .footer-icon {
        text-align: center;
        color: white;
        font-size: 0.9rem;
    }

        .sticky-footer .footer-icon img {
            width: 40px;
            height: 40px;
            margin-bottom: 5px;
        }

        .sticky-footer .footer-icon p {
            margin: 0;
            color: #ffcc00;
        }