/* page layout ------------------------------------------------------ */
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* container -------------------------------------------------------- */
#container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* drawing surface -------------------------------------------------- */
#canvas {
  position: absolute;
  top: 0;
  left: 0;
  cursor: grab;
}
#canvas:active {
  cursor: grabbing;
}

/* options & script manager panel ----------------------------------- */
#controls {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: rgba(255,255,255,.85);
  padding: 8px 10px;
  border-radius: 6px;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 260px;
}
#controls input[type="text"],
#controls input[type="number"] {
  width: 100%;
  padding: 2px 4px;
  font-size: 14px;
}
#controls button,
#controls select,
#controls input[type="file"] {
  font-size: 14px;
}

/* draggable divider ------------------------------------------------ */
#divider {
  position: absolute;
  top: 0;
  right: 30vw;
  width: 6px;
  height: 100vh;
  background: rgba(0,0,0,.1);
  cursor: col-resize;
  z-index: 4;
  transition: background .2s ease;
}
#divider:hover,
#divider.dragging {
  background: rgba(0,0,0,.25);
}

/* ace editor pane -------------------------------------------------- */
#editor {
  position: absolute;
  top: 0;
  right: 0;
  width: 30vw;
  height: 100vh;
  min-width: 200px;
  max-width: 90vw;
  transition: width .2s ease;
}
