/* Back to the Future Time Travel Effects CSS */

/* Speedometer */
.speedometer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--bttf-silver);
  border-radius: 5px;
  color: var(--bttf-neon-blue);
  font-family: 'Orbitron', monospace;
  z-index: 1000;
  padding: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
  transition: all 0.3s ease;
}

.speedometer .speed {
  font-size: 1.5em;
  margin-bottom: 5px;
}

.speedometer .unit {
  font-size: 0.7em;
}

.speedometer .target-speed {
  font-size: 0.8em;
  color: var(--bttf-neon-pink);
}

.speedometer.reached {
  animation: pulse 1s infinite;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.speedometer.reached .speed {
  color: var(--bttf-red);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Flux Capacitor */
.flux-capacitor {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 80px;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--bttf-silver);
  border-radius: 5px;
  z-index: 100;
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.flux-center {
  width: 20px;
  height: 20px;
  background-color: var(--bttf-white);
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.flux-light {
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: var(--bttf-neon-blue);
  border-radius: 50%;
  border: 1px solid var(--bttf-white);
}

.flux-light.top {
  top: 10px;
}

.flux-light.left {
  left: 10px;
  top: 45px;
}

.flux-light.right {
  right: 10px;
  top: 45px;
}

.flux-capacitor.flash .flux-light {
  animation: flash 1s;
}

@keyframes flash {
  0% { background-color: var(--bttf-neon-blue); box-shadow: 0 0 5px var(--bttf-neon-blue); }
  25% { background-color: var(--bttf-neon-pink); box-shadow: 0 0 20px var(--bttf-neon-pink); }
  50% { background-color: var(--bttf-white); box-shadow: 0 0 30px var(--bttf-white); }
  75% { background-color: var(--bttf-neon-pink); box-shadow: 0 0 20px var(--bttf-neon-pink); }
  100% { background-color: var(--bttf-neon-blue); box-shadow: 0 0 5px var(--bttf-neon-blue); }
}

/* Time Circuit Display */
.time-circuit-display {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--bttf-silver);
  border-radius: 5px;
  color: var(--bttf-red);
  font-family: 'Orbitron', monospace;
  z-index: 100;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.time-circuit {
  margin-bottom: 5px;
}

.circuit-label {
  font-size: 0.7em;
  color: var(--bttf-silver);
}

.destination {
  color: var(--bttf-neon-blue);
  font-size: 1.2em;
}

.present {
  color: var(--bttf-neon-pink);
  font-size: 1.2em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .speedometer,
  .flux-capacitor,
  .time-circuit-display {
    transform: scale(0.8);
    transform-origin: bottom right;
  }
  
  .time-circuit-display {
    top: 110px; /* Move down to avoid overlapping with flux capacitor */
  }
}

/* Hide UI elements during presentation mode (press 'f') */
.reveal.has-dark-background .speedometer,
.reveal.has-dark-background .flux-capacitor,
.reveal.has-dark-background .time-circuit-display {
  opacity: 0.3;
}

.reveal.has-dark-background .speedometer:hover,
.reveal.has-dark-background .flux-capacitor:hover,
.reveal.has-dark-background .time-circuit-display:hover {
  opacity: 1;
}

/* Custom Progress Bar */
.bttf-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: transparent;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.bttf-progress-bar {
  position: relative;
  width: 100%;
  height: 40px;
  border-radius: 20px;
  overflow: visible;
}

.bttf-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: url('/assets/icons/blue-fire.png') repeat-x;
  background-size: auto 100%;
  box-shadow: 0 0 10px var(--bttf-neon-blue);
  transition: width 0.3s ease;
  /* Add a gradient overlay to enhance the fire effect */
  mask-image: linear-gradient(90deg, black, black);
  -webkit-mask-image: linear-gradient(90deg, black, black);
}

.bttf-delorean {
  position: absolute;
  width: 120px;
  height: 120px;
  top: calc(50% - 5px);
  transform: translate(calc(-50% + 43px), -50%);
  transition: left 0.3s ease, transform 0.3s ease;
  background-image: url('/assets/icons/DeLorean.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.bttf-delorean.moving {
  transform: translate(calc(-50% + 43px), -50%);
}

/* Hide the default Reveal.js progress bar */
.reveal .progress {
  display: none;
} 