body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#splash-loader {
    position: fixed;
    inset: 0;
    background-color: #000000; /* Adjust to match your theme */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#splash-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loader-spinner {
    width: 70px;
    height: 70px;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#startOverlay {
    position: fixed;
    inset: 0;
    /* background: rgba(0, 0, 0, 0.82); */
    background: linear-gradient(
        135deg,
        #0b1f3a 0%,    /* Dark Navy Blue */
        #1a365d 40%,   /* Deep Blue */
        #8b6b1f 80%,   /* Dark Gold */
        #c9a227 100%   /* Rich Golden */
    );
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#startARButton {
    padding: 18px 45px;
    font-size: 22px;
    font-weight: bold;
    border: none;
    border-radius: 35px;
    color: white;
    background: linear-gradient(125deg, #0b1f3a 2%, #1a365d 53%, #c9a227 100%);
    cursor: pointer;
    border: 2px solid #d4af37; /* Gold border */
     box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.25);
}

#startARButton:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.45),
        0 0 12px rgba(201, 162, 39, 0.45); /* Golden glow */
}

#startARButton:active {
    transform: translateY(1px);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.3);
}

.ar-container {
    position: fixed;
    width: 100%;
    height: 100%;
}

.ui-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
}

.logo {
    width: 150px;
    margin-bottom: 5px;
}

.logo img {
    width: 100%;
    height: auto;
}

.tagline {
    color: green;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Hide default A-Frame overlays */
.a-loader-title,
.a-enter-vr-button {
    display: none !important;
}

.scan-message {
    color: white;
    font-size: 20px;
    text-align: center;
}

.tap-to-unmute {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1000;
    cursor: pointer;
    pointer-events: auto;
    display: none;
}

#customUiContainer {
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

#customUiScanning {
    max-width: 125%;
    max-height: 85%;
    width: auto;
    height: auto;
    aspect-ratio: 2 / 3;
}

#scanText {
    margin-top: 15px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    color: white;
    font-weight: 700;
}

.div_btn {
    display: none; 
    position: fixed;
    bottom: 4%;
    width: 90%;
    max-width: 400px;
    z-index: 100;
    border: none;
    border-radius: 12px;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    animation: popup 0.3s ease-out forwards; 
    left: 50%;
    transform: translateX(-50%);
}

.div_btn img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.div_btn:focus,
.div_btn:active {
    outline: none;
}

.div_btn:focus-visible {
    outline: 2px solid transparent;
}

/* Media Queries for responsive buttons */
@media (min-width: 600px) {
    .div_btn {
        width: 60%;
        bottom: 5%;
    }
}

@media (min-width: 1024px) {
    .div_btn {
        width: 40%;
        bottom: 5%;
    }
}