* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1b1b32;
    font-family: Arial, sans-serif;
}

.button-container {
    position: relative;
    padding: 10px;
}

.animated-button {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 12px;
    background: linear-gradient(45deg, #6a0dad, #8a2be2, #9400d3);
    background-size: 200% 200%;
    transition: all 0.4s ease;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: gradientMove 3s ease infinite;
    border: 4px solid transparent;
}

.animated-button::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    background: linear-gradient(45deg, #6a0dad, #8a2be2, #9400d3, #8a2be2);
    background-size: 300% 300%;
    z-index: -1;
    animation: borderGradient 4s linear infinite;
}

@keyframes borderGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animated-button:hover {
    color: #ffe0ff;
    transform: translateY(-6px);
    box-shadow: 0px 10px 25px rgba(130, 0, 255, 0.6);
}

.animated-button:active {
    transform: translateY(2px);
    box-shadow: 0px 5px 15px rgba(130, 0, 255, 0.4);
}
