
/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: Ubuntu, Arial, sans-serif;
  background: #1e1e1e;
}

/* =========================
   LAYOUT
========================= */
#container {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100vw;
}

/* PANELS */
#input, #output {
  flex: 1;
  height: 100%;
  overflow: auto;
}

/* INPUT */
#input {
  background: #111;
  color: #fff;
  font-family: monospace;
  font-size: 13px;

  padding: 10px;
  border: none;
  outline: none;

  resize: none;

  border-right: 1px solid #333;
}

/* OUTPUT */
#output {
  background: #1b1b1b;
  padding: 10px;
  color: #ddd;
}

/* =========================
   TREE LINES
========================= */
.line {
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 20px;
  white-space: pre;
}

/* indentation */
.children {
  margin-left: 16px;
}

/* =========================
   KEYS & VALUES
========================= */
.key {
  color: #79c0ff;
  margin-right: 4px;
}

.string { color: #a5d6ff; }
.number { color: #f2cc60; }
.boolean { color: #ff7b72; }
.null { color: #8b949e; font-style: italic; }

/* =========================
   BRACKETS
========================= */
.bracket-open,
.bracket-close {
  color: #c9d1d9;
  margin: 0 2px;
}

/* =========================
   TOGGLE
========================= */
.toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  width: 16px;
  height: 16px;

  margin: 0 6px;

  border-radius: 3px;
  border: 1px solid #444;

  background: #2a2a2a;
  color: #ffd54a;

  font-size: 12px;
  font-weight: bold;

  cursor: pointer;
  user-select: none;
}

.toggle:hover {
  background: #3a3a3a;
  color: #fff;
}

/* =========================
   HOVER EFFECTS
========================= */
.bracket-hover {
  color: #00ff88 !important;
}

.highlight-range {
  background: rgba(255, 255, 0, 0.12);
  border-radius: 4px;
}

/* =========================
   SCROLLBAR
========================= */
#input::-webkit-scrollbar,
#output::-webkit-scrollbar {
  width: 8px;
}

#input::-webkit-scrollbar-thumb,
#output::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

#input::-webkit-scrollbar-thumb:hover,
#output::-webkit-scrollbar-thumb:hover {
  background: #555;
}