@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap');

body {
  background-color: #000;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#container {
  text-align: center;
  position: relative;
}

/* --- Cool Machine Glow with Shutdown Pulse --- */
#logo {
  width: 180px;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: brightness(1.2)
          drop-shadow(0 0 10px #00e5ff)
          drop-shadow(0 0 25px #0099ff);
  animation: pulse 4s ease-in-out infinite;
}

#logo:hover {
  filter: brightness(1.6)
          drop-shadow(0 0 20px #00ffff)
          drop-shadow(0 0 40px #33ccff);
}

/* when user clicks or touches */
#logo:active {
  filter: brightness(2)
          drop-shadow(0 0 30px #ff0033)
          drop-shadow(0 0 50px #ff3366);
}

/* idle breathing */
@keyframes pulse {
  0%, 100% {
    filter: brightness(1.1)
            drop-shadow(0 0 8px #0099ff)
            drop-shadow(0 0 20px #0044ff);
  }
  50% {
    filter: brightness(1.4)
            drop-shadow(0 0 14px #00ccff)
            drop-shadow(0 0 30px #33ffff);
  }
}

#terminal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: left;
  white-space: pre-wrap;
  opacity: 0;
  transition: opacity 2s ease;
}

/* --- Cool Machine Terminal Glow --- */
#terminal {
  color: #e0f7ff;
  text-shadow: 0 0 6px #00ccff, 0 0 18px #0066ff;
  animation: textFlicker 6s ease-in-out infinite alternate;
}

@keyframes textFlicker {
  0%, 100% { opacity: 0.9; text-shadow: 0 0 6px #00ccff, 0 0 18px #0066ff; }
  50% { opacity: 1; text-shadow: 0 0 8px #66ffff, 0 0 25px #00ccff; }
}

.hidden {
  display: none;
}

.fade-out {
  animation: fadeOut 3s forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; background-color: #000; }
}

.final-text {
  font-size: 1.2rem;
  text-align: center;
  opacity: 0;
  animation: fadeIn 3s ease forwards;
  animation-delay: 2s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.shutdown-flash {
  filter: brightness(2)
          drop-shadow(0 0 30px #ff0033)
          drop-shadow(0 0 50px #ff3366);
  transition: filter 0.2s ease;
}
