html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Pastikan video & canvas dari MindAR benar-benar menutupi layar penuh.
   transform: none penting supaya transform/scale bawaan MindAR tidak
   menciutkan videonya lagi setelah kita paksa full width/height. */
html body video,
html body canvas,
a-scene {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
    transform: none !important;
}

/* ===== Tombol kontrol zoom & rotasi ===== */
.control-btn {
    width: clamp(44px, 12vw, 56px);
    height: clamp(44px, 12vw, 56px);
    font-size: clamp(18px, 5vw, 22px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.85;
    user-select: none;
    touch-action: none;
    z-index: 999;
}

.control-btn:active {
    opacity: 1;
    transform: scale(0.92);
}

#controls {
    z-index: 999;
    pointer-events: none;
}

#controls .control-btn {
    pointer-events: auto;
}

/* ===== Hotspot HTML overlay ===== */
.hotspot-label {
    position: fixed;
    width: clamp(36px, 10vw, 48px);
    height: clamp(36px, 10vw, 48px);
    border-radius: 50%;
    background: #ff3333;
    color: #fff;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    border: 3px solid white;
    transform: translate(-50%, -50%);
    touch-action: manipulation;
}

.hotspot-label:active {
    background: #cc0000;
    transform: translate(-50%, -50%) scale(0.9);
}

/* ===== Penyesuaian modal Bootstrap agar pas untuk overlay AR ===== */
.modal-content {
    border-radius: 12px;
}

@media (max-width: 480px) {
    .modal-dialog {
        margin: 1rem;
    }
}

/* ===== Isi panel info (Fungsi / Makna Filosofis / Nilai) ===== */
.info-section {
    margin-bottom: 14px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h6 {
    color: #2d7bdb;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.info-section p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #16324f;
}

.info-nilai {
    color: #e2483a;
    font-weight: 600;
}

#backBtn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    padding: 10px 18px;
    border: none;
    border-radius: 25px;
    background: #212529;
    color: white;
    font-size: 16px;
}