body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #ffffff;
    width: 100vw;
    height: 100vh;
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}

#qr-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 200;
    backdrop-filter: blur(5px);
    max-width: 500px;
    width: 90vw;
}

#qr-code {
    width: 100%;
    height: auto;
    display: block;
}

#qr-label {
    margin-top: 10px;
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.ar-button {
    position: absolute;
    top: 20px;
    right: 20px;
    /* Removed translate transform as top-right needs no centering translation */
    padding: 12px 30px;
    background: #1a73e8;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(26, 115, 232, 0.2);
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ar-button:hover {
    background: #1558b0;
    box-shadow: 0 6px 10px rgba(26, 115, 232, 0.4);
    transform: translateY(-2px);
    /* Only vertical movement */
}

@media (max-width: 768px) {
    .ar-button {
        padding: 12px 24px;
        font-size: 14px;
        top: auto;
        bottom: 30px;
        right: auto;
        left: 50%;
        width: auto;
        min-width: 200px;
        max-width: 80%;
        text-align: center;
        transform: translateX(-50%);
    }

    .ar-button:hover {
        transform: translate(-50%, -2px);
    }

    #qr-container {
        display: none;
        /* Optionally hide QR on mobile since they are already on mobile */
    }
}