.light-switch-container {
    left: 5%;
    bottom: 10%;
    display: flex;
    position: absolute;
    flex-direction: row-reverse;
}

.light-switch {
    width: 39px;
    height: auto;
    filter: drop-shadow(-2px 0px 3px rgba(0, 0, 0, 0.4));
}

.light-switch img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .light-switch-container {
        bottom: 5%;
    }

    .light-switch {
        width: 50px;
        filter: drop-shadow(-1px 0px 2px rgba(0, 0, 0, 0.4));
    }
}

#light_switch_2 {
    margin-left: 13px;
}

.blinking-led-effect {
    animation: pulseGlow 1.4s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.35;
        filter: drop-shadow(0 0 2px #ffdf7a) drop-shadow(0 0 5px #ffa825);
    }

    100% {
        opacity: 1;
        filter: drop-shadow(0 0 10px #ffdf7a) drop-shadow(0 0 20px #ffa825) drop-shadow(0 0 30px #ff6a00);
    }
}

/* حالت ۲: چشمک زدن منظم همزمان */
.led-blink-sync {
    animation: blinkSync 1.5s infinite alternate ease-in-out;
}

/* حالت ۴ و ۵: چشمک زدن‌های نامنظم (با تاخیرها و سرعت‌های متفاوت برای ایجاد حس رندوم) */
.led-blink-async-1 {
    animation: blinkAsync 1.2s infinite alternate ease-in-out;
}

.led-blink-async-2 {
    animation: blinkAsync 1.8s infinite alternate ease-in-out 0.4s;
}

.led-blink-async-3 {
    animation: blinkAsync 1.5s infinite alternate ease-in-out 0.8s;
}

@keyframes blinkSync {
    0% {
        opacity: 0.3;
        filter: drop-shadow(0 0 1px currentColor);
    }

    100% {
        opacity: 1;
        filter: drop-shadow(0 0 8px currentColor);
    }
}

@keyframes blinkAsync {
    0% {
        opacity: 0.2;
        filter: drop-shadow(0 0 0px currentColor);
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 10px currentColor);
    }

    100% {
        opacity: 0.4;
        filter: drop-shadow(0 0 2px currentColor);
    }
}

#add_ledwire_btn {
    background-image: image-set(url('../images/add-ledwire-btn-off.avif') type('image/avif'),
            url('../images/add-ledwire-btn-off.webp') type('image/webp'),
            url('../images/add-ledwire-btn-off.png') type('image/png'));
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 80%;
    height: 80%;
    position: relative;
    background-color: transparent;
    border: none;
    border-radius: 50%;
}

#add_ledwire_btn::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    background-color: #95cce9cc;
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#add_ledwire_btn:hover::after {
    opacity: 1;
}

#add_ledwire_btn.on {
    background-image:image-set(url('../images/add-ledwire-btn-on.avif') type('image/avif'),
            url('../images/add-ledwire-btn-on.webp') type('image/webp'),
            url('../images/add-ledwire-btn-on.png') type('image/png'));
}

#add_ledwire_btn.on::after {
    opacity: 1;
}

#add_ledwire_btn:hover {
    cursor: pointer;
    border-radius: 50%;
}