.pml_str {
  white-space: pre;
  /* Don't let strange font fallbacks screw up the line height */
  line-height: 1.0;
}
.pml_ident, .noWrap {
  white-space: nowrap;
}
.pml_str.breakWord, .pml_ident.breakWord {
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.pml_task, .pml_process {
  font-weight: bold;
}

.pml_link {
  cursor: pointer;
}

.descriptionLink, .descriptionStaticLink {
  text-decoration: none;
  cursor: help;
  color: inherit;
}

.pml_explorable {
  padding-left: 2em;
  position: relative;
}
.pml_explorable > .collapseButton {
  position: absolute;
  left: -10em;
  padding: 0 1em 0 11em;
}
.notExplorable {
  padding-left: 1em;
}

.pml_image {
  display: inline-block;
  position: relative;
  border: 2px solid black;
  margin: 3px;
}
/* The background isn't visible so use the border and make it thicker with an outline */
.pml_image.focus {
  border-color: var(--focus-color);
  outline: 3px solid var(--focus-color);
}
.pml_image > *:first-child {
  display: block;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}
.pml_image:not(:focus):not([fakeFocus]):not(.comparisonBase) > .imageViewer {
  display: none;
}
.imageViewer {
  position: relative;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  outline: 2px solid gray;
}
.singlePixel {
  width: 10px;
  height: 10px;
}
.imageViewer, .singlePixel {
  background: repeating-linear-gradient(45deg, #c0c0c0, #f0f0f0 10px, #c0c0c0 20px);
}
.imageViewer > *:first-child {
  display: block;
}
.viewerOverlayLeft, .viewerOverlayRight {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 0;
  color: black;
  text-shadow: white 0 0 2px;
  pointer-events: none;
}
.viewerOverlayRight {
  text-align: right;
  font-family: Inconsolata, monospace;
}
.viewerOverlayCenter {
  position: absolute;
  z-index: 10;
  pointer-events: none;
}
.viewerDiffOverlay, .imageDiffOverlay {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  animation: diffOverlay 1s infinite alternate;
}
@keyframes diffOverlay {
  from { filter: hue-rotate(0); }
  to { filter: hue-rotate(-90deg); }
}

.changeNext {
  text-decoration: underline;
}
.changePrev {
  text-decoration: line-through;
  opacity: 0.5;
}

.capitalize::first-letter {
  text-transform: capitalize;
}
/* If a treeItem uses capitalize, we need to apply the style to its <summary> */
.capitalize > summary::first-letter {
  text-transform: capitalize;
}

.searchMatch {
  font-weight: bold;
}

.breakWord {
  overflow-wrap: break-word;
}

.paragraph {
  margin-bottom: 0.5em;
}
.indented {
  margin-left: 1em;
}

.programValue > .pml_str, .programValue.pml_number, .programValue.pml_ident {
  background-color: rgb(252, 236, 238);
}

.notExplainable .programValue > .pml_str, .notExplainable .programValue.pml_number, .notExplainable .programValue.pml_ident {
  background-color: inherit;
}

.small {
  font-size: 60%;
}

.pml_inline.outOfScope, .pml_inline.optimizedOut, .pml_inline.badDebugInfo, .pml_inline.incompleteType, .pml_inline.unknownDiscriminator, .pml_inline.genericError, .pml_inline.dataAlternative {
  font-style: italic;
}

.pmlButton {
  background: none;
  border: none;
  user-select: none;
}
.elidedButton:empty {
  cursor: zoom-in;
  padding: 2px 4px;
}
.elidedButton:empty::before {
  content: "…";
}

.notebook > .contents div.tentative {
  opacity: 0.3;
}
.notebook > .contents > div {
  padding: 4px;
  margin: 4px;
  border: 2px solid black;
}
.notebook > .contents .shell {
  background-color: transparent;
}
.notebook > .contents > * > div {
  position: relative;
}
.notebook > .contents textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  resize: none;
  background-color: rgba(0,0,0,0.1);
  border: none;
}
.annotationDeleteButton {
  visibility: hidden;
  position: absolute;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  text-shadow: initial;
  text-align: initial;
  border: none;
  padding: 0 2px;
  margin: 0;
  width: 16px;
  height: 18px;
  top: calc((100% - 18px)/2);
  right: 5px;
  background-color: black;
  color: white;
}
.annotationDeleteButton::before {
  content: "✕";
}
*:hover:not(.tentative) > .annotationDeleteButton {
  visibility: visible;
}
.annotationToggleButton {
  visibility: hidden;
  position: absolute;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  text-shadow: initial;
  text-align: initial;
  border: none;
  padding: 0 2px;
  margin: 0;
  width: 16px;
  height: 18px;
  top: calc((100% - 18px)/2);
  right: 23px;
}
.annotationContainer > *:first-child:hover:not(.tentative) > .annotationToggleButton,
.annotationContainer > *:first-child:not(.tentative) > .annotationToggleButton:checked {
  visibility: visible;
}
.annotationColorPicker {
  visibility: hidden;
  position: absolute;
  border: none;
  padding: 0px 2px;
  margin: 0;
  width: 24px;
  height: 18px;
  top: calc((100% - 18px)/2);
  right: 41px;
}
.annotationColorPicker::-moz-color-swatch {
  border-radius: 5px;
  border-style: none;
}
.annotationContainer > *:first-child:hover:not(.tentative) > .annotationColorPicker[visible],
.annotationContainer > *:first-child:not(.tentative) > .annotationColorPicker[visible] {
  visibility: visible;
}

.expressionError {
  color: red;
}
.expressionErroneousPart {
  text-decoration: underline;
}

.joinedItem {
  border-left: 2px solid black;
  padding-left: 4px;
  margin: 2px 0;
}

.view.instructions > .contents {
  line-height: 1.2;
}
.interruptedInstruction {
  opacity: 0.5;
}
.instructionAddr {
  background: rgb(230,230,230);
  overflow: hidden;
  text-overflow: ellipsis;
}
.instructionText {
  display: inline-block;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 15em;
  margin-left: 2em;
  margin-right: 0.5em;
}
.instructionOutputs {
  display: inline-block;
  line-height: 1.2;
  vertical-align: top;
  white-space: normal;
}
.instructionInputs {
  display: none;
  overflow: hidden;
  margin-left: 2em;
  position: absolute;
  top: calc(100% - 2.8em);
  opacity: 0.9;
  border: 2px solid black;
  background: white;
}
.instructionContainer {
  position: relative;
}
.instructionContainer:hover .instructionInputs {
  display: block;
}
.instructionComments {
  display: inline-block;
  line-height: 1.2;
  vertical-align: top;
  margin-left: 15%;
  white-space: normal;
}
.pml_relpos {
  position: relative;
}
.extentButtonContainer, .jumpButtonContainer {
  position: absolute;
  right: 0%;
}
.rewindButton, .fastForwardButton {
  font-size: 130%;
}
.jumpForwardButton, .jumpBackwardButton {
  display: inline-block;
  font-size: 130%;
}
.jumpBackwardButton {
    transform: scaleX(-1);
}

.debuginfo > .contents details.outOfScope {
  color: rgb(128,128,128);
}
.debuginfo > .contents details:not(.outOfScope) {
  color: black;
}

/* In the locals view, move the pml_explorable styling to the containing block,
 * and apply it to all blocks. This avoids user confusion when explorable
 * elements are indented further than "regular" elements.
 */
.locals > .contents > .pml_block > .pml_explorable {
    padding-left: 0em;
    position: initial;
}
.locals > .contents > .pml_block {
    padding-left: 2em;
    position: relative;
}
