body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000;
    cursor: grab; /* Default cursor for dragging */
}

body.grabbing {
    cursor: grabbing; /* When actively dragging */
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#scene-container.floor-indicator-visible {
    cursor: none; /* Hide cursor when floor indicator is visible */
}

#scene-container.media-hover {
    cursor: pointer; /* Change to pointer on media hover */
}

.hidden {
    display: none !important;
}

.material-selector {
    position: fixed;
    left: 80px;
    top: 20px;
    transform: translateX(-20px);
    opacity: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    border-radius: 0;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 280px;
    pointer-events: none;
    touch-action: auto; /* Enable all touch actions */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.material-selector.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

#config-panel {
    display: none;
}

.config-panel-header {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.config-panel-content {
    padding: 20px;
}

/* Style for section titles */
.config-panel-content h3 {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Style for sections */
.config-panel-content section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.config-panel-content section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Style for material buttons */
.material-button {
    width: 100%;
    padding: 8px;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.material-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.material-button.active {
    background: rgba(255, 255, 255, 0.9);
    color: rgba(0, 0, 0, 0.45);
}

/* Style for image count controls */
.image-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.image-count-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.image-count-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.image-count-display {
    font-size: 14px;
    min-width: 30px;
    text-align: center;
}

.interaction-prompt {
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(23, 25, 30, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 0;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.art-prompt {
    opacity: 0;
}

#scene-container.media-hover .art-prompt {
    opacity: 1;
}

.nav-arrow {
    opacity: 0;
    pointer-events: none;
    display: flex !important;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(23, 25, 30, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 28px;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-arrow.left-arrow {
    left: 30px;
}

.nav-arrow.right-arrow {
    right: 30px;
}

.nav-arrow:hover {
    background: rgba(23, 25, 30, 0.95) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-50%) scale(1.1);
}

/* Add mobile-friendly adjustments */
@media (max-width: 768px) {
    .nav-arrow {
        padding: 12px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 24px !important;
    }
    
    .left-arrow {
        left: 15px !important;
    }
    
    .right-arrow {
        right: 15px !important;
    }
}

/* Add styles for the artwork info box */
.artwork-info {
    position: fixed;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(23, 25, 30, 0.85);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 0;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: auto;
    max-width: 500px;
    text-align: center;
    pointer-events: none;
}

.artwork-info.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.artwork-info-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.artwork-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.artwork-description {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.artwork-index {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Add mobile-friendly adjustments */
@media (max-width: 768px) {
    .artwork-info {
        width: 85%;
        padding: 15px 20px;
        bottom: 30px;
    }
    
    .artwork-title {
        font-size: 1.1rem;
    }
    
    .artwork-description {
        font-size: 0.9rem;
    }
}

/* Add these styles */
/* Remove these CSS classes if they exist:
.fullscreen-icon {
    ...
}

.lightbox {
    ...
}

.lightbox-image {
    ...
}

.close-lightbox {
    ...
}
*/

/* Add responsive styles for mobile */
@media (max-width: 767px) {
    .material-selector {
        left: 20px; /* Adjusted for better mobile positioning */
        width: calc(100% - 40px); /* Full width minus margins */
        max-height: 80vh;
        overflow-y: auto;
        margin: 20px;
    }

    .config-panel-content {
        padding: 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Larger touch targets */
    .material-button,
    .config-panel-header,
    .menu-button {
        min-height: 44px; /* iOS minimum touch target size */
    }

    .image-count-button {
        width: 44px; /* Larger touch target */
        height: 44px;
    }
}

/* Update loading overlay z-index */
.loadingOverlay {
    z-index: 3000 !important; /* Ensure it's above everything */
}

.navigation-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(23, 25, 30, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navigation-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(0, 0, 0, 0.45);
}

.navigation-arrow.left {
    left: 20px;
}

.navigation-arrow.right {
    right: 20px;
}

@media (max-width: 767px) {
    .navigation-arrow {
        width: 40px;
        height: 40px;
    }
    
    .navigation-arrow.left {
        left: 10px;
    }
    
    .navigation-arrow.right {
        right: 10px;
    }
}

.menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: rgba(23, 25, 30, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

    display: none;
}

.menu-button:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.45);
}

.menu-button.active {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
}

/* Fullscreen toggle button */
.fullscreen-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(23, 25, 30, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fullscreen-toggle:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.45);
}

.fullscreen-toggle svg {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease;
}

@media (max-width: 767px) {
    .fullscreen-toggle {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }
    
    .fullscreen-toggle svg {
        width: 18px;
        height: 18px;
    }
} 