/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/*
	@TODO: Add to theme: new division fix for updated sass package.
*/
/**==================================================================================================================================
BREAKPOINT
@TODO: remove? What is use case?? either use simple global points or write custom line. why does first breakpoint have to be 0?
 ==================================================================================================================================*/
/**==================================================================================================================================
BREAKPOINT ENDS
==================================================================================================================================*/
span.edit-link {
  display: inline-block;
  background-color: yellow;
  font-weight: 700;
  position: fixed;
  left: 0;
  bottom: 3.125rem;
  transform: translateX(-45px);
  transition: all 0.2s;
}

span.edit-link a {
  display: block;
  padding: 0.9375rem;
}

span.edit-link:hover {
  transform: translateX(0);
}

/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * Block section background colors.
 * Include the background options ACF fields group to use these.
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
/*
	Variables for legacy dc plugins
*/
.chapter1-nav {
  display: flex;
  z-index: 1001;
  position: fixed;
  top: 50%;
  left: 32px;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateY(-50%);
  background: transparent;
  opacity: 0;
  transform: translateY(-50%) translateX(-100px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.chapter1-nav.visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.chapter1-nav.visible::before {
  opacity: 1;
}

.chapter1-nav__item {
  display: flex;
  position: relative;
  align-items: center;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.chapter1-nav.visible .chapter1-nav__item {
  opacity: 1;
  transform: translateX(0);
}

.chapter1-nav__item:nth-child(1) {
  transition-delay: 0.15s;
}

.chapter1-nav__item:nth-child(2) {
  transition-delay: 0.2s;
}

.chapter1-nav__item:nth-child(3) {
  transition-delay: 0.25s;
}

.chapter1-nav__item:nth-child(4) {
  transition-delay: 0.3s;
}

.chapter1-nav__item:nth-child(5) {
  transition-delay: 0.35s;
}

.chapter1-nav__item:nth-child(6) {
  transition-delay: 0.4s;
}

.chapter1-nav__item:nth-child(7) {
  transition-delay: 0.45s;
}

.chapter1-nav__item:nth-child(8) {
  transition-delay: 0.5s;
}

.chapter1-nav__item:nth-child(9) {
  transition-delay: 0.55s;
}

.chapter1-nav__item:nth-child(10) {
  transition-delay: 0.6s;
}

.chapter1-nav__item:nth-child(11) {
  transition-delay: 0.65s;
}

.chapter1-nav__item:nth-child(12) {
  transition-delay: 0.7s;
}

.chapter1-nav__item:nth-child(13) {
  transition-delay: 0.75s;
}

.chapter1-nav__item:nth-child(14) {
  transition-delay: 0.8s;
}

.chapter1-nav__item:nth-child(15) {
  transition-delay: 0.85s;
}

.chapter1-nav__item:nth-child(16) {
  transition-delay: 0.9s;
}

.chapter1-nav__item:nth-child(17) {
  transition-delay: 0.95s;
}

.chapter1-nav__item:nth-child(18) {
  transition-delay: 1s;
}

.chapter1-nav__item:nth-child(19) {
  transition-delay: 1.05s;
}

.chapter1-nav__item:nth-child(20) {
  transition-delay: 1.1s;
}

.chapter1-nav__timeline {
  z-index: 0;
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 18px;
  width: 2px;
  background: linear-gradient(to bottom, #7c3aed 60%, #7c3aed 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1s ease-out;
  transition-delay: 0.6s;
}

.chapter1-nav.visible .chapter1-nav__timeline {
  transform: scaleY(1);
}

.chapter1-nav__dot {
  box-sizing: border-box;
  display: flex;
  z-index: 1;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 16px;
  border: 1px solid #7c3aed;
  border-radius: 50%;
  border-color: #390067;
  background: #fff;
  background: #390067;
  transition: background 0.2s, border 0.2s, transform 0.3s ease-out;
}

.chapter1-nav__dot:hover {
  transform: scale(1.1);
}

.chapter1-nav__dot::after {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: white;
  content: "";
}

.chapter1-nav__dot.active {
  border-color: #390067;
  background: #390067;
}

.chapter1-nav__dot.active::after {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: white;
  content: "";
}

.chapter1-nav__dot.future {
  border-style: dashed;
  border-color: #390067;
  background: #BBA2E3;
}

.chapter1-nav__dot.future::after {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #390067;
  content: "";
}

.chapter1-nav__button {
  min-width: 20px;
  margin: 0;
  padding: 8px 24px;
  border: none;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.04);
  color: #2d1153;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.chapter1-nav__button:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.chapter1-nav__button.active {
  background: #5b2d91;
  color: #fff;
}

.chapter1-nav__button.future {
  background: #f3eaff;
  color: #7c3aed;
}

html, body {
  background: linear-gradient(180deg, #BBA2E3 0%, #E0CCFF 100%);
  background-position: fixed;
}

.canvas-container {
  position: fixed !important;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 90;
  background-color: transparent;
  display: grid;
  place-items: center;
}

.chapter1 {
  min-height: 1000vh;
  width: 100%;
  background-color: transparent;
  position: relative;
}

.chapter1 #canvas-1 {
  height: 100vh !important;
  width: 100%;
  position: fixed !important;
  top: 0;
  left: 0;
  height: 100vh;
}

.chapter1 section {
  height: 100vh;
  width: 100%;
}

.chapter1 .intro-section-1, .chapter1 .intro-section-2, .chapter1 .intro-section-3 {
  height: 150vh;
}

.chapter1 .hero-section {
  height: 98vh;
  position: relative;
  z-index: 99;
  background-color: transparent;
  width: 100%;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  place-items: center;
  text-align: center;
}

.chapter1 .hero-section h1 {
  grid-row: 2;
  margin-top: -2rem;
  color: var(--color__dark-purple);
  max-width: 75vw;
  text-align: center;
}

@media (max-width: 80em) {
  .chapter1 .hero-section h1 {
    font-size: 4.5rem;
    max-width: 85vw;
  }
}
@media (max-width: 60em) {
  .chapter1 .hero-section h1 {
    font-size: 3.5rem;
  }
}
.chapter1 .hero-section .hero-bottom-content {
  grid-row: 3;
  align-self: start;
  margin-top: auto;
  padding-bottom: 6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 3rem;
}

.chapter1 .hero-section .hero-bottom-content .scrolldown {
  margin-top: 1rem;
}

.chapter1 .text-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  background-color: transparent;
  position: relative;
  z-index: 100;
  height: 100vh;
  color: var(--color__dark-purple);
}

.chapter1 .text-container.text-left {
  padding-left: 5rem;
  flex-direction: column;
  text-align: left !important;
  align-items: flex-start;
  max-width: 40vw;
}

.chapter1-content__panel {
  position: fixed;
  right: 40px;
  bottom: 130px;
  width: 380px;
  max-width: 95vw;
  max-height: calc(100vh - 230px);
  min-height: 80px;
  background: var(--color__white);
  border-radius: 10px;
  box-shadow: 0 4px 32px rgba(80, 0, 80, 0.1);
  padding: 0;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, opacity 0.25s, transform 0.25s;
  overflow: hidden;
  border: 1.5px solid #e5d6fa;
  opacity: 1;
  transform: scale(1);
  transform-origin: bottom right;
}

.chapter1-content__panel-inner {
  padding: 28px 32px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
  opacity: 1;
  transition: opacity 0.25s;
}

.chapter1-content__scrollable-area {
  flex: 1;
  overflow-y: auto;
  position: relative;
  min-height: 0;
  padding-right: 20px;
  margin-right: -20px;
}

.chapter1-content__panel.expanded {
  min-height: 220px;
  box-shadow: 0 8px 48px rgba(80, 0, 80, 0.18);
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;
}

.chapter1-content__panel-inner.content-fade-in {
  opacity: 0;
}

.chapter1-content__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #eee;
}

/* Custom scrollbar for scrollable area */
.chapter1-content__scrollable-area::-webkit-scrollbar {
  width: 8px;
}

.chapter1-content__scrollable-area::-webkit-scrollbar-thumb {
  background: #e5d6fa;
  border-radius: 8px;
}

.chapter1-content__scrollable-area::-webkit-scrollbar-track {
  background: transparent;
}

.chapter1-content__scrollable-area {
  scrollbar-width: thin;
  scrollbar-color: #e5d6fa transparent;
}

.chapter1-content__header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-weight: 400;
}

