@-webkit-keyframes rainbow {
    0% {
        background-position: 0 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0 50%
    }
}

@-moz-keyframes rainbow {
    0% {
        background-position: 0 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0 50%
    }
}

@keyframes rainbow {
    0% {
        background-position: 0 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0 50%
    }
}

#photoprism .animate-rainbow {
    background: repeating-linear-gradient(315deg, #ff9aa2, #dabcd2, #c7ceea, #bbe0de, #b5ead7);
    background-size: 200% 200%;

    -webkit-animation: rainbow 6s ease infinite;
    -moz-animation: rainbow 6s ease infinite;
    animation: rainbow 6s ease infinite;
}

#photoprism .static-rainbow {
    background-size: 200% 200%;
    background: repeating-linear-gradient(315deg, #ff9aa2, #dabcd2, #c7ceea, #bbe0de, #b5ead7) 100% 50%;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}

#photoprism .animate-rotate {
    animation: rotation 8s infinite linear;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

#photoprism .animate-pulse {
    animation: pulse 5s infinite;
}

@keyframes stretch {
    0% {
        transform: scale(.3);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(.3);
    }
}

#photoprism .animate-stretch {
    animation: stretch 1.5s ease-out 0s alternate infinite none running;
}

#photoprism .select-transition {
    -webkit-transition-duration: 15ms !important;
    -moz-transition-duration: 15ms !important;
    -o-transition-duration: 15ms !important;
    transition-duration: 15ms !important;
}

/* App Loading Animation */

#photoprism div.loading-animation {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 315px;
    height: 315px;
    z-index: 1;
    text-align: center !important;
    color: #e2daf1 !important;
    caret-color: #e2daf1 !important;
}

#photoprism div.loading-animation .loading-overlay {
    -webkit-animation: progress-circular-dash 1.7s ease-in-out infinite;
    animation: progress-circular-dash 1.7s ease-in-out infinite;
}

#photoprism div.loading-animation .loading-underlay {
    stroke: rgba(209, 196, 233, 0.2);
    z-index: 1;
}

#photoprism div.loading-animation .loading-overlay {
    stroke: currentColor;
    z-index: 2;
}

#photoprism div.loading-animation svg {
    transform: rotate(0deg);
    -webkit-animation: progress-circular-rotate 1.7s linear infinite;
    animation: progress-circular-rotate 1.7s linear infinite;
    -webkit-transform-origin: center center;
    transform-origin: center center;
    width: 100%;
    height: 100%;
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
    overflow: hidden;
}