/* Global */

:root {
  --runthru-white: #FFFFFF;
  --runthru-black: #000000;
  --runthru-primary: #FF820A;
  --runthru-secondary: #FAC194;
  --runthru-muted: #fffaf6;
  --runthru-muted-partial: #F8EADF;
  --runthru-dark: #333333;
  --runthru-light: #CCCCCC;
  --runthru-accent: #D2D2D2;
  --runthru-text-secondary: #5D5D5D;
  --runthru-navbar-background: #FFFFFF;
  --runthru-navbar-border: var(--runthru-accent);
  --runthru-navbar-height: 1px;
  --runthru-card-background: #F6F6F6;
  --runthru-card-border: #C1C1C1;
  --runthru-card-hover-background: #F8EADF;
  --runthru-card-hover-border: #ffb208;
  --runthru-target-background-colour: #e9d2fd;
  --runthru-font-family: Poppins, Arial, "bootstrap-icons" !important;
  --runthru-link-colour: #FF820A;
  --runthru-link-colour-hover: #FF820A;
  --runthru-link-colour-active: #FF820A;
  --runthru-block-tip-header: #00961E;
  --runthru-block-tip-background: #E1FADF;
  --runthru-block-tip-text: #000000;
  --runthru-block-info-header: #096B96;
  --runthru-block-info-background: #DBF1FB;
  --runthru-block-info-text: #000000;
  --runthru-block-warning-header: #AB8B3F;
  --runthru-block-warning-background: #FEF7E6;
  --runthru-block-warning-text: #000000;
  --runthru-block-alert-header: #B0132B;
  --runthru-block-alert-background: #FAD8DD;
  --runthru-block-alert-text: #000000;
  --runthru-block-note-header: #7F804E;
  --runthru-block-note-background: #feff9c;
  --runthru-block-note-text: #000000;
  --runthru-sidebar-closed-width: 3.25rem;
  --runthru-sidebar-open-width: 17rem;
  --runthru-sidebar-closeopentime: 0.5s;
  --runthru-scrollbar-width: 0.25rem;
}

.preload * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

::selection {
  background: var(--runthru-primary);
  color: var(--runthru-white);
}

html {
  height: 100%;
  overflow-y: scroll;
  scroll-behavior: smooth;
}
  
body {
  font-family: var(--runthru-font-family);
  height: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

::-webkit-scrollbar-track {
  background-color: #F5F5F5;
}

::-webkit-scrollbar {
  width: var(--runthru-scrollbar-width);
  background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb {
  background: var(--runthru-primary);
}

::-webkit-scrollbar {
  scrollbar-color: var(--runthru-primary) #F5F5F5;
}

a {
  color: var(--runthru-link-colour);
  text-decoration: none;
}

a:hover {
  color: var(--runthru-link-colour-hover);
  text-decoration: underline;
}

a:active {
  color: var(--runthru-link-colour-active);
  text-decoration: underline;
}

/* Fonts */
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../webfonts/Poppins_20_latin-ext.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../webfonts/Poppins_20_latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Navbar */

.runthru-navbar {
  background: var(--runthru-navbar-background);
  position: sticky;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
}

/* Sidebar */

.runthru-sidebar {
  width: var(--runthru-sidebar-closed-width);
  position: fixed;
  z-index: 1;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  overflow-y: hidden;
  transition: 0.5s;
}

.runthru-sidebar ul {
  opacity: 0;
  transition: var(--runthru-sidebar-closeopentime);
}

#runthru-content {
  transition: margin-left var(--runthru-sidebar-closeopentime);
  margin-left: var(--runthru-sidebar-closed-width);
}

.runthru-sidebar.active {
  width: var(--runthru-sidebar-open-width);
}

.runthru-sidebar.active ul {
  opacity: 100;
}

#runthru-content.active {
  margin-left: var(--runthru-sidebar-open-width);
}

.runthru-sb-homebtn {
  border-radius: 50rem !important;
  padding: 0.25rem;
  color: var(--runthru-primary);
  border: 1px solid var(--runthru-primary);
  background: none;
  border-radius: 50rem !important;
  text-decoration: none;
  transition: color .2s ease-out,background-color .2s ease-in-out,border-color .2s ease-in-out;
}

