div#container
{
   width: 1000px;
   position: relative;
   margin: 0 auto 0 auto;
   text-align: left;
}
body
{
   background-color: #7F7F7F;
   background-image: url('https://images.unsplash.com/photo-1628863353691-0071c8c1874c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w2ODk0MXwwfDF8c2VhcmNofDV8fGNoZW1pY2FsfGVufDB8fHx8MTc3MjAwOTIwNHww&ixlib=rb-4.1.0&q=80&w=1080');
   background-attachment: fixed;
   background-position: center center;
   background-repeat: no-repeat;
   color: #000000;
   font-family: Arial;
   font-weight: normal;
   font-size: 13px;
   line-height: 1.1875;
   margin: 0;
   text-align: center;
}
#MenuBar1
{
   background-color: transparent;
   border: 0px solid #FFFFFF;
   border-radius: 5px;
}
.MenuBar1SubMenu
{
   background-color: transparent;
   border: 1px solid #C5C5C5;
   position:	absolute;
   visibility: hidden;
   overflow: visible;
   z-index: 100;
}
.MenuBar1SubMenuTable
{
   cursor: default;
   border: 0;
   padding: 0;
}
.MenuBar1SubMenuTable tr
{
   margin: 0;
   padding: 0;
}
.MenuBar1Menu
{
   background-color: transparent;
   margin: 2px 0 2px 2px;
   padding: 0;
}
.MenuBar1MenuOuter
{
   background-color: transparent;
   border: 0px solid #FFFFFF;
}
.MenuBar1Menu tr
{
   margin: 0;
   padding: 0;
}
.MenuBar1MainItem .MenuBar1MainItemLeft,
.MenuBar1MainItem .MenuBar1MainFolderLeft
{
   width: 0px;
   cursor: pointer;
   border-width: 0;
   text-align: center;
   padding: 3px 0 3px 0;
   font-size: 1px;
}
.MenuBar1MainItem .MenuBar1MainItemText, 
.MenuBar1MainItem .MenuBar1MainItemText a,
.MenuBar1MainItem .MenuBar1MainFolderText,
.MenuBar1MainItem .MenuBar1MainFolderText a
{
   background-color: #F6F6F6;
   color: #454545;
   font-size: 13px;
   font-family: Arial;
   font-weight: normal;
   font-style: normal;
   line-height: 16px;
   text-align: center;
   text-decoration: none;
   text-transform: none;
   white-space: nowrap;
   margin: 0;
   cursor: pointer;
   border-bottom: 2px solid #C5C5C5;
   border-right: 2px solid #C5C5C5;
   border-top: 2px solid #C5C5C5;
   border-left: 2px solid #C5C5C5;
   border-top-left-radius: 5px;
   border-bottom-left-radius: 5px;
   border-top-right-radius: 5px;
   border-bottom-right-radius: 5px;
   padding: 3px 40px 3px 10px;
   vertical-align: middle;
}
.MenuBar1MainItem .MenuBar1MainItemRight,
.MenuBar1MainItem .MenuBar1MainFolderRight
{
   width: 0px;
   cursor: pointer;
   border-width: 0;
   padding: 3px 0 3px 0;
   font-size: 1px;
}
.MenuBar1MainItemHover .MenuBar1MainItemLeft,
.MenuBar1MainItemActive .MenuBar1MainItemLeft,
.MenuBar1MainItemHover .MenuBar1MainFolderLeft,
.MenuBar1MainItemActive .MenuBar1MainFolderLeft
{
   width: 0px;
   cursor: pointer;
   border-width: 0;
   padding: 3px 0 3px 0;
   font-size: 1px;
}
.MenuBar1MainItemHover .MenuBar1MainItemText,
.MenuBar1MainItemActive .MenuBar1MainItemText,
.MenuBar1MainItemHover .MenuBar1MainItemText a,
.MenuBar1MainItemActive .MenuBar1MainItemText a,
.MenuBar1MainItemHover .MenuBar1MainFolderText,
.MenuBar1MainItemActive .MenuBar1MainFolderText,
.MenuBar1MainItemHover .MenuBar1MainFolderText a,
.MenuBar1MainItemActive .MenuBar1MainFolderText a
{
   background-color: #87CEFA;
   color: #2B2B2B;
   font-size: 13px;
   font-family: Arial;
   font-weight: normal;
   font-style: normal;
   line-height: 16px;
   text-align: center;
   text-decoration: none;
   text-transform: none;
   white-space: nowrap;
   margin: 0;
   cursor: pointer;
   border-bottom: 0px solid #CCCCCC;
   border-right: 0px solid #CCCCCC;
   border-top: 0px solid #CCCCCC;
   border-left: 0px solid #CCCCCC;
   border-top-left-radius: 5px;
   border-bottom-left-radius: 5px;
   border-top-right-radius: 5px;
   border-bottom-right-radius: 5px;
   padding: 5px 42px 5px 12px;
   vertical-align: middle;
}
.MenuBar1MainItemHover .MenuBar1MainItemRight,
.MenuBar1MainItemActive .MenuBar1MainItemRight,
.MenuBar1MainItemHover .MenuBar1MainFolderRight,
.MenuBar1MainItemActive .MenuBar1MainFolderRight
{
   width: 0px;
   cursor: pointer;
   border-width: 0;
   padding: 3px 0 3px 0;
   font-size: 1px;
}
.MenuBar1MenuItem .MenuBar1MenuItemLeft,
.MenuBar1MenuItem .MenuBar1MenuFolderLeft
{
   width: 0px;
   cursor: pointer;
   border-width: 0;
   text-align: center;
   padding: 3px 0 3px 0;
   font-size: 1px;
}
.MenuBar1MenuItem .MenuBar1MenuItemText, 
.MenuBar1MenuItem .MenuBar1MenuItemText a,
.MenuBar1MenuItem .MenuBar1MenuFolderText,
.MenuBar1MenuItem .MenuBar1MenuFolderText a
{
   background-color: #F6F6F6;
   color: #454545;
   font-size: 13px;
   font-family: Arial;
   font-weight: normal;
   font-style: normal;
   text-align: left;
   text-decoration: none;
   text-transform: none;
   line-height: 16px;
   white-space: nowrap;
   margin: 0;
   cursor: pointer;
   border-bottom: 0px solid #C5C5C5;
   border-top: 0px solid #C5C5C5;
   border-right: 0px solid #C5C5C5;
   border-left: 0px solid #C5C5C5;
   padding: 3px 10px 3px 10px;
   vertical-align: middle;
}
.MenuBar1MenuItem .MenuBar1MenuItemRight,
.MenuBar1MenuItem .MenuBar1MenuFolderRight
{
   width: 0px;
   cursor: pointer;
   border-width: 0;
   padding: 3px 0 3px 0;
   font-size: 1px;
}
.MenuBar1MenuItemHover .MenuBar1MenuItemLeft, 
.MenuBar1MenuItemActive .MenuBar1MenuItemLeft,
.MenuBar1MenuItemHover .MenuBar1MenuFolderLeft,
.MenuBar1MenuItemActive .MenuBar1MenuFolderLeft
{
   width: 0px;
   cursor: pointer;
   border-width: 0;
   padding: 3px 0 3px 0;
   font-size: 1px;
}
.MenuBar1MenuItemHover .MenuBar1MenuItemText,
.MenuBar1MenuItemActive .MenuBar1MenuItemText,
.MenuBar1MenuItemHover .MenuBar1MenuItemText a,
.MenuBar1MenuItemActive .MenuBar1MenuItemText a,
.MenuBar1MenuItemHover .MenuBar1MenuFolderText,
.MenuBar1MenuItemActive .MenuBar1MenuFolderText,
.MenuBar1MenuItemHover .MenuBar1MenuFolderText a,
.MenuBar1MenuItemActive .MenuBar1MenuFolderText a
{
   background-color: #7FFFD4;
   color: #2B2B2B;
   font-size: 13px;
   font-family: Arial;
   font-weight: normal;
   font-style: normal;
   line-height: 16px;
   text-align: left;
   text-decoration: none;
   text-transform: none;
   white-space: nowrap;
   margin: 0;
   cursor: pointer;
   border-bottom: 0px solid #CCCCCC;
   border-top: 0px solid #CCCCCC;
   border-right: 0px solid #CCCCCC;
   border-left: 0px solid #CCCCCC;
   padding: 3px 10px 3px 10px;
   vertical-align: middle;
}
.MenuBar1MenuItemHover .MenuBar1MenuItemRight,
.MenuBar1MenuItemActive .MenuBar1MenuItemRight,
.MenuBar1MenuItemHover .MenuBar1MenuFolderRight,
.MenuBar1MenuItemActive .MenuBar1MenuFolderRight
{
   width: 0px;
   cursor: pointer;
   border-width: 0;
   padding: 3px 0 3px 0;
   font-size: 1px;
}
.MenuBar1SubMenu td,
.MenuBar1Menu td,
.MenuBar1Menu tr
{
   vertical-align: middle;
}
.MenuBar1MainItem .firstChild,
.MenuBar1MainItemHover .firstChild
{
   border-top-left-radius: 5px;
   border-bottom-left-radius: 5px;
}
.MenuBar1MainItem .lastChild,
.MenuBar1MainItemHover .lastChild
{
   border-top-right-radius: 5px;
   border-bottom-right-radius: 5px;
}
.MenuBar1MenuSplitText div
{
   height: 1px;
   padding: 0;
   background-color: #454545;
   overflow: hidden;
}
.MenuBar1MenuItem .MenuBar1MenuSplitLeft
{
   height: 7px;
   padding: 0;
}
.MenuBar1MenuItem .MenuBar1MenuSplitText
{
   background-color: #F6F6F6;
   height: 7px;
   padding: 0 6px 0 6px;
}
.MenuBar1MenuItem .MenuBar1MenuSplitRight
{
   height: 7px;
   padding: 0;
}
.MenuBar1MainSplitText div
{
   background-color: #454545;
   height: 1px;
   padding: 0;
   overflow: hidden;
}
.MenuBar1MainItem .MenuBar1MainSplitLeft 
{
   height: 7px;
   padding: 0;
}
.MenuBar1MainItem .MenuBar1MainSplitText
{
   background-color: #F6F6F6;
   height: 7px;
   padding: 0;
}
.MenuBar1MainItem .MenuBar1MainSplitRight
{
   height: 7px;
   padding: 0;
}
.MenuBar1MainItem
{
   vertical-align: middle;
}
.MenuBar1HorizontalSplit
{
   border-right: 0 solid #8080FF;
   border-left: 0 solid #8080FF;
   width: 55px;
   background-color: #F6F6F6;
   padding: 3px 0 3px 0;
   vertical-align: middle;
   text-align: center;
   text-decoration: none;
   color: #454545;
   font-size: 13px;
   font-family: Arial;
   font-style: normal;
}
.MenuBar1MainItem, .MenuBar1MainItemHover, .MenuBar1MainItemActive,
.MenuBar1MenuItem, .MenuBar1MenuItemHover, .MenuBar1MenuItemActive
{
   white-space: nowrap;
}
.MenuBar1SpacerDiv
{
   background: transparent;
   margin: 0;
   padding: 0;
   border: 0;
   font-size: 1px;
}
#wb_MenuBar1
{
}
#wb_MenuBar1:hover
{
   z-index: 1111 !important;
}
#Html1
{
   position: absolute;
   left: 0px;
   top: 2px;
   width: 100%;
   height: 74px;
   z-index: 1;
}
#wb_MenuBar1
{
   position: absolute;
   left: 4px;
   top: 2px;
   width: 360px;
   height: 30px;
   z-index: 2;
}
@media only screen and (max-width: 999px)
{
div#container
{
   width: 360px;
}
body
{
   background-color: #7F7F7F;
   background-image: url('https://images.unsplash.com/photo-1553413077-190dd305871c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w2ODk0MXwwfDF8c2VhcmNofDJ8fHdhcmVob3VzZXxlbnwwfHx8fDE3NzIwMTQyMDd8MA&ixlib=rb-4.1.0&q=80&w=1080');
   background-attachment: fixed;
   background-position: center center;
   background-repeat: no-repeat;
}
#BuildWith1
{
   left: 0px;
   top: 720px;
   width: 88px;
   height: 31px;
   visibility: visible;
   display: inline;
}
#Html1
{
   left: 0px;
   top: 3px;
   width: 360px;
   height: 112px;
   visibility: visible;
   display: inline;
}
#wb_MenuBar1
{
   left: 0px;
   top: 3px;
   width: 360px;
   height: 30px;
   visibility: visible;
   display: inline;
   margin: 0;
}
}
        body {
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            min-height: 100vh;
            background-color: #b2d8d8;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        /* คลาสพิเศษสำหรับล็อคการ Scroll บน iOS เมื่อเปิดเต็มจอ */
        body.is-ios-fs-open {
            overflow: hidden !important;
            position: fixed;
            width: 100%;
        }

        .container {
            position: relative;
            width: 95%;
            max-width: 1200px;
            height: 80vh;
            margin-top: 30px;
            background: white;
            border: 1px solid #ccc;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        /* --- ปุ่ม Exit ดีไซน์ใหม่ วางไว้มุมล่างซ้าย --- */
        .exit-button {
            display: none;
            position: fixed;
            bottom: 20px;
            left: 20px;
            z-index: 10000;
            padding: 12px 20px;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 8px;
            font-weight: bold;
            font-size: 10px;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0,0,0,0.4);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            transition: all 0.2s;
        }

        .exit-button:active {
            transform: scale(0.85);
            background: rgba(255, 77, 77, 0.9);
        }

        /* แสดงปุ่มเมื่ออยู่ในโหมด Full Screen */
        .container:fullscreen .exit-button,
        .container:-webkit-full-screen .exit-button,
        .container.fallback-fullscreen .exit-button {
            display: block;
        }

        /* Fallback สำหรับ Safari iPhone (iOS) - ปรับปรุงใหม่ */
        .fallback-fullscreen {
            position: fixed !important;
            top: 0 !important; 
            left: 0 !important;
            width: 100vw !important; 
            height: 100dvh !important; /* ใช้ dvh เพื่อให้พอดีกับพื้นที่จอที่เหลือจากแถบ Safari */
            max-width: none !important; 
            margin: 0 !important;
            border-radius: 0 !important; 
            z-index: 9999;
            background: white;
        }

        .top-bar {
            width: 100%;
            padding: 10px 15px;
            background: #ffffff;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
            box-sizing: border-box;
        }

        .fs-button {
            padding: 8px 16px;
            background: #008080;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
        }

        iframe {
            flex-grow: 1;
            width: 100%;
            height: 100%;
            border: none;
        }

        /* ซ่อน Top Bar เมื่อเต็มจอ */
        .container:fullscreen .top-bar,
        .container:-webkit-full-screen .top-bar,
        .container.fallback-fullscreen .top-bar {
            display: none;
        }
    