#help pre {
  direction: ltr;
  font-size: large;
}
#help .blocklyEditableText {
  cursor: default !important;
}
#help .blocklyEditableText:hover > rect {
  stroke: none;
}
#help svg {
  direction: ltr;
}
#dialog #help {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
#dialog #help > div:first-child {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
#help .level-help-documentation,
#help .level-help-task {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #d6dce5;
  border-radius: 6px;
  line-height: 1.5;
}
#help .level-help-documentation h2,
#help .level-help-task h2 {
  margin: 0 0 12px;
  font-size: 1.1em;
}
#help .level-help-documentation h3 {
  margin: 12px 0 8px;
  font-size: 1em;
}
#help .level-help-documentation blockquote {
  margin: 0;
}
#help .level-help-documentation .js {
  display: none;
}
#help .level-help-documentation svg {
  display: block;
  margin: 8px 0;
}
#help .level-help-task p {
  margin: 0;
}
#resetProgressButton {
  margin-inline-start: 8px;
}

/* Documentation SVGs need their own field styles outside the Blockly renderer. */
#help .level-help-documentation .blocklyPathLight {
  fill: none;
  stroke-linecap: round;
  stroke-width: 1;
}
#help .level-help-documentation .blocklyText {
  fill: #fff;
  font-family: sans-serif;
  font-size: 11pt;
}
#help .level-help-documentation .blocklyEditableText > rect,
#help .level-help-documentation .blocklyNonEditableText > rect {
  fill: #fff;
  fill-opacity: .6;
  stroke: none;
}
#help .level-help-documentation .blocklyEditableText > text,
#help .level-help-documentation .blocklyNonEditableText > text {
  fill: #000;
}
#help .level-help-documentation .blocklyIconGroup {
  opacity: .6;
}
#help .level-help-documentation .blocklyIconShape {
  fill: #00f;
  stroke: #fff;
  stroke-width: 1px;
}
#help .level-help-documentation .blocklyIconSymbol {
  fill: #fff;
}

/* Help and victory share the same dialog dimensions and footer placement. */
#dialog #dialogDone {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
#dialog #dialogDone .level-victory-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  margin-bottom: 10px;
  overscroll-behavior: contain;
}
#dialog #dialogDoneButtons,
#dialog #help > div:last-child {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 1ex 3ex 0 !important;
}
#dialog #containerCode {
  overflow: auto;
}
