/* Global */

:root {
  --runthru-white: #FFFFFF;
  --runthru-black: #000000;
  --runthru-primary: #ff820a;
  --runthru-secondary: #545454;
  --runthru-dark: #333333;
  --runthru-light: #CCCCCC;
  --runthru-accent: #D2D2D2;
  --runthru-navbar-background: #FFFFFF;
  --runthru-navbar-border: var(--runthru-accent);
  --runthru-navbar-height: 54px;
  --runthru-link-colour: var(--runthru-secondary);
  --runthru-link-colour-hover: var(--runthru-secondary);
  --runthru-link-colour-active: var(--runthru-secondary);
  --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-font-family: Poppins, Arial, "bootstrap-icons" !important;
}

html {
  height: 100vh;
}
  
body {
  max-height: calc(100% - var(--runthru-navbar-height));
  margin-top: var(--runthru-navbar-height);
  height: calc(100% - var(--runthru-navbar-height));
  font-family: var(--runthru-font-family);
}

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

::-webkit-scrollbar {
  width: 6px;
  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);
  border-bottom: var(--runthru-secondary) 1px solid;
}

/* Sidebar */

.sidebar {
  min-width: 17rem;
  width: 17rem;
  height: 100vh;
  position: fixed;
  max-height: calc(100vh - var(--runthru-navbar-height));
  top: var(--runthru-navbar-height);
  left: 0;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  transition: margin 0.4s;
}

.runthru-sidebar-homebtn {
  border-radius: 50rem !important;
  padding: 0.25rem;
  color: var(--runthru-secondary);
  border: 1px solid var(--runthru-secondary);
  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-sidebar-homebtn:hover {
  border-radius: 50rem !important;
  color: var(--runthru-white);
  border: 1px solid var(--runthru-secondary);
  background: var(--runthru-secondary);
  border-radius: 50rem !important;
  text-decoration: none;
}

.runthru-sidebar-homebtn:active {
  border-radius: 50rem !important;
  color: var(--runthru-primary);
  border: 1px solid var(--runthru-secondary);
  background: var(--runthru-secondary);
  border-radius: 50rem !important;
  text-decoration: none;
}
/* Page */

/* Breadcrumbs */

.runthru-breadcrumb-bar {
  background-color: #efefef;
  border-bottom: 1px solid #e3e3e3;
}

/* Title bar */

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

.runthru-search {
  border-radius: 50rem;
  width: 100%;
  padding: .375rem .75rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--runthru-dark);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  -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-secondary);
  outline: 0;
  box-shadow: 0 0 0 0.125rem var(--runthru-secondary);
}

.runthru-search:hover {
  color: var(--runthru-dark);
  background-color: #fff;
  border-color: var(--runthru-secondary);
  outline: 0;
  box-shadow: 0 0 0 0.125rem var(--runthru-secondary);
}

/* Level */

.runthru-section-heading-link {
  color: var(--runthru-secondary);
  text-decoration: none;
}

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

/* Page */

.runthru-page-content {
  width: calc(100% - 17rem);
  margin-left: 17rem;
  max-height: calc(100vh - var(--runthru-navbar-height));
  margin-left: 17rem;
}

.runthru-page-top-side {
  top: 0px;
  margin-top: -96px;
  margin-bottom: 4px;
  overflow-y: auto;
  max-height: calc(100vh - var(--runthru-navbar-height) - 8px);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

.runthru-sidebar-toggle {
  position: fixed;
  bottom: 0;
  opacity: .5;
  transition: opacity .5s;
}

.runthru-sidebar-toggle:hover {
  opacity: .9;
}

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

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

#runthru-sidebar.active {
  margin-left: -17rem;
}

#runthru-content.active {
  width: -webkit-fill-available;
  margin-left: 0;
}

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

  body {
    margin-top: var(--runthru-navbar-height);
  }
}

@media (max-width: 768px) {
  #runthru-sidebar {
    margin-left: -17rem;
  }
  #runthru-sidebar.active {
    margin-left: 0;
  }

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

  #runthru-content {
    width: 100%;
    margin-left: 0;
  }
  #runthru-content.active {
    margin-left: 17rem;
    width: calc(100% - 17rem);
  }
}

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

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

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

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

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

.itemblock {
  display: flex;
}

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

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

.snippedimage {
  max-width: 100%;
}

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

.collapsible {
  background-color: white;
  color: black;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none !important;
  text-align: left;
  outline: none !important;
  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;
  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: #ffa;
  transition: background-color .25s ease-in;
}

h2:target {
  background-color: #ffa;
  transition: background-color .25s ease-in;
}

h3:target {
  background-color: #ffa;
  transition: background-color .25s ease-in;
}

h4:target {
  background-color: #ffa;
  transition: background-color .25s ease-in;
}

h5:target {
  background-color: #ffa;
  transition: background-color .25s ease-in;
}

h6:target {
  background-color: #ffa;
  transition: background-color .25s ease-in;
} 

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

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;
}


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

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

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