/*
	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
*/
section.epilepsi-horizontal-eeg-section {
  position: relative;
  width: 100%;
  margin-top: -156vh;
  z-index: 98;
  background-color: var(--color__bg-black);
  border-top-left-radius: 2.4em;
  border-top-right-radius: 2.4em;
  isolation: isolate;
  overflow: hidden;
}

section.epilepsi-horizontal-eeg-section .small-spacer {
  height: 38vh;
}

section.epilepsi-horizontal-eeg-section .horizontal-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color__bg-black);
  border-top-left-radius: 2.4em;
  border-top-right-radius: 2.4em;
  z-index: 1;
}

section.epilepsi-horizontal-eeg-section .horizontal-track {
  position: absolute;
  top: 0;
  left: 0;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  height: 100%;
  display: flex;
  will-change: transform;
  overflow: hidden;
}

section.epilepsi-horizontal-eeg-section .horizontal-track .horizontal-spacer {
  width: 10vw;
}

section.epilepsi-horizontal-eeg-section .eeg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

section.epilepsi-horizontal-eeg-section .panel {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5rem;
  position: relative;
  z-index: 2;
}

section.epilepsi-horizontal-eeg-section .panel p,
section.epilepsi-horizontal-eeg-section .panel .paragraph-text {
  margin: 0;
  max-width: 45rem;
  color: var(--color__white);
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

section.epilepsi-horizontal-eeg-section .eeg-panel {
  flex: 0 0 calc(200vw + 150px);
  position: relative;
}

section.epilepsi-horizontal-eeg-section .eeg-tagline {
  color: var(--color__white);
  position: absolute;
  left: 5rem;
  bottom: 3.75rem;
  font-size: 1rem;
  z-index: 3;
  text-align: left;
}

section.epilepsi-horizontal-eeg-section .paragraph-panels-track {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
}

section.epilepsi-horizontal-eeg-section .paragraph-panel {
  flex: 0 0 100vw;
}

section.epilepsi-horizontal-eeg-section .paragraph-container {
  position: relative;
  width: min(100%, 45rem);
  will-change: opacity, visibility;
}

section.epilepsi-horizontal-eeg-section .paragraph-container p {
  margin: 0;
  text-align: center;
  text-wrap: balance;
}

section.epilepsi-horizontal-eeg-section .paragraph-container .paragraph-text {
  max-width: none;
  text-align: center;
}

section.epilepsi-horizontal-eeg-section .paragraph-container .paragraph-text > *:last-child {
  margin-bottom: 0;
}

section.epilepsi-horizontal-eeg-section .paragraph-container .paragraph-text .blur-light {
  filter: blur(0.1875rem);
}

section.epilepsi-horizontal-eeg-section .paragraph-container .paragraph-text .blur-medium {
  filter: blur(0.375rem);
}

section.epilepsi-horizontal-eeg-section .paragraph-container .paragraph-text .blur-heavy {
  filter: blur(0.625rem);
}

section.epilepsi-horizontal-eeg-section .paragraph-container .paragraph-text [class*=blur-] {
  display: inline-block;
  transition: filter 0.25s ease;
}

section.epilepsi-horizontal-eeg-section .horizontal-mask {
  --mask-x: -50px;
  --mask-y: -50px;
  --mask-size: 0px;
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  background: var(--color__white);
  -webkit-mask-image: radial-gradient(circle, #000 50%, transparent 50%);
          mask-image: radial-gradient(circle, #000 50%, transparent 50%);
  -webkit-mask-position: var(--mask-x) var(--mask-y);
          mask-position: var(--mask-x) var(--mask-y);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: var(--mask-size) var(--mask-size);
          mask-size: var(--mask-size) var(--mask-size);
  will-change: mask-position, mask-size;
}

section.epilepsi-horizontal-eeg-section .horizontal-mask .horizontal-mask-track {
  z-index: 1;
}

section.epilepsi-horizontal-eeg-section .horizontal-mask .paragraph-container .paragraph-text,
section.epilepsi-horizontal-eeg-section .horizontal-mask .paragraph-container .paragraph-text p {
  color: var(--color__bg-black);
}

section.epilepsi-horizontal-eeg-section .horizontal-mask .paragraph-container .paragraph-text [class*=blur-],
section.epilepsi-horizontal-eeg-section .horizontal-mask .paragraph-container .paragraph-text p [class*=blur-] {
  filter: none;
}

section.epilepsi-horizontal-eeg-section .horizontal-exit-spacer {
  flex: 0 0 56vw;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

@media (min-width: 3000px) {
  section.epilepsi-horizontal-eeg-section .paragraph-container .paragraph-text [class*=blur-] {
    filter: none;
  }
  section.epilepsi-horizontal-eeg-section .horizontal-mask {
    display: none;
  }
}
