* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /*background: linear-gradient(180deg, #005ab8 0%, #001333 100%);*/
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.container {
    max-width: 900px;
    width: 100%;
}

h1 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.viewer-wrapper {
    background: white;
    border-radius: 16px;
    padding: 30px;
    /*box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);*/
}

.viewer-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* A-Frame panorama sizing inside the viewer box */
.viewer-container a-scene,
.viewer-container .a-canvas {
    width: 100% !important;
    height: 450px !important;
    display: block;
}

.viewer-container:active {
    cursor: grabbing;
}

.viewer-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.1s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 1.2rem;
    pointer-events: none;
}

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

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.control-btn {
    background: #005ab8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.control-btn:hover:not(:disabled) {
    background: #003d80;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 90, 184, 0.4);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.frame-slider {
    flex: 1;
    min-width: 200px;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.frame-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #005ab8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.frame-slider::-webkit-slider-thumb:hover {
    background: #003d80;
    transform: scale(1.2);
}

.frame-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #005ab8;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.frame-slider::-moz-range-thumb:hover {
    background: #003d80;
    transform: scale(1.2);
}

.frame-counter {
    font-weight: 600;
    color: #333;
    min-width: 100px;
    text-align: right;
}

.instructions {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.viewer-footer {
    margin-top: 20px;
    text-align: center;
    color: #f0f0f0;
    font-size: 0.9rem;
}

.instructions p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .viewer-wrapper {
        padding: 20px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .frame-counter {
        text-align: center;
    }

    .control-btn {
        width: 100%;
    }

    .frame-slider {
        width: 100%;
    }
}

/* Link button styles */
#interior-link,
#exterior-link {
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
