/* Component styles for the vanilla-JS LearnPath Hub UI.
   Each Svelte component's <style> block was automatically scoped to that
   component's own markup; here every selector is scoped explicitly with a
   component-prefixed class so rules never bleed across components. */

/* ---------- App ---------- */
div.app-banner {
  flex: 0 0 auto;
  align-self: stretch;
  margin: .5em 1em;
}

/* ---------- Logo ---------- */
div.logo-logo[data-style=wide] {
  position: relative;
  width: 0px;
  height: 0px;
}

div.logo-logo[data-style=wide] > div {
  position: absolute;
  left: -5em;
}

div.logo-logo[data-style=narrow] {
  display: inline-block;
  position: relative;
  top: 12px;
  margin-right: 4px;
}

img.logo-img {
  width: 50px;
}

/* ---------- LoadingAnimation ---------- */
#circularG_1 {
  left: 0px;
  top: 24px;
  animation-delay: 0.338s;
}

#circularG_2 {
  left: 6px;
  top: 6px;
  animation-delay: 0.454s;
}

#circularG_3 {
  top: 0;
  left: 24px;
  animation-delay: 0.57s;
}

#circularG_4 {
  right: 6px;
  top: 6px;
  animation-delay: 0.686s;
}

#circularG_5 {
  right: 0;
  top: 24px;
  animation-delay: 0.802s;
}

#circularG_6 {
  right: 6px;
  bottom: 6px;
  animation-delay: 0.908s;
}

#circularG_7 {
  left: 24px;
  bottom: 0;
  animation-delay: 1.024s;
}

#circularG_8 {
  left: 6px;
  bottom: 6px;
  animation-delay: 1.14s;
}

@keyframes bounce_circularG {
  0% {
    transform: scale(1);
  }
}

div.loadinganim-circularG {
  background-color: #98989c;
  transform: scale(.3);
  z-index: 0;
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 9px;
  animation-name: bounce_circularG;
  animation-duration: 0.908s;
  animation-iteration-count: infinite;
  animation-direction: normal;
}

div.loadinganim-container {
  align-self: center;
  background: var(--theme-light1);
  bottom: 0;
  display: flex;
  height: 5em;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  margin: 0 auto;
}

div.loadinganim-loading {
  position: absolute;
  height: 4em;
  left: 0;
  width: 4em;
}

/* ---------- GuideImage ---------- */
img.guideimage-guide {
  border: 2px solid var(--theme-light2);
}

img.guideimage-guide[data-loading=true] {
  opacity: 0;
}

div.guideimage-image[data-loading=true] {
  background-color: var(--theme-light2);
}

div.guideimage-errorImage {
  display: flex;
  margin: 4rem;
}

div.guideimage-errorImage > img {
  margin: auto;
  width: 10rem;
}

div.guideimage-loading {
  position: relative;
  width: 0px;
  height: 0px;
}

div.guideimage-loading > div {
  position: absolute;
  top: -1.5em;
  left: .5em;
}

/* ---------- Suggestion ---------- */
a.suggestion-searchSuggestion:hover,
a.suggestion-searchSuggestion:focus {
  background-color: var(--theme-gray2);
  background-image: none;
  color: var(--theme-gray6);
  outline: none;
}

a.suggestion-searchSuggestion {
  background-color: transparent;
  color: inherit;
  display: block;
  padding-bottom: 0.3em;
  padding-left: .7em;
  padding-top: 0.2em;
  text-decoration: none;
  transition: background-color 0.15s;
}

.suggestion-normalFont {
  text-align: left;
}

img.suggestion-icon {
  height: 1em;
  margin-right: .5em;
  vertical-align: middle;
  filter: invert(70%);
}

/* ---------- SearchMode ---------- */
div.searchmode-mode > input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}

div.searchmode-mode > input[type="radio"]:checked + label {
  border-bottom-color: var(--theme-secondary);
}

div.searchmode-mode > label {
  border-bottom-width: 5px;
  border-bottom-style: solid;
  border-bottom-color: white;
  display: inline-block;
  padding-bottom: 10px;
  padding-top: 10px;
  text-align: center;
  cursor: pointer;
}

div.searchmode-mode > label:hover {
  border-bottom-color: var(--theme-primary);
}

div.searchmode-mode.searchmode-results {
  border-bottom-color: var(--theme-gray1);
  border-bottom-style: solid;
  border-bottom-width: 1px;
  margin-bottom: 10px;
}

div.searchmode-mode.searchmode-full.searchmode-results > label {
  width: 15%;
}

div.searchmode-mode.searchmode-results > label {
  width: 20%;
}

div.searchmode-mode.searchmode-home > input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}

div.searchmode-mode.searchmode-home > label {
  background-color: var(--theme-gray1);
  margin-bottom: 10px;
  width: 49%;
}

div.searchmode-mode.searchmode-home > label:last-of-type {
  float: right;
}

/* ---------- SearchBox ---------- */
.searchbox-search img,
.searchbox-find img {
  height: 1em;
}

div.searchbox-search {
  padding: 6px 12px;
  border-color: var(--theme-gray1);
  border-style: solid;
  border-width: 2px;
  margin-right: 4px;
}

