body {
            margin: 0;
            overflow: hidden;
            background-color: black;
        }

        #game-title {
            position: fixed;
            top: 20%;
            left: 50%;
            transform: translateX(-50%);
            /* Center horizontally */
            width: 320px;
            /* Fit 75% of screen width */
            height: auto;
            /* Maintain aspect ratio */
            z-index: 5;
            /* Below video but above AR content */
            opacity: 1;
            /* Initially invisible for fade-in */
            transition: opacity 0.5s ease;
            /* Smooth fade animation */
        }

        #frameHints {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 50%;
        }

        .arjs-loader {
            height: 100%;
            width: 100%;
            position: absolute;
            top: 0;
            left: 0;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 10px;
        }

        .arjs-loader div {
            text-align: center;
            font-size: 1.25em;
            color: white;
        }

        #center-container {
            position: absolute;
            display: block;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-image: src("");
            background-color: rgb(239 245 235);
            z-index: 5;
        }

        #myButton {
            width: 120px;
            background: transparent;
            border: none;
            cursor: pointer;
        }

        #myButtonEN {
            width: 120px;
            background: transparent;
            border: none;
            cursor: pointer;
        }

        #myButtonSC {
            width: 120px;
            background: transparent;
            border: none;
            cursor: pointer;
        }

        #landingPage {
            position: fixed;
            bottom: -5%;
            left: 0;
            width: 100vw !important;
            height: 100vh !important;
            object-fit: cover !important;
            transform: none !important;
            display: block;
            /* Hidden initially */
        }

        #startBtn {
            width: 100%;
            /* height: 100%; */
            vertical-align: middle;
        }

        .loading-dots {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .loading-dots div {
            width: 10px;
            height: 10px;
            margin: 0 4px;
            background-color: #3498db;
            border-radius: 50%;
            animation: bounce 1.4s infinite ease-in-out both;
        }

        .loading-dots div:nth-child(1) {
            animation-delay: -0.32s;
        }

        .loading-dots div:nth-child(2) {
            animation-delay: -0.16s;
        }

        .loading-dots div:nth-child(3) {
            animation-delay: 0s;
        }

        @keyframes bounce {

            0%,
            80%,
            100% {
                transform: scale(0);
            }

            40% {
                transform: scale(1);
            }
        }

        #captureBtn {
            display: none;
            position: fixed;
            bottom: 1%;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            /* ← adjust size to match your photo.png */
            height: 80px;
            /* make it square or match image aspect */
            background: transparent;
            /* no background needed for image button */
            border: none;
            padding: 0;
            cursor: pointer;
            z-index: 1000;
            /* optional: slight shadow or glow for better visibility */
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
        }

        #captureBtn:active {
            transform: translateX(-50%) scale(0.92);
            /* subtle press effect */
            opacity: 0.85;
        }

        #home_title {
            width: 180px;
            margin: 0 auto;
        }

        button {
            outline: none;
            /* Remove focus outline */
            -webkit-tap-highlight-color: transparent;
            /* Remove iOS tap highlight */
            -webkit-appearance: none;
            /* Remove default button styling */
            -moz-appearance: none;
            /* For cross-browser consistency */
            appearance: none;
            /* Standard property */
            border: none;
            /* Remove default border */
            background: #007bff;
            /* Example background */
            color: white;
            /* Example text color */
            padding: 10px 20px;
            cursor: pointer;
            /* Maintain pointer cursor */
            touch-action: manipulation;
            /* Optimize touch behavior */
        }

        /* Ensure no effect on active or focus states */
        button:focus,
        button:active {
            outline: none;
            box-shadow: none;
            /* Remove any shadow */
            background: #007bff;
            /* Keep consistent background */
            border: none;
            /* Keep consistent border */
        }

        /* === NEW STYLES FOR CAPTURE PREVIEW === */
        .capture-preview-container {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 10001;
            padding: 15px;
            box-sizing: border-box;
            touch-action: auto;
        }

        .capture-frame {
            padding: 14px;
            background: #ffffff;
            border-radius: 14px;
            box-shadow: 0 12px 45px rgba(0, 0, 0, 0.75);
            max-width: 92vw;
            max-height: 65vh;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .capture-img {
            width: auto;
            height: auto;
            max-width: 90vw;
            max-height: 60vh;
            object-fit: contain;
            display: block;
            border-radius: 6px;
            pointer-events: auto;
        }

        .capture-message {
            margin-top: 18px;
            text-align: center;
            font-size: 15px;
            color: #eeeeee;
            padding: 0 10px;
        }

        .capture-close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background: #3d68aa;
            color: #ffffff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            font-weight: 300;
            z-index: 10001;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.2s ease;
        }

        .capture-close-btn::before,
        .capture-close-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 25px;
            height: 5px;
            background: #fff;
            border-radius: 1px;
        }
        .capture-close-btn::before {
        transform: translate(-50%, -50%) rotate(45deg);
        }
        .capture-close-btn::after {
        transform: translate(-50%, -50%) rotate(-45deg);
        }

        .capture-close-btn:active {
            background: rgba(255, 255, 255, 0.25);
        }

        #notice-container{
            width: 100%;
            height: 100%;
            background-color: black;
            z-index: 99999;
            position: absolute;
            display: none;
        }

        #notice_page{
            position: absolute;
            display: block;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            TEXT-ALIGN: center;
            font-size: 15px;
            width: 100%;
            color: white;
        }

        #whiteScreen {
            background-color: black;
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 10;
            transition: opacity 0.1s ease;
            opacity: 0;
            display: none;
        }

        #switchCameraBtn {
            position: fixed;
            bottom: 15px;
            left: 15px;
            width: 50px;
            height: 50px;
            background: rgba(0, 0, 0, 0);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 24px;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            cursor: pointer;
            /* box-shadow: 0 2px 8px rgba(0,0,0,0.3); */
            transition: all 0.2s ease;
        }

        #switchCameraBtn:active {
            transform: scale(0.9);
            background: rgba(0, 0, 0, 0.8);
        }

        .language-selector {
            position: absolute;
            width: 100%;
            height: 100%;
            align-content: center;
            display: grid;
            grid-template-rows: auto auto auto;
            gap: 80px;
            justify-content: center;
            align-items: center;
            text-align: center;
            min-height: 100vh;
        }

        .language-selector2 {
            width: 100%;
            align-content: center;
            display: grid;
            grid-template-rows: auto auto auto;
            gap: 10px;
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        .lang-option {
            padding: 10px 20px;
            font-size: 18px;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s ease;
            color: #333;
        }

        #textbox {
            max-width: 500px;
            transition: opacity 0.5s ease-in-out;

            position: fixed;
            top: 11%;
            left: 50%;
            transform: translateX(-50%);
            width: 220px;
            height: auto;
            z-index: 15;
            opacity: 0;
        }
        #fullscreen-video {
            position: absolute;
            bottom: 70px;
            left: 0;
            width: 100vw;
            height: auto;
            object-fit: cover; /* Covers the screen without distortion */
            z-index: 101; /* Above title and AR content */
            display: none; /* Hidden initially */
        }

        iframe{
            z-index:-10 !important;
            width: 0px !important;
        }