body {
  font-family: "Iskoola Pota", "Noto Sans Sinhala", sans-serif;
  background: #f6f6f6;
  padding: 20px;
}

.wrapper {
  display: flex;
  flex-direction: row;  /* left-right layout */
  gap: 20px;            /* space between script & notation */
  align-items: flex-start; /* top-align */
}

:root {
  --editor-font-size: 14px;
  --editor-line-height: 20px;
  --editor-padding: 8px;
}


.editor {
  display: flex;
  width: 35vw;
  height: 60vh;

  /* horizontal scroll only in textarea, not editor */
  overflow: hidden;
  font-family: monospace;
}


.line-numbers {
  background: #f7f7f7;
  color: #888;
  text-align: right;
  user-select: none;
  border-right: 1px solid #ddd;

  padding:0;
}

.line-numbers div {
  height: var(--editor-line-height);
  line-height: var(--editor-line-height);
  font-size: var(--editor-font-size);
}


.line-numbers-inner {
  will-change: transform;
}

textarea#input {
  flex: 1 0 auto;       /* prevent shrinking */
  height: 54    vh;
  border: none;
  outline: none;
  resize: none;

  padding: 0;

  font-family: monospace;
  font-size: var(--editor-font-size);
  line-height: var(--editor-line-height);

  overflow-y: auto;
  overflow-x: auto;  /* shows scrollbar even if not needed */
  white-space: pre;
}


.notation-area {
  flex: 1 1 60%;        /* 50% width, can grow */
  padding: 10px;
  height: 60vh;
  overflow-y: auto;

}

.notation-block {
  break-inside: avoid;
  page-break-inside: avoid;
}

.controls {
  margin: 10px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-family: inherit;
}

.controls label {
  padding: 8px 14px;

  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
    background: #333;
  border-radius: 6px;
  border: none;
}

.controls button,
.controls .btn {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #333;
  color: white;
  display: inline-block;
}

/* Hide the real file input */
.controls .btn input[type="file"] {
  display: none;
}

.controls button:hover {
  background: #555;
}

.controls input[type="range"] {
  -webkit-appearance: none;
  width: 120px;
  height: 6px;
  background: white;
  border-radius: 3px;
  cursor: pointer;
}

.controls button,
.controls .btn,
.controls select,
.controls input[type="range"] {
  border-radius: 999px;
}




