/* 1. Define Variables (Safe to keep global) */
:root {
  --inlp-bg: #EAF1F7;
  --inlp-pattern: #D8E4EF;
  --inlp-accent: #1E2A36;
  --inlp-muted: #5E7488;
  --inlp-text: #3F87AF;
  --inlp-shadow: #9FB1C2;
  --inlp-border: 4px;
}


/* 2. WRAPPER: Apply background/fonts ONLY to the banner container, not the whole page */
.inlp-banner-wrapper {
  max-width: none;
  margin: 2rem auto 2rem auto;
  background-color: var(--inlp-bg);
  background-image: radial-gradient(var(--inlp-pattern) 15%, transparent 16%);
  background-size: 20px 20px;
  border: var(--inlp-border) solid var(--inlp-accent);
  box-shadow: 8px 8px 0px var(--inlp-shadow);
  overflow: hidden;
  position: relative;

  /* Font settings ONLY for inside the banner */
  font-family: 'VT323', monospace;
  color: var(--inlp-accent);
}

.inlp-banner-wrapper .banner-text-area h2 {
  color: var(--inlp-text);
}

/* 3. BANNER LAYOUT */
.pixel-banner {
  display: flex;
  align-items: center;
  padding: 1rem;
  min-height: 200px;
}

.banner-text-area {
  flex: 1.25;
  padding: 0 2rem;
  z-index: 1;
  text-align: left;
}

/* 4. FONTS: Specific to banner elements */
.banner-text-area h2 {
  font-family: 'Press Start 2P', cursive !important; /* Force the pixel font */
  font-size: 1.2rem;
  color: var(--inlp-text);
  margin-bottom: 0.8rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.banner-text-area p {
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
  color: var(--inlp-muted);
  margin: 0;
}

.banner-art-area {
  flex: 1.4;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pixel-banner svg {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* 5. ANIMATIONS  */
/* Smoke puffs rising from the smokestacks */
.puff {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  opacity: 0;
  box-shadow: 1px 0 0 var(--inlp-shadow), 0 1px 0 var(--inlp-shadow), 1px 1px 0 var(--inlp-shadow);
}

.puff-1 { left: 48%; bottom: 70%; animation: rise 6s linear infinite; animation-delay: 0s; }
.puff-2 { left: 62%; bottom: 78%; animation: rise 7s linear infinite; animation-delay: 2s; }
.puff-3 { left: 48%; bottom: 70%; animation: rise 5.5s linear infinite; animation-delay: 3s; }
.puff-4 { left: 62%; bottom: 78%; animation: rise 5.5s linear infinite; animation-delay: 4.5s; }

@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.4; }
  100% { transform: translateY(-60px) translateX(14px); opacity: 0; }
}

.cloud-move {
  animation: move-cloud 25s linear infinite;
}

.cloud-bounce {
  animation: bounce-cloud 5s ease-in-out infinite;
}

.gear-spin {
  transform-origin: 32px 32px;
  animation: gear-rotate 168s linear infinite;
}

@keyframes move-cloud {
  0% { transform: translateX(0); }
  50% { transform: translateX(100px); }
  100% { transform: translateX(-50px); }
}

@keyframes bounce-cloud {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

/* --- Factory --- */
.factory-group {
  animation: gentle-bob 4s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes gentle-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); } /* barely noticeable but alive */
}

@keyframes gear-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .pixel-banner {
    flex-direction: column;
  }
  .banner-text-area {
    text-align: center;
    padding: 2rem 2rem 0 2rem;
  }

  .banner-text-area h2 {
    font-size: 0.75rem;
  }
  .banner-text-area p {
    font-size: 0.9rem;

  }

  .banner-art-area {
    width: 100%;
    margin-top: 1rem;
  }
}
