@font-face {
  font-family: "w95fa";
  src: url("https://iamtomo.com/play/wyndose-xp/css/w95fa.woff2");
}

/* GENERAL ELEMENTS */

:root {
  --green: #0be881;
  --red: #ff3f34;
  --hoverButton: #eee;
}
* {
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-family: w95fa, arial;
  user-select: none;
}
body,
html {
  height: 100%;
}
body {
  height: 110%;
  overflow-x: hidden;
  display: block;
}

/* TOOLS */

#tools {
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px;
  box-sizing: border-box;
  border-bottom: 2px solid #000;
  border-right: 2px solid #000;
  background: var(--hoverButton);
  border-radius: 0 0 8px 0;
  z-index: 2000;
}
input[type="button"] {
  padding: 6px 15px 4px 15px;
  margin-right: 10px;
  border: 2px solid #000;
  border-radius: 8px;
  background: #fff;
  text-transform: uppercase;
  cursor: pointer;
}
input[type="button"]:hover {
  background: var(--hoverButton);
}
input[type="button"].active {
  background: var(--red);
}
#outputResults {
  padding: 6px 15px 4px 15px;
  border: 2px solid #000;
  border-radius: 8px;
  width: 80px;
  background: #fff;
}

/* TRUTH TABLE */

#truth-table {
  background: var(--hoverButton);
  position: fixed;
  right: 0;
  padding: 20px 20px;
  box-sizing: border-box;
  display: none;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  border-radius: 0 0 0 8px;
  text-transform: uppercase;
}
#truth-table p {
  margin-top: 10px;
}
#truth-table p span {
  width: 20px;
  height: 20px;
  text-align: center;
  display: inline-block;
}

/* NODES */

.node {
  display: inline-block;
  box-sizing: border-box;
  padding: 10px;
  background: #fff;
  display: block;
  box-sizing: border-box;
  border-radius: 8px;
  cursor: pointer;
  position: absolute;
  text-align: center;
  min-width: 70px;
  z-index: 1000;
}
.node:not([nodeBinary]) {
  border: 3px solid #000;
}
.node[nodeBinary="0"] {
  border: 3px solid var(--red);
}
.node[nodeBinary="1"] {
  border: 3px solid var(--green);
}
.node span {
  font-weight: bold !important;
  display: block;
  text-align: center;
}
span.nodeName {
  margin-bottom: 10px;
}
.nodeInput,
.nodeOutput {
  cursor: pointer;
  background: #fff;
  border: 2px solid #000;
  height: 13px;
  width: 13px;
  display: block;
  position: absolute;
  border-radius: 100px;
  background: var(--green);
}
.nodeInput:nth-child(1) {
  left: -15px;
  bottom: 45px;
}
.nodeInput:nth-child(2) {
  left: -15px;
  bottom: 5px;
}
[nodeType="INPUT"] .nodeInput:nth-child(1),
[nodeType="NOT"] .nodeInput:nth-child(1),
[nodeType="OUTPUT"] .nodeInput:nth-child(1) {
  bottom: 23px;
}
[nodeType="INPUT"] .nodeInput:nth-child(2),
[nodeType="NOT"] .nodeInput:nth-child(2),
[nodeType="OUTPUT"] .nodeInput:nth-child(2) {
  display: none;
}
.nodeOutput {
  right: -15px;
  bottom: 23px;
}
.nodeInput:hover,
.nodeOutput:hover {
  background: var(--red);
}
.nodeInput:not([nodeInputFrom]):hover,
.nodeOutput:not([nodeInputFrom]):hover {
  background: var(--green);
}
.nodeInput:not([nodeInputFrom]):hover {
  background: var(--hoverButton);
}

/* LINES */

#connector-point {
  background: transparent;
  height: 10px;
  width: 10px;
  position: absolute;
  top: 0;
  left: 0;
}
#connector-point:not([connectorFrom]) {
  display: none;
}
.line {
  position: absolute;
  background: #000;
  height: 2px;
  transform-origin: 100% 0;
}
