/* สไตล์ทั่วไป */
body {
    font-family: 'Noto Sans Thai Looped', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}


/* พื้นที่สำหรับไอคอน */
.parent-container {
    position: fixed;
    bottom: 20px; /* ระยะห่างจากด้านล่าง */
    right: 20px; /* ระยะห่างจากด้านขวา */
    z-index: 1000; /* ให้ไอคอนอยู่ด้านบน */
}

/* ไอคอนเมนู */
.menu-toggle {
    cursor: pointer;
}

.menu-toggle img {
    width: 120px; /* ขนาดของไอคอน */
    height: 50px; /* ขนาดของไอคอน */
}

.floating-menu {
    display: none;
    /* ซ่อนเมนูเริ่มต้น */
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    bottom: 120px;
    right: 0;

    transform: translateX(100%);

    transition: transform 0.5s ease;

}

.floating-menu.show {
    display: block;
    /* แสดงเมนูเมื่อมีคลาส show */
    transform: translateX(0);
    /* เลื่อนกลับมาที่ตำแหน่งเริ่มต้น */
}
/* สไตล์สำหรับลิงก์ในเมนู */
.floating-menu a {
    display: flex;
    align-items: center;
    margin: 5px 0;
    text-decoration: none;
    color: #333;
}

.floating-menu img {
    width: 24px; /* ขนาดของไอคอนในเมนู */
    height: 24px; /* ขนาดของไอคอนในเมนู */
}

/* ฟองความคิด */
.thought-bubble {
    position: absolute;
    bottom: 70px; /* ระยะห่างจากด้านล่าง */
    right: 0; /* จัดให้อยู่ด้านขวา */
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    /*visibility: hidden;*/
    /*transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;*/
}

.thought-bubble.active {
    opacity: 1;
    /*visibility: visible;*/
}



/*////////////////////////////////////////////////////////////////////////////////////*/


* {
    padding: 0;
    box-sizing: border-box;
}
a{
        color: rgb(0, 0, 0);
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: linear-gradient(to right, #354880, #E6E6FA, #dfbd4d);
    padding: 10px;
    position: fixed;
    width: 100%;
    z-index: 3000;
    top: 0px;
}
.logoinmenu img {
    max-width: 130px;
    height: auto;
}

/* เมนูหลัก */
.navbar-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-item {
    margin: 0 15px;
}
#business-menu_business{
    padding: 10px 15px;
    display: block;
    text-align: center;
}

.nav-link,
.dropdown-item {
    color: rgb(0, 0, 0);
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}

.nav-link:hover,
.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Dropdown */
.nav-item.dropdown {
    position: relative;
}

/* Dropdown */
.allmenu.active {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    display: none;
    min-width: 300px;
    max-width: 90vw;
    /* ไม่ให้ dropdown กว้างเกิน 90% ของหน้าจอ */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    white-space: normal;
    word-wrap: break-word;
    padding: 10px 0;

    /* ทำให้ dropdown มีความสูงสูงสุดและเลื่อนได้ */
    max-height: 300px;
    /* ปรับความสูงตามต้องการ */
    overflow-y: auto;
    /* เพิ่มแถบเลื่อนเมื่อเนื้อหายาวเกิน */
}

