﻿body {
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
    min-height: 100vh;
    padding: 0px; /* era 20px */
}

.card {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border: none;
    border-radius: 16px;
}

.card-header {
    background: linear-gradient(90deg, #0288d1, #0277bd);
    color: white;
    border-radius: 16px 16px 0 0 !important;
    font-weight: 600;
}

#canvas {
    width: 100%;
    height: 470px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: grab;
    /* touch-action: none; */
}

    #canvas.dragging {
        cursor: grabbing;
    }

.form-label {
    font-weight: 600;
    color: #0277bd;
}

.btn-primary {
    background: linear-gradient(90deg, #0288d1, #0277bd);
    border: none;
    font-weight: 600;
}

    .btn-primary:hover {
        background: linear-gradient(90deg, #0277bd, #01579b);
    }

.value-display {
    min-width: 50px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #0277bd;
}

.form-range::-webkit-slider-thumb {
    background: #0288d1;
}

.form-range::-moz-range-thumb {
    background: #0288d1;
}

#inputArea {
    font-family: 'Courier New', monospace;
    font-size: clamp(9px, 2vw, 24px);
}


@media (max-height: 780px) {
    #canvas {
    width: 100%;
    height: 25vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: grab;
    /* touch-action: none; */
}
}
