@keyframes rotatingGradientBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.rainbow-animoz-button {
    transition: transform .2s ease;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.rainbow-animoz-button::before {
    content: '';
    position: absolute;
    inset: -6px;
    display: block;
    z-index: 1;
}

.rainbow-animoz-button-text {
    position: relative;
    z-index: 4;
}

.rainbow-animoz-highlight {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: 0.375rem;
    opacity: 0;
    transition: opacity .2s cubic-bezier(.25, .46, .45, .94),
        inset .2s cubic-bezier(.25, .46, .45, .94);
    pointer-events: none;
}

.rainbow-animoz-button .rainbow-animoz-highlight {
    opacity: 1;
    inset: -5px;
}

.rainbow-animoz-highlight::before {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: 3;
    border-radius: inherit;
    background: #fff;
    filter: blur(1px);
}

.rainbow-animoz-highlight::after {
    content: "";
    position: absolute;
    inset: 5px;
    z-index: 4;
    border-radius: inherit;
    background: rgb(17 24 39);
    transition: all 0.05s linear;
}

.rainbow-animoz-button:hover .rainbow-animoz-highlight::after {
    background: rgb(39 51 64);
}

.rainbow-animoz-gradient {
    position: absolute;
    z-index: 1;
    background: conic-gradient(rgb(0, 182, 255),
            rgb(0, 182, 255),
            rgb(255, 255, 255),
            rgb(255, 255, 255),
            rgb(255, 255, 255),
            rgb(255, 219, 88),
            rgb(255, 219, 88),
            rgb(255, 101, 167),
            rgb(255, 101, 167),
            rgb(0, 182, 255),
            rgb(0, 182, 255));
    inset-block: -200%;
    inset-inline: -25%;
    animation: rotatingGradientBorder 3.5s linear infinite;
}

.rainbow-animoz-gradient-bis {
    position: absolute;
    z-index: 2;
    inset-block: -200%;
    inset-inline: -25%;
    opacity: 0;
    transition: opacity 0.35s linear;
}

.rainbow-animoz-button:hover .rainbow-animoz-gradient-bis {
    opacity: 1;
}