div.searchbox-search[data-open=false] {
  border-radius: 1.5em;
}

div.searchbox-search[data-open=true] {
  border-top-left-radius: 1.5em;
  border-top-right-radius: 1.5em;
  border-bottom-width: 1px;
  box-shadow: 7px 9px 18px 3px var(--theme-gray3);
}

div.searchbox-search > input {
  padding-left: 1.5em;
  border-style: none;
  outline: none;
  margin-top: .3em;
  width: calc(100% - 3.5em);
}

div.searchbox-search > button {
  float: right;
  margin-top: 10px;
  margin-right: .5em;
  border: 0px;
  background-color: transparent;
  width: 1em;
  outline: none;
}

div.searchbox-search > button[data-hidden=true] {
  opacity: 0;
}

ul.searchbox-suggestions {
  background-color: var(--theme-light1);
  border-bottom-left-radius: 1.5em;
  border-bottom-right-radius: 1.5em;
  border-color: var(--theme-gray2);
  border-style: solid;
  border-width: 1px;
  list-style-type: none;
  margin-top: 8px;
  padding-bottom: 2px;
  padding-left: 0px;
  position: absolute;
  z-index: 9;
  margin-left: -14px;
  box-shadow: 7px 9px 18px 3px var(--theme-gray3);
}

button.searchbox-find {
  background-color: var(--theme-light1);
  border-color: var(--theme-gray1);
  border-radius: 4em;
  border-style: solid;
  border-width: 2px;
  margin-left: 2px;
  height: 3em;
  width: 3em;
}

button.searchbox-find[data-text=true] {
  width: 5em;
}

button.searchbox-find[disabled] {
  background-color: var(--theme-gray1);
  color: var(--theme-gray4);
}

button.searchbox-find:focus {
  outline: none;
  box-shadow: 0 0 0 1pt var(--theme-gray4);
}

div.searchbox-findInner {
  display: flex;
  align-items: center;
}

div.searchbox-findInner > img {
  margin-left: .25em;
  margin-right: .5em;
}

img.searchbox-invert {
  filter: invert(70%);
}

/* ---------- Filter ---------- */
div.filter-filter {
  display: flex;
  flex-direction: row;
  margin-right: 1.5em;
  min-width: 13em;
}

div.filter-filter[data-wide=true] {
  flex-direction: column;
}

div.filter-filter[data-wide=false] > div:last-child {
  margin-left: 2em;
}

.filter-filter select {
  max-width: 10em;
}

div.filter-filter div.filter-checkbox {
  margin-bottom: .5em;
}

.filter-filter hr {
  border: 0;
  height: 1px;
  background: var(--theme-dark);
  margin-right: 2em;
}

div.filter-filter div.filter-regions,
div.filter-filter div.filter-subjects {
  max-height: 20em;
  overflow: auto;
}

/* ---------- FilterBox ---------- */
div.filterbox-filter[data-inline=true] > div {
  position: absolute;
  margin-left: 2em;
}

div.filterbox-filter {
  align-self: baseline;
}

div.filterbox-filter > div > a {
  display: flex;
  align-items: center;
}

div.filterbox-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: .5em;
  margin-right: 3.5em;
}

div.filterbox-title > img {
  margin-left: -5px;
}

/* ---------- Navigation ---------- */
.navigation-nav button {
  background-color: var(--theme-light1);
  color: var(--theme-primary);
  border-color: var(--theme-gray1);
  border-style: solid;
  border-width: 2px;
  height: 3em;
  vertical-align: middle;
  text-align: center;
  display: inline-block;
}

.navigation-nav button:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--theme-gray4);
  margin-left: -2px;
  margin-right: 2px;
}

.navigation-nav button:disabled {
  background-color: var(--theme-gray1);
}

.navigation-nav button.letterButton {
  background: transparent;
  border: none;
  font-weight: bold;
  height: auto;
  padding: 0px;
  vertical-align: initial;
}

.navigation-nav button.letterButton:focus {
  box-shadow: none;
  margin: 0;
  text-decoration: underline;
}

.navigation-nav button.letterButton:hover {
  text-decoration: underline;
}

.navigation-nav button.letterButton span {
  position: relative;
}

.navigation-nav select.jumplist {
  width: 100px;
}

.navigation-nav button.inView {
  color: var(--theme-secondary);
}

.navigation-nav ul {
  list-style-type: none;
}

.navigation-nav ul li {
  display: inline;
  font-weight: bold;
  padding-right: 10px;
}

/* ---------- GuideItem ---------- */
.guideitem-guideItem button {
  border-radius: 20px;
  border-style: solid;
  border-width: 1px;
  padding: 4px;
  height: 30px;
  vertical-align: middle;
}

button.guideitem-copyBtn {
  background-color: var(--theme-gray1);
  color: var(--theme-primary);
  border-color: transparent;
}

button.guideitem-copyBtn[data-copied="true"] {
  color: var(--theme-gray1);
  background-color: var(--theme-primary);
  border-color: transparent;
  border-style: solid;
  border-width: 1px;
  padding: 4px;
}

