/* Define the keyframes for the back-and-forth animation */
@keyframes moveBackAndForth {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px); /* Adjust the distance as needed */
    }
}

/* Define the keyframes for the mouse pointer effect */
@keyframes pointerEffect {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(2.5);
    }
}

.body_Button-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container_Button-2 {
    text-align: center;
}

.kushagra_animated-button-2 {
    position: relative;
    display: inline-block;
    padding: 20px 20px;
    font-size: 30px;
    color: #fff;
    background-color: #f9b530;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    animation: moveBackAndForth 1s infinite;
    overflow: hidden;
    height: 20%;
    width: 80%;
    user-select: none; /* Prevent text selection */
}

.pointer-effect-2 {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    animation: pointerEffect 1s infinite;
}

.delay-0-2 {
    left: 0%;
}

.delay-1-2 {
    left: 100%;
    animation-delay: 0.5s;
}

/* Responsive styles */
@media (max-width: 600px) {
    .kushagra_animated-button-2 {
        font-size: 6vw;
        padding: 15px;
        width: 90%;
    }
}
