body {
    margin: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f0f0f0;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    display: block;
}

#info {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Popup / Brochure Overlay */
#popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 100;
}

#popup.visible {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

#popup-header {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#popup-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #2c3e50;
}

#popup-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

#popup-close:hover {
    color: #333;
}

#popup-content {
    padding: 30px;
    overflow-y: auto;
    display: flex;
    gap: 30px;
}

.popup-image-container {
    flex: 1;
    min-width: 300px;
    height: 300px;
    background-color: #eee;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#popup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#popup-img-placeholder {
    color: #888;
    font-size: 0.9rem;
    padding: 20px;
    text-align: center;
}

.popup-text {
    flex: 1.5;
}

.popup-text h3 {
    margin-top: 0;
    color: #007bff;
}

.popup-text p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.popup-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: right;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn:hover {
    background: #0056b3;
}

/* Scrollbar styling */
#popup-content::-webkit-scrollbar {
    width: 8px;
}

#popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#popup-content::-webkit-scrollbar-thumb {
    background: #cdcdcd;
    border-radius: 4px;
}