.guideitem-guideItem button:focus {
  outline: none;
  box-shadow: 0 0 0 1pt var(--theme-gray4);
}

button.guideitem-like {
  background-color: var(--theme-gray1);
  stroke: var(--theme-primary);
  fill: var(--theme-gray1);
  border: 0px;
  padding: 4px;
  margin-left: .5em;
  width: 30px;
  position: relative;
}

button.guideitem-like > svg {
  vertical-align: middle;
  display: inline-block;
  height: 22px;
  stroke-width: 1.5px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

button.guideitem-like[data-liked=true] {
  background-color: var(--theme-primary);
  stroke: var(--theme-gray1);
  fill: var(--theme-primary);
  margin-left: .5em;
}

div.guideitem-guideItem {
  margin: 0px auto 3em;
}

div.guideitem-content {
  margin-bottom: .5em;
}

div.guideitem-copyWrap > textarea {
  position: fixed;
  top: -2000px;
  left: -2000px;
}

button.guideitem-copyBtn > svg {
  margin-right: 4px;
  vertical-align: middle;
  display: inline-block;
  width: 1em;
  height: 1em;
}

div.guideitem-copied {
  margin-top: .5em;
  color: var(--theme-gray5);
}

div.guideitem-copied > img {
  vertical-align: middle;
  display: inline-block;
}

span.guideitem-downloads {
  margin-left: .5em;
  color: var(--theme-gray5);
  position: relative;
  top: 1px;
}

span.guideitem-likeCount {
  color: var(--theme-primary);
  position: relative;
  top: 1px;
  margin-left: .5em;
}

.guideitem-guideItem h3 {
  margin-bottom: 1px;
}

/* ---------- Header ---------- */
div.header-header {
  align-self: center;
  flex: 0 0 auto;
  z-index: 1;
}

div.header-filterBox.scrolling {
  display: none;
}

div.header-floatingHeader {
  align-self: center;
  display: none;
  flex: 0 0 auto;
  z-index: 1;
  background: white;
  box-shadow: black 0px 5px 9px -12px;
  padding-top: 10px;
  position: fixed;
  top: -400px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

div.header-floatingHeader.scrolling {
  display: block;
  transform: translate(0, 400px);
  transition: all 0.1s linear;
}

div.header-navigation {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 1em;
  justify-content: space-between;
}

div.header-searchBox {
  display: flex;
  margin-bottom: 1.5em;
  flex-grow: 1;
  max-height: 3em;
}

div.header-searchBox.header-floating[data-style="narrow"] {
  top: 12px;
  position: relative;
}

h1.header-pageTitle {
  margin-bottom: 1em;
  display: inline-block;
}

/* ---------- NoAccess ---------- */
img.noaccess-logoImg {
  width: 50px;
}

div.noaccess-logo {
  display: flex;
  align-items: center;
}

div.noaccess-logo > div:first-child {
  margin: 0px 15px 0px;
}

div.noaccess-header {
  align-self: left;
  flex: 0 0 auto;
  margin-top: 1em;
}

div.noaccess-error {
  flex: 0 0 auto;
  display: flex;
  margin-left: 2em;
}

h2.noaccess-denied {
  font-family: 'RobotoMono', 'Verdana', 'Arial', 'Helvetica', sans-serif;
  margin-top: 2em;
}

div.noaccess-message {
  margin-right: 3em;
}

/* ---------- NoResults ---------- */
div.noresults-searchBox {
  display: flex;
  margin-bottom: 1.5em;
  flex-grow: 1;
  max-height: 3em;
}

div.noresults-header {
  align-self: center;
  flex: 0 0 auto;
}

div.noresults-navigation {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 1em;
  justify-content: space-between;
}

div.noresults-empty {
  align-self: center;
  flex: 0 0 auto;
  margin-top: 3em;
}

div.noresults-error {
  margin: 1em auto;
  align-items: center;
}

div.noresults-robot {
  margin-top: 2em;
  display: flex;
  align-items: center;
}

div.noresults-robot p {
  margin-left: 2em;
}

div.noresults-robot > img {
  width: 6em;
}

h1.noresults-title {
  margin-bottom: 1em;
  display: inline-block;
}

/* ---------- Results ---------- */
div.results-guide {
  left: 20px;
  top: 20px;
  padding: 0px;
}

div.results-indexSeparator {
  border-bottom-color: black;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-top-color: black;
  border-top-style: solid;
  border-top-width: 1px;
  font-weight: bold;
  margin: 0px auto 1em;
}

div.results-resultList {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  width: 100%;
}

div.results-title {
  display: flex;
  justify-content: space-between;
  margin: .5em;
}

/* ---------- Search (home page) ---------- */
img.search-logo {
  width: 75px;
}

div.search-search {
  flex: 0 1 auto;
  margin: auto;
}

div.search-search > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

div.search-searchBox {
  display: flex;
  margin-bottom: 1.5em;
  flex-grow: 1;
  max-height: 3em;
}

h1.search-title {
  margin-top: .5em;
  margin-bottom: .8em;
}
