/* Base styles */
body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

canvas {
    display: block;
    cursor: grab;
}

canvas:active {
    cursor: grabbing;
}

/* Overlay styles */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    dosplay: none !important;
}

.instruction-box {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 16px;
    border-radius: 4px;
    max-width: 400px;
    dosplay: none !important;
}

.instructions {
    display: none;
}
}

/* Config panel styles */
.config-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.config-container {
    background-color: white;
    padding: 16px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    overflow: auto;
}

.config-textarea {
    width: 100%;
    height: 400px;
    font-family: monospace;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 16px;
}

.button-container {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.button-primary {
    background-color: #1a73e8;
    color: white;
}

.button-secondary {
    background-color: #e2e2e2;
    color: #333;
}

/* Debug panel */
.debug-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    max-width: 300px;
    max-height: 200px;
    overflow: auto;
    z-index: 100;
}

/* Navigation arrows (Google Street View style) */
.navigation-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.arrow {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background-color 0.2s;
}

.arrow:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

.arrow-icon {
    font-size: 24px;
    color: #333;
}

.arrow-forward {
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-backward {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-left {
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
}

.arrow-right {
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
}

/* Artwork info overlay */
.artwork-info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 4px;
    max-width: 300px;
    z-index: 10;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

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

.artwork-title {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Navigation indicator at the bottom */
.navigation-compass {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.compass-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 30px solid #1a73e8;
    transform-origin: center bottom;
}

/* Loading indicator */
.loading-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 100;
}

.loading-indicator.hidden {
    display: none;
}