#help {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
}
#help .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 101;
  background: rgba(0, 0, 0, 0.4);
}
#help .close {
  display: none;
  position: absolute;
  top: 2em;
  right: 2em;
  color: var(--color-help-icon);
  width: 2em;
  height: 2em;
  border-radius: 2em;
  border: 2px solid var(--color-help-icon);
  padding: 0.35em;
  opacity: 0.8;
  cursor: pointer;
}
#help .close:hover {
  opacity: 1;
}
#help .close .icon {
  display: block;
  width: 100%;
}
.help_item {
  display: none;
}
#help .item {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  cursor: help;
}

#help .item:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border: 0.25em solid var(--color-help-icon);
  border-radius: 2em;
  transition: all 0.3s;
  z-index: 102;
}
#help .item:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  transform: translate(-50%, -50%);
  border: 0.125em solid var(--color-help-icon);
  border-radius: 2em;
  transition: all 0.3s;
  z-index: 102;
}
#help .item:hover:before {
  width: 0.5em;
  height: 0.5em;
}
#help .item:hover:after {
  width: 1.5em;
  height: 1.5em;
}
#help .item .text {
  position: absolute;
  top: 1em;
  left: 1em;
  width: 20em;
  background: var(--color-help-bg);
  color: var(--color-help-text);
  padding: 0.75em;
  border-radius: 8px;
  border-top-left-radius: 0;
  text-align: left;
  transform-origin: 0 0;
  transform: scale(0);
  z-index: 103;
}
BODY .show_help #help .item.ready .text {
  transition: all 0.3s;
}
#help .item.top_left .text {
  top: auto;
  left: auto;
  bottom: 1em;
  right: 1em;
  border-top-left-radius: 8px;
  border-bottom-right-radius: 0;
  transform-origin: 100% 100%;
}
#help .item.top_right .text {
  top: auto;
  bottom: 1em;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 0;
  transform-origin: 0 100%;
}
#help .item.bottom_left .text {
  left: auto;
  right: 1em;
  border-top-left-radius: 8px;
  border-top-right-radius: 0;
  transform-origin: 100% 0;
}
#help .item:hover .text, BODY.test_help #help .item.test .text {
  transform: scale(1);
}
#help .item .text *:first-child {
  margin-top: 0;
}
BODY.show_help #help, BODY.test_help #help {
  display: block;
}

#help .item.demo.animated:before, #help .item.demo.animated:after {
  transition: all 0.3s 0.6s;
}
#help .item.demo.animated:before {
  width: 0.5em;
  height: 0.5em;
}
#help .item.demo.animated:after {
  width: 1.5em;
  height: 1.5em;
}
BODY.show_help #help .item.demo.ready .text {
  transition: all 0.3s 0.6s;
}
#help .item.demo.animated .text {
  transform: scale(1);
}
#help .item.demo .cursor {
  width: 26px;
  height: 38px;
  position: absolute;
  top: -50px;
  left: 50px;
  z-index: 103;
  transition: all 1s;
}
#help .item.demo.animated .cursor {
  top: 0;
  left: 0;
  width: 13px;
  height: 19px;
}

/**
 * ALTERATIONS TO DESIGN STYLES. 
 * 
 * These styles do not exist in design examples and must be imported forward manually.
 * They're caused by implementation differences. In addition to these note that BODY references in the original code
 * have been replaced with #app.
 */
#app #help {
  position: absolute; /* enable scrolling support */
}

BODY:has(#app > #help) {
  overflow: hidden;
}

.w_help {
  position: relative;
}

/* override default display none with block, opacity and location for javascript */
BODY .show_help .w_help .help_item {
  position: absolute; /* help items are positioned absolutely due to them needing to be displayed to get location data */
  display: block;
  opacity: 0;
  top: 50%;
  left: 50%;
  width: 0px;
  height: 0px;
  overflow: hidden;
}

/* active elements get opacity 1 */
BODY .show_help .help_item.active {
  opacity: 1;
}

#help .item .text p {
  margin: 0;
}

#help .item .text svg {
  height: 1em;
  width: 1.5em;
  margin-bottom: 0.1em !important;
}

/* Scroll support, header and sidebar elements are fixed to help overlay */
#help .item.fixed {
  position: fixed;
  z-index: 110;
}

/* Force demo to be hidden due to different html classes */
#help .item.hidden {
  display: none;
}
/**
 * END DESIGN STYLES ALTERATIONS.
 */
