/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

/* Header */
.site-header {
    background-color: #003b5c; /* A professional blue */
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.site-header h2 {
    font-weight: 400;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: #e0e0e0;
}

/* Main Layout - Flexbox for responsiveness */
.content-wrapper {
    display: flex;
    flex-direction: row;
    max-width: 1400px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 1rem;
}

/* Canvas Container */
.interactive-poster {
    flex: 2; /* Takes up more space on desktop */
    display: flex;
    flex-direction: column;
}

.canvas-container {
    width: 100%;
    /* Gives the canvas a set height to operate within, preventing page stretching */
    height: 70vh; 
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden; /* Important for keeping the image inside the borders during pan/zoom */
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

canvas:active {
    cursor: grabbing;
}

.canvas-instructions {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Details Section */
.poster-details {
    flex: 1; /* Takes up remaining space */
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.poster-details h3 {
    color: #003b5c;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.poster-details h3:first-child {
    margin-top: 0;
}

.poster-details ul {
    list-style-position: inside;
    margin-left: 0.5rem;
}

.poster-details li {
    margin-bottom: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column; /* Stacks the canvas and text on top of each other */
    }
    
    .canvas-container {
        height: 50vh; /* Slightly smaller height on mobile */
    }
}

/* Zoom Controls */
.canvas-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.canvas-controls button {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    background: rgba(0, 59, 92, 0.85); /* Matches your header color with transparency */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    user-select: none;
}

.canvas-controls button:hover,
.canvas-controls button:active {
    background: rgba(0, 59, 92, 1);
}

.references {
    margin-top: 2rem;
}

.email {
    color: #e0e0e0;
    text-decoration: underline;
    cursor: pointer;
}