.runthru-sb-homebtn:hover {
  border-radius: 50rem !important;
  color: var(--runthru-primary);
  border: 1px solid var(--runthru-primary);
  background: var(--runthru-secondary);
  border-radius: 50rem !important;
}

.runthru-sb-homebtn:active {
  border-radius: 50rem !important;
  color: var(--runthru-white);
  border: 1px solid var(--runthru-primary);
  background: var(--runthru-primary);
  border-radius: 50rem !important;
}
/* Page */

/* Breadcrumbs */

.runthru-breadcrumb-bar {
  margin-bottom: 1rem;
  padding-left: 0;
}

/* Title bar */

.c-bar {
  background-color: #f8f8f8;
  border-bottom: 1px solid #e3e3e3;
}

/* Level */

.runthru-section-heading-link {
  color: #222222;
  text-decoration: none;
}

.runthru-section-heading-link:hover {
  color: var(--runthru-primary);
  text-decoration: underline;
}

.runthru-card {
  margin: 24px 4px;
  padding: 12px 16px;
  border: 1px solid var(--runthru-card-border);
  display: flex;
  align-items: flex-end;
  background: var(--runthru-card-background);
  border-radius: 0.25rem;
  color: #222222;
  transition-property: background-color, color;
  transition-duration: 0.25s;
  transition-timing-function: ease-in-out;
  text-decoration: none;
}

.runthru-card:hover {
  border: 1px solid var(--runthru-card-hover-border);
  background: var(--runthru-card-hover-background);
  color: var(--runthru-primary);
  cursor: pointer;
  text-decoration: none;
}

.runthru-card:focus-visible {
  border: 1px solid var(--runthru-card-hover-border);
  background: var(--runthru-card-hover-background);
  color: var(--runthru-primary);
  cursor: pointer;
  outline-color: transparent;
}

.runthru-card-small {
  margin: 12px 4px;
  padding: 12px 16px;
  border: 1px solid var(--runthru-card-border);
  align-items: baseline;
  background: var(--runthru-card-background);
  border-radius: 0.25rem;
  color: #222222;
  transition-property: background-color, color;
  transition-duration: 0.25s;
  transition-timing-function: ease-in-out;
  justify-content: space-between;
  display: flex;
  text-decoration: none;
  flex-direction: column;
}

.runthru-card-small:hover {
  border: 1px solid var(--runthru-card-hover-border);
  background: var(--runthru-card-hover-background);
  color: var(--runthru-primary);
  cursor: pointer;
  text-decoration: none;
}

.runthru-card-small:focus-visible {
  border: 1px solid var(--runthru-card-hover-border);
  background: var(--runthru-card-hover-background);
  color: var(--runthru-primary);
  outline: transparent;
}
/* Page */

.runthru-page-top-side {
  top: 0px;
  margin-top: -96px;
  margin-bottom: 4px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.runthru-page-top-side::-webkit-scrollbar {
  display: none;
}

.runthru-page-top-side-no-title {
  margin-top: -50px;
}

.runthru-sidebar {
  background: var(--runthru-muted);
  color: var(--runthru-primary);
}

.runthru-sidebar .runthru-sidebar-links {
  height: 100%;
  overflow-y: hidden;
  overflow-x: hidden;
  visibility: hidden;
  transition: visibility 0s, opacity 0.5s ease-in-out;
}

.runthru-sidebar.active .runthru-sidebar-links {
  overflow-y: auto;
  overflow-x: hidden;
  visibility: visible;
}

.runthru-sidebar-buttons {
  position: absolute;
  bottom: 0;
  right: 0;
  flex-direction: column;
  display: flex;
  z-index: 1;
  margin-right: var(--runthru-scrollbar-width);
}


.runthru-sidebar-buttons-on-page {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s ease-in-out;
}

.runthru-sidebar-button {
  background: var(--runthru-muted);
  color: var(--runthru-text-secondary);
  margin: 0.125rem;
  font-size: 0.75rem;
  border: 0;
}

.runthru-sidebar-button:hover {
  background: var(--runthru-muted-partial);
}

.runthru-sidebar-button:focus-visible {
  background: var(--runthru-muted-partial);
}

#runthru-sidebar-toggle-text::before {
  transition: transform var(--runthru-sidebar-closeopentime);
  transform: rotateY(0deg);
}

