#display_image{
    width: 100%;
    min-height: 100px;
    aspect-ratio: 16 / 9;
    margin: 10px 0;
    border: 1px solid #ccc;
    background-position: center;
    background-size: contain;
    position: relative;
    background-repeat: no-repeat;
}

#image_size p {
   margin: 0;
   text-align: center;
}

.rectangle-row input[type="number"] {
   width: 5rem;
}

.box {
    position: absolute;
    border: 2px solid transparent;
    pointer-events: none;
}

.scrollable {
    max-height: 300px; 
    overflow-y: auto; 
}

.editor {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
}

.editor__wrapper {
    display: flex;
    flex-direction: column;
    background: var(--editor-bg);
    margin-top: 0.5em;
    padding: 0.25em;
    border: 1px solid #ccc;
}

.editor__body {
    flex: 1;
}

.editor__footer {
    display: flex;
}

.editor__footer--left {
    display: flex;
    flex-direction: column;
}

.editor__footer--right {
    flex: 1;
    margin-left: 10px;
    overflow: hidden;
}

.editor__btn {
    border: 0;
    padding: .5em;
    background-color: #fff;
    border: 2px solid #333;
    margin-top: 1em;
    width: 100px;
    cursor: pointer;
}

.editor__console {
    background-color: #fff;
    width: 100%;
    height: 100px;
    margin-top: .9em;
    border: 1px solid var(--editor-border);
    overflow: auto;
}

.editor__code {
    position: relative;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: 1px solid var(--editor-border);
}

.error-message {
    color: red;
    font-weight: bold;
    margin-top: 5px;
}
