html,
body {
    margin: 0;
    padding: 0;
    height: 100vh;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #bbb;
}

#container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#liveImage {
    display: block;
    max-height: 100vh;
    max-width: 100vw;
    height: 100%;
    width: auto;
    object-fit: contain;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    /*border: 2px solid red;*/
}

#signatureCanvas {
    position: absolute;
    z-index: 10;
    touch-action: pinch-zoom;
    /*border: 2px solid blue;*/
}

#toolbar {
    margin: 16px 0;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    background-color: #eee;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
}

#toolbar button,
#customModal button {
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    background-color: #00B7C3;
    color: white;
    transition: background-color 0.2s ease;
}

#toolbar button:hover {
    background-color: #008089;
}

#toolbar label {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

#toolbar input[type="color"],
#toolbar input[type="number"] {
    height: 36px;
    font-size: 1rem;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#container button {
    margin: 0px;
    font-size: 28px;
    padding: 15px 20px;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#container button:hover {
    color: #008089;
}

#status {
    margin: 10px;
    color: #555;
    font-size: 0.9rem;
}

#modalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#customModal {
    display: none;
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: min(400px, 80vw);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: center;
}