/*
	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-breakdown {
  position: relative;
  width: 100%;
}

.epilepsi-breakdown__canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.epilepsi-breakdown__scroll-region {
  position: relative;
  height: 450vh;
  z-index: 1;
}

.epilepsi-breakdown__viewport {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.epilepsi-breakdown__bubbles-ring {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.epilepsi-breakdown__bubble {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--bubble-angle)) translateX(calc(min(18vw, 14rem) + 16px)) rotate(calc(-1 * var(--bubble-angle)));
  opacity: 0;
  will-change: opacity;
}

.epilepsi-breakdown__bubble span {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2rem;
  color: var(--color__white);
  font-size: 0.875rem;
  font-weight: 400;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 28px 2px rgba(187, 162, 227, 0.4);
}

.epilepsi-breakdown__aftermath {
  position: relative;
  z-index: 1;
  margin-top: -150vh;
  height: 200vh;
}

.epilepsi-breakdown__aftermath-section {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.epilepsi-breakdown__pin-fade {
  color: var(--color__dark-purple);
  opacity: 0;
  z-index: 5;
  text-wrap: balance;
}
