.npc h3,
.npc h4,
.npc h5 {
  font-family: "Raleway", sans-serif;
}

.npc p {
  font-family: "Open Sans", sans-serif;
}

.npc.input {
  position: absolute;
  overflow: hidden;
  font-family: "Open Sans", sans-serif;
}

.npc.input>label {
  float: left;
  font-size: 11px;
  margin-left: 10px;
  line-height: 20px;
  color: black;
}

.npc.input>.generic-select,
.npc.input>.generic-checkbox,
.npc.input>.generic-slider,
.npc.input>.generic-number,
.npc.input>.generic-text,
.npc.input>.generic-button {
  cursor: pointer;
  float: right;
}

.npc.input>.generic-checkbox {
  margin-right: 0;
}

.npc.input>.generic-number,
.npc.input>.generic-text {
  width: 80px;
  border: solid 1px #444;
  border-radius: unset;
  padding: 1px 0 1px 3px;
  cursor: text;
}

.npc.input>.generic-button {
  width: 40px;
  border: none;
  border-radius: 2px;
  padding: 2px;
  background-color: #e95420;
  color: white;
  transition: background-color 0.2s ease;
}

.npc.input>.generic-button:hover {
  background-color: #ca491a;
}

.npc.help-button,
.npc.add-button,
.npc.rem-button {
  position: absolute;
  width: 40px;
  height: 40px;
  margin: 10px;
  text-align: center;
  font-size: 18pt;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.npc.help-button .fas,
.npc.add-button .fa,
.npc.rem-button .far {
  line-height: 40px;
}

.npc.help-button {
  background-color: white;
  color: #444;
}

.npc.help-button:hover {
  background-color: #ddd;
  color: #000;
}

.npc.add-button {
  background-color: #e95420;
  color: white;
}

.npc.add-button:hover {
  background-color: #ca491a;
}

.npc.rem-button {
  background-color: white;
  color: #e9204f;
  display: none;
  border: dashed thin #e9204f;
  z-index: 6;
}

.npc.rem-button:hover {
  background-color: #e9204f;
  color: white;
  border: solid 4px #e9204f;
  margin-left: 8px;
  margin-top: 8px;
}

.npc.help {
  position: absolute;
  padding: 12px;
  margin: 10px;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 0 10px #3336;
  z-index: 2;
  display: none;
  width: 400px;
  max-height: 85vh;
  overflow: auto;
}

h1.npc.help-heading {
  font-size: 13pt;
}

p.npc.help-text {
  font-size: 11pt;
}

.npc.node-create {
  position: absolute;
  padding: 6px;
  margin: 10px;
  background-color: white;
  border-radius: 2px;
  box-shadow: 0 0 10px #3336;
  z-index: 2;
  display: none;
  width: 380px;
  max-height: 85vh;
  overflow: auto;
}

.npc.node-create>.node-list {
  background-color: #fff;
  padding: 2px 0;
  box-shadow: inset 0 0 5px #0005;
}

.fa.fa-plus,
.fa.fa-times {
  cursor: pointer;
}

.fa.fa-times {
  font-size: 18pt;
}

.node-section-header {
  margin-top: -2px;
  padding: 8px 0;
  background-color: #fff;
  color: #000;
}

.node-section-header h3 {
  margin: 0;
  font-size: 12pt;
}

.node-box {
  margin: 5px;
  background-color: white;
  user-select: none;
  box-shadow: 0 0 5px #0005;
  cursor: grab;
}

.node-box.dragged {
  z-index: 3;
  box-shadow: 0 0 10px #000a;
  cursor: grabbing;
}

.node-box .new-node-header {
  padding: 2px 10px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.node-box .new-node-header.hover {
  opacity: 1;
}

.node-box .body {
  padding: 5px 10px;
  color: #666;
  font-size: 10pt;
  transition: color 0.2s ease;
}

.node-box .body.hover {
  color: #000;
}

.node-box .new-node-header>h4 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: unset;
}

.node-box .body>p {
  margin-top: 2px;
  margin-bottom: 4px;
}

.preview-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fffa;
  z-index: 6;
}

.preview-box {
  margin: 80px auto;
  width: 680px;
  padding: 40px 40px 0 40px;
  border-radius: 20px;
  background-color: white;
  box-shadow: 0 0 10px #0003;
  max-height: 75vh;
  overflow: auto;
}

.preview-box .canvas-box {
  height: 430px;
  margin: 5px 0 20px 0;
  position: relative;
}

.preview-box .preview-canvas {
  width: calc(100% - 2px);
  height: 100%;
  border-radius: 4px;
  border: solid 1px #ddd;
}

.preview-box .btn-row {
  overflow: hidden;
  margin: 0 auto 40px auto;
  width: 370px;
}

.preview-box h5 {
  margin: 0;
}

.preview-box input[type="text"],
.preview-box textarea {
  margin-bottom: 10px;
  width: 100%;
}

.preview-box .close-button,
.preview-box .export-button,
.preview-box .publish-button {
  float: left;
  width: 120px;
  padding: 5px 0;
  border-radius: 4px;
  text-align: center;
  transition: background-color 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.preview-box i.fas {
  margin-right: 5px;
}

.preview-box .export-button,
.preview-box .close-button {
  margin-right: 5px;
}

.preview-box .close-button {
  background-color: #eee;
  color: 222;
}

.preview-box .close-button:hover {
  background-color: #ddd;
}

.preview-box .export-button,
.preview-box .publish-button {
  background-color: #e95420;
  color: white;
}

.preview-box .export-button:hover,
.preview-box .publish-button:hover {
  background-color: #ca491a;
}

.preview-box textarea,
.preview-box input[type="text"] {
  border: 2px solid #888;
  border-radius: 4px;
  padding: 5px;
}

.preview-box textarea {
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
}