/* Animations */

.TSSuccess {
    animation-name: TSSuccessAnimation;
    animation-duration: 2s;
}

@keyframes TSSuccessAnimation {
    from {
        background-color: var(--mathline-color-success);
    }
    /* to {
        background-color: var(--mathline-color);
    } */
}

.TSRemoteChange {
    animation-name: TSRemoteChangeAnimation;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

@keyframes TSRemoteChangeAnimation {
    0% {
        border-width: 0px;
        border-style: solid;
        border-color: rgb(244, 229, 29);
    }
    50% {
        border-width: 5px;
    }
    100% {
        border-width: 0px;
        border-style: none;
    }
}

@keyframes TSGleamAnimation {
    50% {
        background-color: #fceeb5;
        /* background-position: 500px; */
    }
}

.TSGleam {
    overflow: hidden;
    /* background: linear-gradient(to right, var(--mathline-color) 0%, #fceeb5 50%, var(--mathline-color) 70%);  */
    /* background-size: 1000px; */
    /* background-position: 0px; */
    animation: TSGleamAnimation 0.5s 1 forwards;
}

/* .TSGleam:hover {
    background: linear-gradient(to right, var(--color-hover) 0%, #fceeb5 50%, var(--color-hover) 70%);
} */

@keyframes ColorTransitionGreen {
    /* 0% {
        background-color: rgb(240, 240, 240);
    } */
    50% {
        background-color: #a2ccb6;
    }
    /* 100% {
        background-color: rgb(240, 240, 240);
    } */
}

@keyframes ColorTransitionBlue {
    /* 0% {
        background-color: rgb(240, 240, 240);
    } */
    50% {
        background-color: #3f87df;
    }
    /* 100% {
        background-color: rgb(240, 240, 240);
    } */
}


@keyframes Shimmer {
    0% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(2500px);
    }
}

@keyframes Opacity {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes Rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.TSRotate {
    animation: 4s infinite normal Rotation;
}


.TSShimmerBlue {
    position: relative;
    /* background-color: rgb(240, 240, 240); */
    animation: ColorTransitionBlue 2s 1 forwards;
}



.TSShimmer {
    position: relative;
    /* background-color: rgb(240, 240, 240); */
    animation: ColorTransitionGreen 2s 1 forwards;
}

.TSShimmer:hover {
    background: rgb(225, 225, 225);
}

.TSShimmer::before {
    content: '';
    display: block;
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    width: 60px;
    height: 100%;
    top: 0;
    opacity: 0;
    filter: blur(30px);
    transform: translateX(-100px) skewX(-15deg);
    animation: Shimmer 1s 1 forwards;
}

.TSShimmer::after {
    content: '\2B50';
    display: block;
    position: absolute;
    top: 0px;
    left: 0;
    animation: Opacity 2s 1 forwards;
}

@keyframes ValidationError {
    0% {
        background-color: rgba(255,0,0,1);
        /* border: 1px solid rgba(255,0,0,1); */
    }
    99% {
        background-color: rgba(255,0,0,0.01);
        /* border: 1px solid rgba(255,0,0,0.01) */
    }
    100% {
        background-color: none;
        border: none;
    }
}

.TSValidationError {
    animation: ValidationError 3s 1 forwards;
}

