@font-face {
  font-family: minlo;
  src: url("/fonts/minlo-font/Minlo-Regular.woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: minlo;
  src: url("/fonts/minlo-font/Minlo-Bold.woff2");
  font-weight: bold;
  font-style: normal;
}

body {
  font-family: menlo, minlo;
  padding: 40px;
  font-size: 14px;
}

* {
  margin: 0;
  padding: 0;
}

form,
.title {
  margin-bottom: 40px;
}

.refresh-button {
  margin-bottom: 20px;
}

button {
  cursor: pointer;
}

.component button {
  outline: none;
}

:root {
  --highlight: rgb(0, 0, 0);
  --selected-color: rgb(0, 0, 0);
}

.component.stack > .component {
  flex-grow: 2;
}

.component {
  list-style-type: none;
  margin: 10px;
  padding: 10px;
}

.component.hover {
  outline: 1px solid var(--highlight);
}

.component.text {
  white-space: pre-wrap;
  outline: none;
  padding-top: 12px;
  padding-bottom: 8px;
}

.component.text,
.component.stack {
  min-height: calc(1rem + 4px);
}

.component.stack::before {
  content: "stack";
  position: absolute;
  transform: translateY(-100%);
  background-color: white;
  padding: 0px 6px;
  font-family: menlo, minlo;
  font-style: italic;
}

.component.button {
  text-align: center;
}

.component.button button,
.component.button input {
  padding: 5px 10px;
  background-color: #e9e9ed;
  outline: none;
  border: 1px solid #8f8f9d;
  border-radius: 4px;
  font-family: menlo, minlo;
}

.component.stack.horizontal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.component.selected {
  outline: 1px solid var(--selected-color);
}

.component.selected:not(.big-border) {
  border-color: black !important;
}

.component.hovered:not(.big-border) {
  border-color: black !important;
}

.component.hovered.big-border {
  outline: 1px solid var(--highlight);
}

.component.hovered.no-border {
  outline: 1px solid var(--highlight);
}

.component.stack {
  position: relative;
}

.toplevel {
  width: 600px;
}

main {
  height: 70vh;
}

.properties {
  background-color: rgb(255, 237, 214);
  width: 100%;
  padding: 20px;
  border-top: 2px solid black;
  height: 30vh;
  z-index: 2;
}

.properties label input {
  margin-left: 10px;
}

.properties label {
  display: block;
}

.chooser {
  border: 2px solid black;
  background: white;
  max-width: 200px;
  border-radius: 3px;
  margin: 20px;
}

.chooser .lines > * {
  margin: 5px;
  padding: 5px;
}

.chooser input {
  border: 0;
  outline: 0;
  padding: 10px 10px;
  margin: 0px;
  width: calc(100% - 10px * 2);
  border-bottom: 2px solid black;
  font-family: menlo, minlo;
  font-size: inherit;
}

.chooser .lines:not(:hover) .line:nth-child(1) {
  background: rgb(255, 237, 214);
}

.chooser .line:hover {
  background: rgb(255, 237, 214);
}

.chooser .line {
  cursor: pointer;
}

.vars {
  min-height: 1em;
}

.new-var {
  padding: 2px 5px;
  font-family: menlo, minlo;
}

.var {
  margin-top: 10px;
}

.var textarea {
  /* input style to match */
  border: 0;
  outline: 0;
  padding: 10px 10px;
  margin: 0px;
  width: calc(100% - 10px * 2);
  border-left: 2px solid black;
  margin-left: 20px;
  font-family: menlo, minlo;
  font-size: 16px;
  resize: none;
}

.var input {
  /*  match style */

  border: 0;
  outline: 0;
  /* border-bottom: 2px solid black; */
  font-family: menlo, minlo;
  font-size: inherit;
}