.active #runthru-sidebar-toggle-text::before {
  transform: rotateY(-180deg);
}

@media (min-width: 992px) {
  .runthru-page-top-side {
    top: 0px;
    margin-top: -96px;
    margin-bottom: 4px;
    overflow-y: auto;
  }
  .runthru-page-top-side-no-title {
    margin-top: -50px;
  }
}

@media (max-width: 768px) {
  .runthru-sidebar {
    width: 0;
  }

  .runthru-sidebar-buttons-on-page {
    visibility: visible;
    opacity: 0.75;
    position: fixed;
    right: unset;
    left: 0;
    bottom: 0;
    display: flex;
    margin-left: var(--runthru-scrollbar-width);
    margin-right: unset;
  }

  .runthru-sidebar-buttons-on-page.active {
    visibility: hidden;
    opacity: 0;
  }
  
  #runthru-content {
    margin-left: 0;
  }
  
  .runthru-sidebar.active {
    width: var(--runthru-sidebar-open-width);
    max-width: 100%;
  }
  
  #runthru-content.active {
    margin-left: 0;
  }
}

.runthru-sidenavbtn > i::before {
  transform: rotate(0deg);
  transition: transform .25s;
}

.runthru-sidenavbtn.collapsed > i::before {
  transform: rotate(-90deg);
}

.runthru-sidenavbtn:focus-visible {
  border: 1px solid black;
}

/* Instruction HTML Output Styles */
.bigimage {
  /* display: flex; */
}

.counterblock {
  display: flex;
  align-items: baseline;
}

.counterimage {
  margin-right: .5rem;
}

.textandimage {
  width: 100%;
}

.itemblock {
  display: flex;
}

.RunThruBigImage {
  /* max-width: 100%; */
  margin: 0.5rem auto;
}

.itemcontainer {
  /* max-width: 760px; */
  margin: 0 auto;
}

.snippedimage {
  max-width: 100%;
}

  
  /* Search */

  .runthru-search {
    width: 100%;
    padding: .375rem .75rem;
    font-weight: 400;
    line-height: 1.5;
    margin: auto 0;
    color: var(--runthru-dark);
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    border-bottom: 2px solid var(--runthru-secondary);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color .2s ease-in-out,box-shadow .2s ease-in-out;
  }
  
  .runthru-search:focus {
    color: var(--runthru-dark);
    background-color: #fff;
    border-color: var(--runthru-primary);
  }
  
  .runthru-search:hover {
    color: var(--runthru-dark);
    background-color: #fff;
    border-color: var(--runthru-primary);
  }

/* Search Results */

.runthru-searchResult-display {
    position: fixed;
    background: var(--runthru-muted);
    max-height: 70%;
    overflow-y: scroll;
    opacity: .975;
}

.runthru-searchResult-message {
    cursor: not-allowed;
}

.runthru-searchResult-message p {
  color: var(--runthru-link-colour);
  margin: 2px 4px;
}

.runthru-searchResult > div {
    padding: 5px 10px;
}

.runthru-searchResult > div > h5 {
  color: var(--runthru-link-colour);
}

.runthru-searchResult:hover {
    background-color: var(--runthru-muted-partial);
    cursor: pointer;
}

.runthru-searchResult-highlight {
    background-color: var(--runthru-muted-partial);
    cursor: pointer;
}

/* Collapsible */
.btn:focus,.btn:active {
  outline-color: transparent;
  box-shadow: none;
}

.collapsible {
  background-color: white;
  color: black;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none !important;
  text-align: left;
  outline-color: transparent;
  font-size: 15px;
}

.collapseactive, .collapsible:hover {
  background-color: #dddddd;
}

.content {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: #f1f1f1;
}

.wrapper {
  max-width: 800px;
  margin: auto;
  margin-top: 1rem;
  border: 1px solid #ccc !important;
}

