/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

body {
    margin: 0px;
    overflow: hidden;
    background-color: #ebebeb;    
}

noscript {
    display: block;
    text-align: center;
    padding-top: 100px;
    font-size: 20px;
}

.v3d-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.fullscreen-button {
    width: 36px;
    height: 36px;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
}

.fullscreen-open {
    background-image: url('expand.png');
}

.fullscreen-close {
    background-image: url('expand.png');
}

/* removes tap blinking on ios devices */
* { -webkit-tap-highlight-color:rgba(0,0,0,0); }

/* Minimal UI to match index.html aesthetic */
.ui-toolbar {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    z-index: 10;
}

.ui-btn {
    appearance: none;
    border: 1px solid #e5e7eb; /* gray-200 */
    background-color: #ffffff;
    color: #374151; /* gray-700 */
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 50ms ease;
}

.ui-btn:hover { background-color: #f9fafb; /* gray-50 */ }
.ui-btn:active { transform: translateY(1px); }

.ui-icon {
    width: 24px;
    height: 24px;
    pointer-events: none;
    user-select: none;
}

#enter-inside-btn .ui-icon {
    width: 28px;
    height: 28px;
}

/* Ocultar botones "Cambiar Dimensiones" y "Abrir" */
#changeDimensionsBtn,
button[title="Abrir"] {
    display: none !important;
}

/* Pop-up de instrucciones para hacer click en el suelo */
.floor-popup {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: none; /* Oculto por defecto, se mostrará con JavaScript */
}

.floor-popup-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    backdrop-filter: blur(8px);
    animation: fadeInDown 0.3s ease-out;
}

.floor-popup-text {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #374151; /* gray-700 */
    text-align: center;
    white-space: nowrap;
}

/* Animación de entrada */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Animación de salida */
.floor-popup.fade-out {
    animation: fadeOutUp 0.3s ease-in forwards;
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}
