/**
 * Stylesheet for Particle Slider
 *
 * @package ParticleSlider
 */

.particle-slider-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
    color: #fff;
}

.particle-slider {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.particle-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}

.particle-slider .slide.active {
    opacity: 1;
}

.particle-slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 2;
}

.particle-slider-nav button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 10px 15px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.particle-slider-nav button:hover {
    background: rgba(255, 255, 255, 0.6);
}

.particle-slider .slide img {
    max-width: 80%;
    max-height: 60%;
    margin-bottom: 10px;
}

.slide-text {
    position: relative;
    z-index: 3;
    font-size: 1.2rem;
    padding: 1rem;
    text-align: center;
    word-wrap: break-word;
}

.slide-text h2,
.slide-text h3 {
    margin: 0;
}

.slide-text h2 {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.slide-text h3 {
    margin-bottom: 1rem;
    font-weight: bold;
}

.slide-text a.slide-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--particle-color, rgba(255, 255, 255, 0.8));
    border-radius: 50%;
    opacity: 0;
    animation: particleMove linear infinite;
}

.particle:nth-child(odd) { animation-duration: 5s; }
.particle:nth-child(even) { animation-duration: 7s; }
.particle:nth-child(3n) { animation-duration: 10s; }
.particle:nth-child(4n) { animation-duration: 8s; }
.particle:nth-child(5n) { animation-duration: 6s; }

@keyframes particleMove {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        transform: translate(calc(200px - 400px * var(--random-x)), calc(200px - 400px * var(--random-y))) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(calc(-200px + 400px * var(--random-x)), calc(-200px + 400px * var(--random-y))) scale(0.5);
        opacity: 0;
    }
}