
.field-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80vh;
    /*background-color: rgba(255,255,255, 0.8);*/
    border: 3px solid black;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.field-modal-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 80vh;
    /*background-color: rgba(255,255,255, 0.8);*/
    border: 3px solid black;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.modal-header {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.modal-header p {
    margin: 0;
}

.modal-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
    overflow-y: auto;
    align-content: start;
}

.modal-grid-item {
    padding: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: Arial, Helvetica, sans-serif;
}
.modal-grid-img-wrap {
      display: grid;
      place-items: center;    
}

.modal-actions {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.modal-actions img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    cursor: pointer;
}

.modal-text-input {
    border: 1px solid #000000;
    width: 100%;
}

.modal-text-info {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
}

.modal-select-element {
    font-family: Arial, Helvetica, sans-serif;
    border: 1px solid #000000;
    width: 100%;
    padding: 3px;
}

.modal-select-radio {
    border: 1px solid #000000;
    width: 30px;
    height: 30px;
    padding: 3px;
}

.modal-info-text {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
}
.modal-result-text {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    border-radius: 5px;
    border: 1px;
    border-color: #000000;
    border-style: solid;
    padding: 2px;
}

.fieldCanvasX {    
    border: 2px solid red;
    border-radius: 10px;
    background-color: white;
}

/* Default: Desktop behavior */
.fieldCanvas {
    display: block;
    border: 2px solid red;
    border-radius: 10px;
    background-color: white;
    top: 0;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