.counterblock {
  margin-bottom: 0.5rem;
}

.itemcontainer p {
  margin-bottom: 0;
}

/* Autocomplete */

.autocomplete-suggestions {
  text-align: left; cursor: default; border: 1px solid #ccc; border-top: 0; background: #fff; box-shadow: -1px 1px 3px rgba(0,0,0,.1);
  border-radius: 10px;

  /* core styles should not be changed */
  position: absolute; display: none; z-index: 9999; max-height: 254px; overflow: hidden; overflow-y: auto; box-sizing: border-box;
}
.autocomplete-suggestion { position: relative; padding: 0 .6em; line-height: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.02em; color: #333; }
.autocomplete-suggestion b { font-weight: normal; color: #1f8dd6; }
.autocomplete-suggestion.selected { background: #f0f0f0; }


/* Link Targets */
h1:target {
  background-color: var(--runthru-target-background-colour);
  transition: background-color .25s ease-in;
}

h2:target {
  background-color: var(--runthru-target-background-colour);
  transition: background-color .25s ease-in;
}

h3:target {
  background-color: var(--runthru-target-background-colour);
  transition: background-color .25s ease-in;
}

h4:target {
  background-color: var(--runthru-target-background-colour);
  transition: background-color .25s ease-in;
}

h5:target {
  background-color: var(--runthru-target-background-colour);
  transition: background-color .25s ease-in;
}

h6:target {
  background-color: var(--runthru-target-background-colour);
  transition: background-color .25s ease-in;
} 

/* Customisations */
.nav > .nav-link {
  color: var(--runthru-text-secondary);
}

.nav > .nav-link:hover {
  color: var(--runthru-link-colour-hover);
}

.nav > .nav-link:active {
  color: var(--runthru-link-colour-active);
}

.tooltip {
  --bs-tooltip-bg: var(--runthru-muted-partial);
  --bs-tooltip-opacity: 0.9;
  --bs-tooltip-color: var(--runthru-primary);
}

/* Blocks */
div[class^="runthru-block-"] {
  margin: 1rem 0;
  padding: 0.55rem 1rem;
  border-radius: .25rem;
}

div[class^="runthru-block-"]::before {
  padding-bottom: .5rem;
}

div[class^="runthru-block-"]::first-letter {
  display: inline-block;
  vertical-align: -.125em;
  fill: currentcolor;
}

div[class^="runthru-block-"] p {
  margin-bottom: 0;
}

/* Info */
.runthru-block-info{
  background: var(--runthru-block-info-background);
  color: var(--runthru-info-tip-text);
}

.runthru-block-info::before {
  content: "\F431  Info";
  color: var(--runthru-block-info-header);
}

/* Warning */
.runthru-block-warning{
  background: var(--runthru-block-warning-background);
  color: var(--runthru-block-warning-text);}

.runthru-block-warning::before {
  content: "\F33B  Warning";
  color: var(--runthru-block-warning-header);
}

/* Alert */
.runthru-block-alert {
  background: var(--runthru-block-alert-background);
  color: var(--runthru-block-alert-text);
}

.runthru-block-alert::before {
  content: "\F623  Alert";
  color: var(--runthru-block-alert-header);
}

/* Tip */
.runthru-block-tip {
  background: var(--runthru-block-tip-background);
  color: var(--runthru-block-tip-text);
}

.runthru-block-tip::before {
  content: "\F46B  Tip";
  color: var(--runthru-block-tip-header);
}

/* Note */
.runthru-block-note {
  background: var(--runthru-block-note-background);
  color: var(--runthru-block-note-text);
}

.runthru-block-note::before {
  content: "\F4CA  Note";
  color: var(--runthru-block-note-header);
}

/* A */
.runthru-block-a {
  background: #da00da30;
}

.runthru-block-a::before {
  content: "\F46B  A";
  color: #cc0de6;
}

/* Runthru Software */
.runthru-block-abc {
  background: #f7f8ff;
}

.runthru-block-abc::before {
  content: url(/images/RunthruSoftwareLogo.svg);
  display: block;
  max-width: 8rem;
}