body { font-family: Arial; padding: 20px; }

#editor {
  width: 500px;
  height: 300px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

button { margin-right: 10px; }

.step {
  display: flex;
  align-items: center;
  margin-top: 25px;
}

.step img {
  width: 300px;
  height: 220px;
  border: 2px solid #ccc;
  cursor: pointer;
}

.step img.selected {
  border-color: #0077ff;
}

.arrowBlock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 20px;
}

.arrowBlock input {
  width: 160px;
  text-align: center;
  margin: 6px 0;
}

.arrowBlock svg {
  display: block;
}

.step {
  position: relative;
}

.step svg.mechanism {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.step svg.mechanism path {
  stroke: black;
  stroke-width: 2;
  fill: none;
}
.icon-btn {
  width: 30px;
  height: 30px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.undo-btn {
  background-image: url("undo.png"); /* left arrow */
}

.redo-btn {
  background-image: url("undo.png"); /* right arrow */

  transform: scaleX(-1);

.icon-btn:hover {
  opacity: 0.8;
}

.icon-btn:active {
  opacity: 0.6;
}
}