body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: grab;
    position: relative;
}
.bubble-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* or any dark/soft gradient */
    z-index: 0;
}

.bubble {
    position: absolute;
    bottom: -150px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 0.6;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-120vh) scale(1.2);
        opacity: 0;
    }
}

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.nav button {
    position: relative;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 40px;
    background: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

.nav button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, #ff00cc, #3333ff, #00ffcc);
    background-size: 600% 600%;
    border-radius: 40px;
    z-index: -1;
    filter: blur(6px);
    animation: neonGlow 6s ease infinite;
}

.nav button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff00cc, #3333ff, #00ffcc);
    background-size: 400% 400%;
    border-radius: 40px;
    z-index: -2;
    animation: neonFlow 8s ease infinite;
    opacity: 0.7;
}

@keyframes neonGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes neonFlow {
    0% {
        background-position: 100% 0%;
    }

    50% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 100% 0%;
    }
}

.nav button:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    margin-top: 60px; 
}
.container {
    perspective: 1500px;
    width: 800px;
    max-width: 90%;
    position: relative;
}

.slider {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
}

.slide {
    position: absolute;
    width: 250px;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
    opacity: 0;           
    pointer-events: none; 
    z-index: 1;           
}

.center {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
}

.left,
.right {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}


.center {
    transform: translateX(0) translateZ(100px) scale(1);
    filter: blur(0);
    opacity: 1;
    z-index: 2;
}

.left {
    transform: translateX(-220px) translateZ(0) scale(0.7);
    filter: blur(4px);
    opacity: 0.6;
    z-index: 1;
}

.right {
    transform: translateX(220px) translateZ(0) scale(0.7);
    filter: blur(4px);
    opacity: 0.6;
    z-index: 1;
}

#randomBtn {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 32px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    background: linear-gradient(135deg, #ff00cc, #3333ff, #00ffcc);
    background-size: 300% 300%;
    z-index: 10;
    animation: spinGradient 6s infinite ease-in-out, pulseGlow 2s infinite;
    transition: transform 0.3s ease;
}

@keyframes spinGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 0, 204, 0.6), 0 0 20px rgba(0, 255, 204, 0.6);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 0, 204, 1), 0 0 40px rgba(0, 255, 204, 1);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 0, 204, 0.6), 0 0 20px rgba(0, 255, 204, 0.6);
    }
}

#randomBtn:hover {
    transform: translateX(-50%) scale(1.1);
}


@media (max-width: 600px) {
    #randomBtn {
        top: 32rem;
        padding: 20px 40px;
        font-size: 30px;

    }

    .slider{
        margin-bottom: 7rem;
    }
}