body {
  color: var(--almost-black);
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
  scrollbar-gutter: stable;
}

html {
  background-color: var(--real-white);
  color: var(--dark-gray);
}

main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100dvh;

  > header {
    background-color: var(--light-beige);
    display: flex;
    justify-content: space-between;
    line-height: 2rem;
    padding: 1rem 2rem;
  }
}

section {
  font-family: monospace;
  padding: 0 1rem;
}

#python-editor {
  background-color: var(--real-white);
  display: flex;
  min-height: 100px;
  overflow: hidden;
  padding-top: 0.5rem;
  position: relative;
}

#line-numbers {
  color: var(--light-gray);
  font-size: inherit;
  line-height: inherit;
  min-width: 1rem;
  padding: 0.5rem 0.25rem 0.5rem 0.5rem;
  text-align: right;
  user-select: none;
  -webkit-user-select: none;
  white-space: pre;
}

#editor-content {
  flex: 1;
  position: relative;
}

#plain-text {
  background: transparent;
  border: none;
  caret-color: var(--almost-black);
  color: transparent;
  font-family: monospace;
  font-size: inherit;
  height: 100%;
  left: 0;
  line-height: inherit;
  min-height: 100px;
  outline: none;
  padding: 0.5rem;
  position: absolute;
  resize: none;
  top: 0;
  white-space: pre;
  width: 100%;
  z-index: 2;
}

#syntax-highlight {
  font-family: monospace;
  font-size: inherit;
  line-height: inherit;
  min-height: 100px;
  padding: 0.5rem;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  white-space: pre;
  z-index: 0;
}

#warning-list {
  background-color: var(--red);
  color: var(--real-white);
  padding: 0.5rem;
  white-space: pre-wrap;
}

#button-row {
  background-color: var(--dark-green);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  padding: 0.5rem 1rem;
}

#run-button {
  align-items: center;
  background-color: var(--yellow);
  color: var(--almost-black);
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem;
}

#fullscreen-button, #share-button {
  align-items: center;
  background-color: transparent;
  color: var(--light-gray);
  display: flex;
}

#output {
  background-color: var(--almost-black);
  flex: 1;
}

#output-wrapper {
  overflow: hidden;
}

.hide-all-xterm-cursors {
  .xterm-cursor {
    display: none !important;
  }
}

.externalcommand {
  color: var(--yellow);
  font-weight: bold;
}

.xterm-viewport {
  background-color: var(--almost-black) !important;
  overflow-y: visible !important;
}

.xterm-screen {
  height: auto !important;
}

.xterm-rows {
  color: var(--real-white) !important;
  font-family: inherit !important;
  font-size: inherit !important;
  padding: 0.5rem;

  > div {
    height: 1.1rem !important;
    line-height: 1rem !important;
  }
}

.hljs-comment {
  color: var(--red);
}

#popover-content {
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 0 1rem var(--almost-black);
  padding: 1rem;
}
