body {
    background: #111;
    color: #eee;
    margin: 0;
    font-family: system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    gap: 20px;
    transform-origin: top center;
}

.canvas-container {
    position: relative;
    width: 100%;
    aspect-ratio: 960 / 1080;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    image-rendering: auto;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 10px #000;
}

#overlayCanvas {
    pointer-events: none;
}

#imageInput {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(20, 20, 20, 0.7);
    color: #ddd;
    border: 1px solid #555;
    padding: 4px 8px;
    border-radius: 4px;
}

#controls {
    display: flex;
    gap: 12px;
    margin: 20px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    #controls {
        justify-content: flex-start;
    }
}

#controls>label {
    flex: 0 0 auto;
}

.inputs {
    display: flex;
    gap: 12px;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
}


.buttons {
    display: flex;
    gap: 12px;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
}

button {
    background: #333;
    color: #eee;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #555;
}