body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --mono-font: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  --background-color: #282c34;
  margin: 0;
  overscroll-behavior: none;
}

code {
  font-family: var(--mono-font);
}

.app {
  display: flex;
  flex-direction: row;
  background-color: var(--background-color);
  height: 100vh;
  overflow: hidden;
  color: white;
}

.side-panel {
  display: flex;
  flex: 0 250px;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;

  & * {
    font-family: var(--mono-font);
  }
}

h1 {
  margin: 0px;
  font-size: 12pt;
}

footer {
  display: flex;
  bottom: 0px;
  left: 0px;
  flex-direction: column;
  align-self: flex-end;
  gap: 5px;
  z-index: 5;
  box-sizing: border-box;
  font-size: 10pt;
  font-family: var(--mono-font);

  & > div {
    display: flex;
    flex: 1;
    flex-direction: row;
    gap: 5px;

    & > label {
      flex: 1;
    }
    & > :not(label) {
      flex: 1.5;
    }
  }
}

select,
button,
input {
  border: 1px solid white;
  border-radius: 5px;
  background-color: transparent;
  background-color: var(--background-color);
  padding: 3px;
  padding-right: 10px;
  padding-left: 10px;
  min-width: 0px;
  color: white;
  font-family: var(--mono-font);
}

main {
  position: relative;
  flex: 1;
  gap: 15px 30px;
  z-index: 1;
  box-sizing: border-box;
  height: 100vh;
  overflow: auto;
}

.tm-textarea {
  background: white;
  max-height: 100%;
  color: black;
}

.line-numbers,
.line-numbers::part(root) {
  --line-number-width: calc((var(--tm-line-digits) + 1) * 1ch);
}

.line-numbers pre::before,
.line-numbers::part(line)::before {
  position: absolute;
  transform: translateX(calc(var(--line-number-width) * -1));
  opacity: 0.5;
  counter-reset: line-number calc(var(--tm-line-number) + 1);
  content: counter(line-number);
  color: var(--tm-foreground-color);
}

.line-numbers pre,
.line-numbers::part(line),
.line-numbers textarea,
.line-numbers::part(textarea) {
  transform: translateX(var(--line-number-width));
}
