body,
html {
  margin: 0;
  padding: 0;
  text-align: center;
  min-height: 1000px;
}
input,
p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}
svg {
  width: auto;
  height: 100%;
  position: absolute !important;
  top: 0 !important;
  left: 0;
  margin: 0 auto;
  padding: 0;
}
.inputs {
  width: 100%;
  position: relative;
  display: block;
}
.top-container,
.bottom-container {
  width: 100%;
  height: auto;
  position: relative;
  display: block;
  overflow: hidden;
  height: 180px;
}
.bottom-container {
  height: calc(100vh - 160px);
}
.toolbar {
  position: absolute;
  bottom: 0;
  right: 1em;
  z-index: 2;
}
.plus,
.minus {
  background-color: rgba(189, 189, 189, 0.85);
  color: white;
  border-radius: 50%;
  border: none;
  width: 1em;
  height: 1em;
  line-height: 1em;
  font-size: 2em;
  display: inline-block;

  cursor: pointer;
  text-align: center;
  margin: 0 auto;
  padding: 0;
  margin-right: 0.5em;
}
.plus:hover,
.minus:hover {
  background-color: rgb(189, 189, 189);
}
.content-container {
  position: absolute;
  height: calc(100vh - 160px);
}
#content {
  position: relative;
  display: block;
  z-index: 1;
  height: 840px;
  width: 1080px;
}
.elem {
  display: inline-block;
}
.arrow-element-right:after {
  position: absolute;
  right: 0;
  top: -4px;
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-left: 20px solid black;
  border-bottom: 5px solid transparent;
}
.arrow-element-left:after {
  position: absolute;
  left: 0;
  top: -4px;
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-right: 20px solid black;
  border-bottom: 5px solid transparent;
}
.arrow-element-right.notactive:after {
  border-left: 20px solid #eaeaea;
}
.arrow-element-left.notactive:after {
  border-right: 20px solid #eaeaea;
}
.arrow-element-down.notactive:after {
  border-top: 20px solid #eaeaea;
}
.arrow-element-down:after {
  position: absolute;
  left: -4px;
  bottom: 0;
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 20px solid black;
}
.arrow-element-right,
.arrow-element-left,
.arrow-element-down {
  background-color: black;
  height: 1px;
  width: 1px;
  z-index: 1;
  position: absolute;
  display: block;
}
.arrow-content-right,
.arrow-content-left,
.arrow-content-down {
  color: black;
  position: absolute;
  display: block;
}
.arrow-content-right {
  width: 100%;
  text-align: center;
  top: 0;
}

.arrow-content-left {
  width: 100%;
  text-align: center;
  top: 0;
}

.arrow-content-down {
  left: 10px;
  text-align: center;
  top: 0;
}

.operation-element,
.input-element,
.end-element,
.start-element,
.condition-element {
  position: absolute;
  display: block;
  z-index: 2;
}
.end-element,
.start-element {
  padding: 5px 20px;
}
.operation-content,
.input-content,
.end-content,
.start-content,
.condition-content {
  position: relative;
  background: transparent;
  display: block;
  z-index: 2;
  margin: 0;
  padding: 0;
}
.end-element,
.start-element {
  border-radius: 50%;
  border: 1px solid #33cc33;
  background: #eafaea;
}

.operation-element {
  border: 1px solid #29abe2;
  background: #e9f6fc;
  padding: 0 20px;
}
.input-bg {
  position: absolute;
  z-index: 1;
  border: 1px solid #cc66cc;
  background-color: #faeffa;
  width: 110%;
  height: 100%;
  transform: skewX(-20deg);
  left: -5%;
  top: 0;
}
.romb {
  position: absolute;
  z-index: 1;
  border: 1px solid #fbb03b;
  background-color: #fff7eb;
  width: 200px;
  height: 200px;
  transform: rotate(45deg);
  left: 0;
  top: -50%;
}
.operation-element.notactive,
.end-element.notactive,
.start-element.notactive,
.condition-element.notactive,
.start-element.notactive,
.notactive .romb,
.notactive .input-bg {
  border-color: #eaeaea;
  color: #eaeaea;
  background-color: white;
}
.notactive .arrow-content-right,
.notactive .arrow-content-left,
.notactive .arrow-content-down {
  color: #eaeaea;
}
.arrow-element-right.notactive,
.arrow-element-left.notactive,
.arrow-element-down.notactive {
  background-color: #eaeaea;
}

.diamond {
  width: 0;
  height: 0;
  border: 50px solid transparent;
  border-bottom-color: red;
  position: relative;
  top: -50px;
}
.diamond:after {
  content: "";
  position: absolute;
  left: -50px;
  top: 50px;
  width: 0;
  height: 0;
  border: 50px solid transparent;
  border-top-color: red;
}
.display-inline mjx-container {
  display: inline-block !important;
}

@media (max-width: 400px) {
  .top-container {
    height: 280px;
  }
}
