body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #d7b997;
  font-family: "Arial";
}

.base_container {
  display: flex;
  flex-direction: column;
  min-width: 870px;
  width: 60%;
  justify-content: center;
}

.header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.header img {
  width: 80px;
  height: 80px;
}

#truth_table_popup {
  display: none;
  flex-direction: column;
  background-color: #EEEEEE;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid #104887;
  border-radius: 5px;
  z-index: 3;
}

#truth_table_popup span {
  display: flex;
  font-size: 30px;
  font-weight: 700;
  margin-right: 10px;
  height: 30px;
  justify-content: flex-end;
}

#close_truth_table {
  cursor: pointer;
}

#truth_table {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: white;
  height: 100%;
  width: auto;
  padding: 5px;
}

.truth_table_header {
  border-bottom: 1px solid black;
}

.row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.col {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 25px;
}

.output_start {
  border-left: 1px solid black;
}

.applet_title {
  font-size: 40px;
  color: #805f3b;
}

.main_container {
  justify-content: center;
  margin-top: 30px;
  align-items: center;
}

.design_window_area {
  justify-content: space-between;
  width: 1000px;
  height: 450px;
}

.design_window {
  width: 100%;
  height: 100%:
}

.centered_input_div_wrapper {
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}

.input_circle {
  cursor: pointer;
  display: flex;
  position: relative;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: white;
  border: 2px solid #104887;
  border-radius: 25px;
}

.input_circle:hover, .input_circle.selected {
  border: 2px solid blue;
}

.input_label {
  margin-top: -20px;
}

.input_line {
  position:absolute;
  top: 22px;
  left: 47px;
  width: 48px;
  height: 2px;
  background-color: #104887;
}

.input_connector {
  position: absolute;
  top: 19px;
  left: 97px;
}

.output_text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.output_line {
  position: absolute;
  top: 22px;
  left: -52px;
  width: 50px;
  height: 2px;
  background-color: #104887;
}

.output_connector {
  position: absolute;
  top: 19px;
  left: -64px;
}

.connector {
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border: 2px dotted green;
  border-radius: 5px;
  background-color: white;
  z-index: 3;
}

.connector:hover, .filled {
  background-color: black;
}

.input {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  caret-color: transparent;
}

.design_window {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 800px;
  height: 100%;
  border: 2px solid black;
  border-radius: 5px;
  background-color: white;
  z-index: 2;
}

.design_toolbar {
  align-items: center;
  justify-content: space-between;
  padding-left: 10px;
  padding-right: 10px;
  width: 600px;
  height: 70px;
  background-color: white;
  border: 2px solid black;
  border-top: none;
  border-radius: 0px 0px 5px 5px;
}

.centered_output_div_wrapper {
  align-items: center;
  justify-content: space-around;
  height: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}

.button_area {
  margin-top: 20px;
}

.v {
  display: flex;
  flex-direction: column;
}

.h {
  display: flex;
  flex-direction: row;
}

.gate {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 60px;
  height: 60px;
  border: 2px solid lightgray;
  border-radius: 5px;
}

.gate:hover {
  border: 2px solid blue;
}

.highlighted {
  border: 2px solid blue;
  box-shadow: 0px 0px 3px 2px blue;
}

#canvas {
  width: 100%;
  height: 100%;
}

button {
  margin-right: 15px;
  width: 100px;
  height: 30px;
  background-color: #FFFFFF;
  border: 3px solid #104887;
  border-radius: 5px;
  font-size: 14px;
}

button:hover {
  background-color: #bdd7f4;
}

button:disabled {
  background-color: #eeeeee;
}