.chapter1-content__dot {
  width: 9px;
  min-width: 9px;
  height: 9px;
  background: #B063FF;
  border-radius: 50%;
  display: inline-block;
  margin-right: 2px;
}

.chapter1-content__header h2 {
  font-size: 1.45rem;
  margin: 0;
  color: #2d1153;
  font-weight: 500;
}

.chapter1-content__intro p {
  font-size: 1rem;
  color: #2d1153;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.chapter1-content__readmore, .chapter1-content__close {
  background: none;
  border-top: 1px solid #e5d6fa;
  padding: 12px 0px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
  transition: color 0.2s, background 0.2s;
  outline: none;
  width: 100%;
  margin-bottom: -12px;
  color: var(--color__dark-purple);
}

.chapter1-content__readmore[aria-expanded=true] {
  display: none;
}

.chapter1-content__icon {
  border: none;
  background-color: #D9D5E5;
  border-radius: 50%;
  padding: 0.25rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 1s ease;
  transform: rotate(45deg);
}

.chapter1-content__icon:hover {
  background-color: #C4BDDB;
}

.chapter1-content__readmore[aria-expanded=true] .chapter1-content__icon {
  transform: rotate(45deg);
}

.chapter1-content__close {
  display: none;
  margin-bottom: 0px;
  margin-top: -12px;
}

.chapter1-content__close .chapter1-content__icon {
  transform: rotate(0deg);
}

.chapter1-content__panel.expanded .chapter1-content__close {
  display: flex;
}

.chapter1-content__more {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(16px);
  transition: height 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.1s, transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: height, opacity, transform;
  pointer-events: none;
  margin-top: 12px;
  font-size: 1rem;
  color: #2d1153;
  background: none;
  border-radius: 0;
  padding: 0;
  outline: none;
}

.chapter1-content__more.content-visible {
  opacity: 1;
  transform: translateY(0);
}

.chapter1-content__more.expanded {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  /* height will be set to px in JS, then auto after transition */
  outline: none;
  padding-bottom: 20px;
}

.chapter1-content__more:focus {
  outline: none;
}

.chapter1-content__empty {
  color: #aaa;
  font-style: italic;
  text-align: center;
  width: 100%;
  padding: 32px 0;
}

.chapter1-content__panel.animating-out {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.chapter1-content__panel.animating-in {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 600px) {
  .chapter1-content__panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100vw;
    border-radius: 18px 18px 0 0;
    max-width: 100vw;
    padding: 0;
  }
  .chapter1-content__panel-inner {
    padding: 18px 10px 10px 10px;
  }
  .chapter1-content__readmore,
.chapter1-content__close {
    width: 100%;
    justify-content: center;
    padding: 12px 0;
    font-size: 1.15rem;
  }
}
