.window {
  z-index: 20;
}
.jtk-connector {
  z-index: 4;
}
.jtk-connector:hover {
  z-index: 4;
  stroke-width: 6;
}
.jtk-connector.jtk-hover {
  z-index: 10;
  stroke: #ff4444 !important;
  stroke-width: 6 !important;
  cursor: pointer;
}
.jtk-endpoint {
  z-index: 5;
}
.jtk-overlay {
  z-index: 6;
}

/* disabling text selection */
body {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

text {
  pointer-events: none;
}

.drag-drop {
  display: inline-block;
  position: absolute;
  top: 0px;
  width: 50px;
  height: 50px;
  border-radius: 0.75em;
  border: 0.2rem solid rgb(98, 178, 235);
  z-index: 1;
  background-size: 100%;
}

.logic-gate {
  background-color: #29e;
  background-repeat: no-repeat;
  background-position: center;
}

.and {
  background-image: url("../images/and.svg");
}

.not {
  background-image: url("../images/not.svg");
}

.or {
  background-image: url("../images/or.svg");
}

.xor {
  background-image: url("../images/xor.svg");
}

.xnor {
  background-image: url("../images/xnor.svg");
}

.nand {
  background-image: url("../images/nand.svg");
}

.nor {
  background-image: url("../images/nor.svg");
}

.color-white {
  fill: white;
  stroke: rgb(68, 68, 119);
  stroke-width: 3;
  fill-opacity: 1;
  stroke-opacity: 1;
}

.color-blue {
  fill: #29e;
  stroke: rgb(68, 68, 119);
  stroke-width: 3;
  fill-opacity: 1;
  stroke-opacity: 1;
}

.color-green {
  fill: green;
  stroke: rgb(68, 68, 119);
  stroke-width: 3;
  fill-opacity: 1;
  stroke-opacity: 1;
}

.color-yellow {
  fill: #eeeb22;
  stroke: rgb(68, 68, 119);
  stroke-width: 3;
  fill-opacity: 1;
  stroke-opacity: 1;
}

.fulladder {
  background-color: #29e;
  background-repeat: no-repeat;
  background-position: center;
}

.fulladder:after {
  content: "1-bit Full Adder";
  margin: auto;
  padding: 1.2rem 0rem;
  font-weight: bold;
  font-size: 0.8rem;
  justify-content: center;
  align-items: center;
  display: flex;
  text-align: center;
}

.container {
  margin-top: 1%;
}

.column {
  text-align: center;
}

.color-white {
  fill: white;
  stroke: rgb(68, 68, 119);
  stroke-width: 3;
  fill-opacity: 1;
  stroke-opacity: 1;
}

.color-blue {
  fill: #29e;
  stroke: rgb(68, 68, 119);
  stroke-width: 3;
  fill-opacity: 1;
  stroke-opacity: 1;
}

.color-green {
  fill: green;
  stroke: rgb(68, 68, 119);
  stroke-width: 3;
  fill-opacity: 1;
  stroke-opacity: 1;
}

.color-yellow {
  fill: #eeeb22;
  stroke: rgb(68, 68, 119);
  stroke-width: 3;
  fill-opacity: 1;
  stroke-opacity: 1;
}

.high {
  text-align: center;
  display: inline-block;
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 0.2rem solid rgb(98, 178, 235);
  z-index: 1;
  background-color: #29e;
  background-repeat: no-repeat;
  background-position: center;
}

.low {
  text-align: center;
  display: inline-block;
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 0.2rem solid rgb(236, 234, 90);
  z-index: 1;
  background-color: rgb(238, 235, 34);
  background-repeat: no-repeat;
  background-position: center;
}

.high a,
.low a {
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 1rem;
  text-decoration: none;
  color: black;
  height: 100%;
  width: 100%;
}

.high a:hover,
.low a:hover {
  color: black;
}

.high p,
.low p,
.output p {
  position: absolute;
  top: -30px;
  align-items: center;
  font-size: 1rem;
}

.output {
  display: inline-block;
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 0.2rem solid rgb(20, 21, 22);
  z-index: 1;
  background-color: rgb(4, 5, 5);
  background-repeat: no-repeat;
  background-position: center;
}

.components-list {
  padding: 2% 5%;
  text-align: center;
  height: 100%;
  overflow-y: auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: start;
  justify-content: center;
  padding: 10px;
}

#circuit-board {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0.2rem solid black;
}

#working-area {
  position: absolute;
  width: 92%;
  height: 94%;
  margin: 2%;
}

.connector-point {
  position: absolute;
  z-index: 1;
  display: block;
  height: 15px;
  width: 1px;
  border-radius: 50%;
  background-color: grey;
}

svg.wire path {
  stroke: #456;
  stroke-width: 3;
}

.menu {
  width: 120px;
  z-index: 7;
  box-shadow: 0 4px 5px 3px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  position: fixed;
  display: none;
  transition: 0.2s display ease-in;
}

.menu-options {
  list-style: none;
  padding: 10px 0;
  z-index: 1;
}

.menu-option {
  font-weight: 500;
  z-index: 1;
  font-size: 14px;
  padding: 10px 40px 10px 20px;
}

.menu-option:hover {
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.component-button {
  width: 80px;
  height: 80px;
  border-radius: 0.75em;
  border: 0.2rem solid rgb(98, 178, 235);
  margin: 0.5rem 0.5rem;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  color: black;
  background-color: #29e;
  background-repeat: no-repeat;
  background-position: center;
}

@media screen and (max-width: 600px) {
  .component-button {
    width: 60px;
    height: 60px;
    background-size: 100%;
  }
}

.component-button::after {
  display: block;
  padding-bottom: 100%;
}

.component-button:hover {
  border: 0.2rem solid rgb(157, 210, 248);
  cursor: pointer;
}

.success-message {
  font-size: 1.2rem;
  color: rgb(31, 170, 31);
  font-weight: bold;
}

.failure-message {
  font-size: 1.2rem;
  color: rgb(228, 23, 23);
  font-weight: bold;
}

.highlight {
  border: 3px solid red;
  box-shadow: 0 0 10px #719ece;
}

/* for dropping instruction box  */

.instructions-box {
  max-height: 70px;
  overflow: hidden;
  transition: all 0.5s ease;
}

.instructions-box.expand {
  max-height: 400px;
}

.v-instruction-container {
  border: 0.2rem solid #97d23d;
  justify-content: flex-start;
}

.speed-box {
  border: 1px solid black;
  color: black;
  background-color: white;
  text-align: center;
  font-size: 1rem;
  border-radius: 1em;
  padding: 0.5em 1em;
  cursor: pointer;
}
.wire-demo {
  stroke-width: 3px;
  fill: none;
  stroke: black;
}

.gate-demo {
  stroke-width: 3px;
  fill: #29e;
  stroke: black;
}

.text-demo {
  font-size: 1em;
  fill: black;
}

.fulladder-demo {
  width: 100px;
  height: 100px;
}

/* observation table */

.success-table {
  font-size: 1rem;
  color: rgb(31, 170, 31);
  font-weight: bold;
}

.failure-table {
  font-size: 1rem;
  color: rgb(228, 23, 23);
  font-weight: bold;
}

.bold-table {
  font-weight: bold;
}
