/* 🌧️ Eső Effekt - Factum2 Weboldal */

/* Effekt konténer (továbbra is a régi azonosító, hogy a toggle működjön) */
.lightning-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Eső konténer */
.rain-container {
    position: absolute;
    width: 120vw;
    height: 100vh;
    left: -10vw;
    z-index: 1;
}

/* Eső cseppek */
.rain-drop {
    border: 0.25vmin solid transparent;
    border-bottom-color: #abc2e9;
    position: absolute;
    top: -5vmin;
    opacity: 0.7;
    animation: rainFall 2s linear infinite;
}

/* Eső cseppek pozíciók */
.rain-drop:nth-child(1) { left: 5vw; animation-delay: 0s; }
.rain-drop:nth-child(2) { left: 15vw; animation-delay: 0.1s; }
.rain-drop:nth-child(3) { left: 25vw; animation-delay: 0.2s; }
.rain-drop:nth-child(4) { left: 35vw; animation-delay: 0.3s; }
.rain-drop:nth-child(5) { left: 45vw; animation-delay: 0.4s; }
.rain-drop:nth-child(6) { left: 55vw; animation-delay: 0.5s; }
.rain-drop:nth-child(7) { left: 65vw; animation-delay: 0.6s; }
.rain-drop:nth-child(8) { left: 75vw; animation-delay: 0.7s; }
.rain-drop:nth-child(9) { left: 85vw; animation-delay: 0.8s; }
.rain-drop:nth-child(10) { left: 95vw; animation-delay: 0.9s; }
.rain-drop:nth-child(11) { left: 10vw; animation-delay: 1s; }
.rain-drop:nth-child(12) { left: 20vw; animation-delay: 1.1s; }
.rain-drop:nth-child(13) { left: 30vw; animation-delay: 1.2s; }
.rain-drop:nth-child(14) { left: 40vw; animation-delay: 1.3s; }
.rain-drop:nth-child(15) { left: 50vw; animation-delay: 1.4s; }
.rain-drop:nth-child(16) { left: 60vw; animation-delay: 1.5s; }
.rain-drop:nth-child(17) { left: 70vw; animation-delay: 1.6s; }
.rain-drop:nth-child(18) { left: 80vw; animation-delay: 1.7s; }
.rain-drop:nth-child(19) { left: 90vw; animation-delay: 1.8s; }
.rain-drop:nth-child(20) { left: 100vw; animation-delay: 1.9s; }

/* Eső esés animáció */
@keyframes rainFall {
    0% {
        transform: translateY(-5vmin) rotate(91deg);
        opacity: 0.7;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(105vh) rotate(91deg);
        opacity: 0;
    }
}

/* Effekt be/kikapcsolása (toggle-hoz) */
.lightning-disabled { display: none; }
.lightning-enabled { display: block; }

/* Reszponzív beállítások */
@media (max-width: 768px) {
    .rain-drop { border-width: 0.2vmin; }
}