/* ปรับแต่งแถบเลื่อนให้ดูสวย */
.dropdown-menu::-webkit-scrollbar {
    width: 8px;
    /* กำหนดขนาด scrollbar */
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #444;
    /* สีพื้นหลังของ scrollbar */
    border-radius: 5px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #888;
    /* สี scrollbar */
    border-radius: 5px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* สี scrollbar เมื่อ hover */
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* ทำให้ dropdown ไม่หลุดขอบขวาของจอ */
@media (max-width: 1024px) {
    .dropdown-menu {
        position: static;
        max-width: 100%;
        /* ทำให้ dropdown ขยายเต็มที่แต่ไม่เกินหน้าจอ */
        left: auto;
        right: 0;
        /* ทำให้ dropdown ไม่เลยขอบขวา */
        top: 0px;
    }
    
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* ปุ่ม Toggle สำหรับ Mobile */
.navbar-toggler {
    display: none;
    background-color: #444;
    color: white;
    border: none;
    font-size: 18px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.navbar-toggler:focus {
    outline: none;
}

/*/////////////////////////////////////////////////////////////////////////////////////*/   
.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    padding: 12px;
    cursor: pointer;
}

.dropdown_business {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 800px;
    padding: 20px;
    border-radius: 8px;
    display: none;
    flex-direction: row;
    gap: 25px;
}

.dropdown-column_business {
    display: flex;
    flex-direction: column;
    width: 33%;
}

.dropdown-title_business {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #444;
}

.dropdown-item_business {
    display: flex;
    align-items: center;
    padding: 12px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

.dropdown-item_business:hover {
    background-color: #f0f0f0;
}

.column2_business, .column4_business {
    display: none;
}

.dropdown_business.show {
    display: flex;
}

.column2_business.show, .column4_business.show {
    display: flex;
}    


.user-info{
    background-color: #e1c980;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
}

.non-user{
    display: flex;
        flex-direction: column-reverse;
        gap: 10px;
        align-items: center;
        
}

.register-text {
    color: rgb(14 7 7 / 50%); /* สีทอง */
    transition: color 0.02s ease-in-out; /* เพิ่มเอฟเฟกต์เปลี่ยนสีอย่างนุ่มนวล */
}
.register-text-text {
    color: rgb(14 7 7 / 50%);
    font-weight: bold;
    transition: color 0.02s ease-in-out;
    font-size: 13px;
}
.register-text:hover {
    color: #f6f4f4; /* เปลี่ยนเป็นสีขาวเมื่อ hover */
}

.login-text {
    color: #ffffff;
    font-style: italic;
}

/*//////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
.parent-container {
    position: relative;
}

/* All Menu */
.allmenu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Thought Bubble */
.thought-bubble {
    background-color: #fff;
    border-radius: 15px;
    padding: 10px 15px;
    position: absolute;
    bottom: 70px;
    /* ปรับตำแหน่งตามต้องการ */
    right: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    /* เริ่มต้นที่ซ่อน */
    /*visibility: hidden;*/
    /* เริ่มต้นที่ซ่อน */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Menu Toggle */
.menu-toggle {
    cursor: pointer;
}

.menu-toggle img {
    max-width: 100px;
    /* ปรับขนาดโลโก้ตามต้องการ */
    height: auto;
    border-radius: 10px;
    transition: opacity 0.3s;
    /* ทำมุมให้โค้ง */
}

/* Links in Floating Menu */
.floating-menu a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.floating-menu a img {
    max-width: 20px;
    /* ปรับขนาดไอคอน */
    margin-right: 10px;
    /* ระยะห่างระหว่างไอคอนกับข้อความ */
}

.floating-menu a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    /* สีพื้นหลังเมื่อ hover */
}

/* Active Menu Style */
.allmenu.active {
    transform: translateY(0);
    /* แสดงเมนู */
    transition: transform 0.3s ease-in-out;
}

.overlay {
    display: none;
    /* ซ่อน overlay */
}

/* เมื่อแสดงเมนู */
.allmenu.active .overlay {
    display: block;
    /* แสดง overlay เมื่อ active */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* สีพื้นหลัง overlay */
    z-index: 999;
    /* อยู่ด้านบนสุด */
}
.dropdown-item {
    color: #000000;
}
/* Responsive */
@media (min-width: 340px) and (max-width: 767px) {
    .navbar {
        height: 100px;
    }
    .navbar-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #222;
        padding: 10px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    .nav-link{
        color: #ffffff;
    }
    .dropdown-item {
        color: #000000;
    }
    .navbar-nav.show {
        gap: 2px;
        margin-top: 0px;
        display: flex;
        top: 100px;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }

    .nav-link {
        display: block;
        padding: 15px;
        font-size: 18px;
    }

    .navbar-toggler {
        display: block;
    }

    .user-info {
        padding: 5px;
        font-size: 12px;
    }

    .dropdown_business {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .dropdown-column_business {
        width: 100% !important;
    }

    .dropdown_business.show {
        top: 0px;
        width: 100%;
        flex-direction: column;
    }

    .dropdown-menu show {
        top: 0px;
        width: 100%;
        height: 100%;
        flex-direction: column;
    }
    a{
        color: #ffffff;
    }
    #business-menu_business{
    padding: 15px;
    font-size: 15px;
    width: 100%;
    text-align: center;
    }
    .non-user {
        display: flex;
        flex-direction: column-reverse;
        gap: 0px;
        align-items: center;    
    }
}
/* Responsive */
@media (min-width: 768px) and (max-width: 1024px) {
    .navber{
        justify-content: center;
    }
    .navbar-toggler.text-white {
        color: white !important;
        margin-left: 200px;
        margin-right: 200px;
    }
    .navbar-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #222;
        padding: 10px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-link,
    .dropdown-item {
        color: #ffffff;
    }

    .navbar-nav.show {
        margin-top: 0px;
        display: flex;
        top: 150px;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }

    .nav-link {
        display: block;
        padding: 15px;
        font-size: 18px;
    }

    .navbar-toggler {
        display: block;
    }

    .user-info {
        padding: 5px;
        font-size: 16px;
    }

    .dropdown_business {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .dropdown-column_business {
        width: 100% !important;
    }

    .dropdown_business.show {
        top: 0px;
        width: 100%;
        flex-direction: column;
    }

    .dropdown-menu show {
        top: 0px;
        width: 100%;
        height: 100%;
        flex-direction: column;
        
    }

    a {
        color: #ffffff;
    }
}
.language-switcher {
    display: flex; /* ใช้ Flexbox เพื่อจัดเรียงปุ่มในแถว */
    justify-content: center; /* จัดกลางปุ่มในแนวนอน */
    margin: 20px 0; /* กำหนดระยะห่างด้านบนและล่าง */
}

.language-button {
    background-color: transparent; /* ไม่มีสีพื้นหลัง */
    border: none; /* ไม่มีขอบ */
    cursor: pointer; /* เปลี่ยนเคอร์เซอร์เมื่อชี้ไปที่ปุ่ม */
    margin: 0 10px; /* กำหนดระยะห่างระหว่างปุ่ม */
    transition: transform 0.3s; /* ทำให้ปุ่มเคลื่อนไหวเมื่อ hover */
}

.language-button:hover {
    transform: scale(1.1); /* ขยายขนาดปุ่มเมื่อชี้ไปที่ */
}

.language-button img {
    width: 30px; /* กำหนดความกว้างของภาพธง */
    height: auto; /* ความสูงจะปรับตามสัดส่วน */
}