/* CSS Custom function in revealjs */
:root{
	--kenburns-duration: 20s;
	--parallax-duration: 60s;
}

/* Images sizes */

figure.big img{
	width: 50%;
}

figure.medium img{
	width: 20%;
	min-width: 320px;
}

figure.small img{
	width: 10%;
	min-width: 210px;
}


/* Ken Burns effect */
.kenburns {
  animation: kenburnseffect var(--kenburns-duration) ease;
  -ms-animation: kenburnseffect var(--kenburns-duration) ease;
  -webkit-animation: kenburnseffect var(--kenburns-duration) ease;
  -0-animation: kenburnseffect var(--kenburns-duration) ease;
  -moz-animation: kenburnseffect var(--kenburns-duration) ease;
}

.kenburns.fast {
  animation-duration: calc(var(--kenburns-duration) * 0.8);
}

.kenburns.faster{
  animation-duration: calc(var(--kenburns-duration) / 2);
}

.kenburns.slow{
  animation-duration: calc(var(--kenburns-duration) * 2);
}

.kenburns.slower{
  animation-duration: calc(var(--kenburns-duration) * 3);
}

@-webkit-keyframes kenburnseffect {
  0% {
    -webkit-transform-origin: bottom left;
    -moz-transform-origin: bottom left;
    -ms-transform-origin: bottom left;
    -o-transform-origin: bottom left;
    transform-origin: bottom left;
    transform: scale(1.0);
    -ms-transform: scale(1.0);
    /* IE 9 */
    
    -webkit-transform: scale(1.0);
    /* Safari and Chrome */
    
    -o-transform: scale(1.0);
    /* Opera */
    
    -moz-transform: scale(1.0);
    /* Firefox */
  }
  100% {
    transform: scale(1.2);
    -ms-transform: scale(1.2);
    /* IE 9 */
    
    -webkit-transform: scale(1.2);
    /* Safari and Chrome */
    
    -o-transform: scale(1.2);
    /* Opera */
    
    -moz-transform: scale(1.2);
    /* Firefox */
  }
}


/* Background Parallax Scrolling  */

.parallax-background {
  position: absolute;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  z-index: -10;
}

.layer {
  position: absolute;
  width: 100vw; 
  height: 120vh;
  background-size: cover;
  background-repeat: repeat-y;
}

.layer1 {
  background-image: url('../assets/images/coins.png');
  animation: scrollBackground var(--parallax-duration) linear infinite;
  background-repeat: repeat-y;
}

.layer2 {
  background-image: url('../assets/images/coins.png');
  opacity: 0.8; 
  animation: scrollBackground var(--parallax-duration) linear infinite reverse;
  background-repeat: repeat-y;
}

.layer1.fast, .layer2.fast {
  animation-duration: calc(var(--parallax-duration) / 1.5);
}

.layer1.faster, .layer2.faster{
  animation-duration: calc(var(--parallax-duration) / 3);
}

.layer1.slow, .layer2.slow{
  animation-duration: calc(var(--parallax-duration) * 3);
}

.layer1.slower, .layer2.slower{
  animation-duration: calc(var(--parallax-duration) * 4);
}


@keyframes scrollBackground {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50vh);
  }
}


/* specific class for css */
.vertical-center{
	margin-top: calc(var(--viewport-height) / 4);
}

/* Optional: remove focus from SVG or inner icon */
.green-audio-player .play-pause-btn svg:focus,
.green-audio-player .volume__button svg:focus {
  outline: none !important;
  box-shadow: none !important;
}

.green-audio-player .volume__button,
.green-audio-player .play-pause-btn,
.green-audio-player .volume__button:focus,
.green-audio-player .play-pause-btn:focus,
.green-audio-player .volume__button:focus-visible,
.green-audio-player .play-pause-btn:focus-visible,
.green-audio-player .volume__button:hover,
.green-audio-player .play-pause-btn:hover, 
.green-audio-player .controls:hover {
  outline: none !important;
  border: none !important;
  border-style: none !important;
  box-shadow: none !important;
}

.volume__controls.hidden {
  display: none;
}

.green-audio-player .controls__slider {
  position: relative;
}

.green-audio-player .slide-section {
  position: absolute;
  top: 0;
  bottom: 0;
  cursor: pointer;
  z-index: 1;
  border-right: 4px solid #9f00a7aa;
  box-sizing: border-box;
}


#corner-text {
  position: fixed;
  top: 20px;
  left: 20px;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 18px;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
  z-index: 9999;
  background: linear-gradient(to left, #00a57daa 0%, #9f00a7aa 100%);
  text-shadow: 0 0 2px rgba(0,0,0,.5);
}

#corner-text.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}


.audio-only-btn {
  font-size: 18px;
  padding: 6px 10px;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}


.audio-only-btn.active {
	background-color: #00a57daa;
	box-shadow: 0 0 10px #0affc2aa;
}

