.fudgedit-container {
  overflow: hidden;
  position: relative;
  min-height: 100%;
  color: black;
}

.hex {
  font-family: 'Sourcecode Pro', Courier, monospace;
  font-size: 15px;
  height: 100%;
  outline: none;
}

.binView,
.hexView,
.asciiView,
.lineLabels {
  display: inline-block;
  padding: 0 10px;
  white-space: pre;
  position: relative;
}

.binLine span,
.hexLine span,
.charLine span {
  position: relative;
  height: 17px;
  display: inline-block;
}

.lineLabel {
  height: 17px;
}

.binLine > span > span {
  position: relative;
  width: 14px;
  padding: 0 3px;
  box-sizing: border-box;
}
.binLine span {
  padding: 0 0px;
}
.binLine > span > span.padBit::after {
  /* padding-right: 15px; */
  background-color: #0006;
  position: absolute;
  width: 1px;
  height: 100%;
  left: calc(100% + 0.5px);
  content: '';
}
.binLine > span > span:last-child.padBit::after {
  /* padding-right: 15px; */
  width: 2px;
  left: 100%
}
.binLine > span:last-child > span:last-child.padBit::after {
  display: none
}

.charLine span {
  width: 10px;
}

.hexLine span {
  position: relative;
  padding: 0 5px;
  width: 28px;
  box-sizing: border-box;
}
.hexLine span:not(:last-child).padByte::after {
  /* padding-right: 15px; */
  background-color: #0006;
  position: absolute;
  width: 2px;
  height: 100%;
  left: calc(100% - 1px);
  content: '';
}

.binLine span,
.hexLine span {
  cursor: default;
  user-select: none;
}

.binLine span.selected,
.charLine span.selected,
.hexLine span.selected {
  background-color: #8888FF80;
}

.binLine span.cursor,
.charLine span.cursor,
.hexLine span.cursor {
  background-color: #008;
  color: #FFF;
}

.binLine > span.added,
.charLine span.added,
.hexLine span.added {
  color: red;
}

.binLine > span > span:hover,
.charLine span:hover,
.hexLine span:hover {
  background-color: #000;
  color: #FFF;
}

.hexLine span.ASCII {
  font-weight: bold;
}

.binLine:nth-child(2n-1),
.hexLine:nth-child(2n-1),
.charLine:nth-child(2n-1),
.lineLabel:nth-child(2n-1) {
  background-color: #EEFFFF;
}

.binLine.selected,
.charLine.selected,
.hexLine.selected,
.lineLabel.selected {
  background-color: #FFA;
}

.separator {
  opacity: 0;
  pointer-events: none;
}

.region { opacity: 1; }

.highlight { mix-blend-mode: multiply; }

.region {
  position: relative;
}

.highlight:hover  .region:not(:hover) {
  fill: #0003;
}

.find {
  width: calc(100% - 20px);
  height: 50px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  background-color: #fff;
  z-index: 4;
}