﻿
.animate-zoom {
  opacity: 0;
  transform: scale(1.4);
  transform-origin: center center;
  transition: all 0.5s ease-out;
  display: inline-block;
}
.animate-zoom.visible {
  opacity: 1;
  transform: scale(1);
}



.animate-type {
  font-size: 16px;
  min-height: 2em;
  line-height: 1.8em;
}

.countup {
  font-size: 2.5rem;
  font-weight: bold;
}

.video-block {
  width: 100%;
  margin: 0 auto;
}

.video-block video {
  width: 100%;
  height: auto;
  display: block;
}

.typewriter-wrapper {
  display: inline;
}

#typewriter {
  white-space: pre-wrap;
}

#nextButton {
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  padding: 2px 10px;
  font-size: 1rem;
  cursor: pointer;
background-color: #fff;
font-size: 12px;
color: #000;
border: 1px solid #f00000;
border-radius: 15px;

}

#restartButton {
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  padding: 2px 10px;
  font-size: 1rem;
  cursor: pointer;
background-color: #fff;
font-size: 12px;
color: #000;
border: 1px solid #f00000;
border-radius: 15px;

}

#showAllButton {
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  padding: 2px 10px;
  font-size: 1rem;
  cursor: pointer;
background-color: #fff;
font-size: 12px;
color: #000;
border: 1px solid #f00000;
border-radius: 15px;

}


.image-zoom-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  overflow: hidden;
}

.image-zoom-wrapper {
  height: auto;
  overflow: hidden;
  position: relative;
}

.zoom-on-scroll {
  width: 100%;
  height: auto;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.fadeIn {
  animation: zoom-in-anim 2s;
}

@keyframes zoom-in-anim {
  0% {
    transform: scale(2);
    opacity: 0;
  }
  60% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-type {
  display: none;
}


.toggle-container {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  background: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-label {
  font-size: 14px;
  font-weight: bold;
}

.toggle-button {
  padding: 4px 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: white;
}

.toggle-button.on {
  background-color: #4caf50;
}

.toggle-button.off {
  background-color: #f44336;
}


.text-toggle-switch {
  position: fixed;
  bottom: 120px;
  left: 40px;
  color: #fff;
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 10000;
  font-size: 12px;
  user-select: none;
  background: #f00000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}


.text-toggle-switch:hover {
  transform: scale(1.1);
}

@media (max-width: 600px) {
    .text-toggle-switch {
     bottom: 40px;
    }
}

.text-toggle-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

    .fade-message {
      position: fixed;
      bottom: 175px;
      left: 150px;
      transform: translateX(-50%) translateY(30px);
      background-color: #fff;
      color: #000;
      padding: 12px 20px;
      border-radius: 10px;
      font-size: 12px;
      text-align: center;
      opacity: 0;
      pointer-events: auto;
      transition: opacity 0.5s ease, transform 0.5s ease;
      z-index: 9999;
      border: 1px solid #f00000;
      box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    }

    .fade-message.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }


@media (max-width: 600px) {
    .fade-message {
     bottom: 95px;
    }
}


.chart-container {
  width: 100%;
  margin: 0 auto;
  background-color: #fff;
}

.chart-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 10px;
}

.axis-label-left {
  text-align: left;
  padding-left: 10px;
}

.axis-label-right {
  text-align: right;
  padding-right: 10px;
}

.custom-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.legend-box {
  display: inline-block;
  width: 20px;
  height: 12px;
  margin-right: 5px;
  vertical-align: middle;
}

.legend-box.sales {
  background-color: rgba(255, 99, 132, 0.4);
}

.legend-box.profit {
  background-color: rgba(75, 192, 192, 0.6);
}

.legend-line-rate {
  display: inline-block;
  width: 20px;
  height: 0;
  border-top: 3px solid blue;
  border-radius: 10px;
  margin-right: 5px;
  vertical-align: middle;
  position: relative;
}

.legend-line-rate::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: blue;
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: calc(50% - 3px);
}

.chart-wrapper {
  width: 100%;
  height: 400px;
  position: relative;
}

#chart {
  position: absolute;
  top: 0;
  left: 0;
}



.io-wipe-radial .img-wrap {
  clip-path: circle(0% at 50% 50%);
  -webkit-clip-path: circle(0% at 50% 50%);
  transition: clip-path 3s ease, -webkit-clip-path 3s ease;
}


.io-wipe-radial .img-wrap.revealed {
  clip-path: circle(150% at 50% 50%);
  -webkit-clip-path: circle(150% at 50% 50%);
}



.wipe3-lr {
  --wipe-duration: 2s;                 
  --wipe-stagger: .15s;                
  --wipe-ease: cubic-bezier(0,0,.2,1); 

  position: relative;
  overflow: hidden;
}
.wipe3-lr > img {
  display: block;
  width: 100%;
  height: auto;
}


.wipe3-lr .wipe-cover {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 34%;                 
  background: #fff;            
  transform: translateX(0);
  transition: transform var(--wipe-duration) var(--wipe-ease);
  will-change: transform;
  pointer-events: none;
  z-index: 2;
}


.wipe3-lr .wipe-cover.c1 { top: 0;   }
.wipe3-lr .wipe-cover.c2 { top: 33%; }
.wipe3-lr .wipe-cover.c3 { top: 66%; }


.wipe3-lr.is-revealed .wipe-cover.c1 {
  transform: translateX(105%);
  transition-delay: calc(var(--wipe-stagger) * 0);
}
.wipe3-lr.is-revealed .wipe-cover.c2 {
  transform: translateX(105%);
  transition-delay: calc(var(--wipe-stagger) * 1);
}
.wipe3-lr.is-revealed .wipe-cover.c3 {
  transform: translateX(105%);
  transition-delay: calc(var(--wipe-stagger) * 2);
}

.reveal-on-showall { display: none; }

.typewriter-wrapper .button-group {
  text-align: right;
}
