/* flags.css - working version */

.banner-section {
  position: relative !important;
  overflow: hidden !important;
}

/* container covers the entire section */
#floating-flags {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3; /* between overlay (2) and text (4) */
}

/* individual flags */
.flag {
  position: absolute;
  width: 40px;
  height: auto;
  opacity: 0;
  animation: floatUp ease-in-out forwards;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* animation */
@keyframes floatUp {
  0% {
    transform: translateY(120%) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120%) scale(1);
    opacity: 0;
  }
}
