﻿.center-container {
    position: inherit;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.image-container {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
}

.image-placeholder {
    position: absolute;
    top: 2px;
    /* Adjusted to center within the border */
    left: 2px;
    /* Adjusted to center within the border */
    width: 195px;
    height: 195px;
    background-color: #ccc;
    border-radius: 100%;
    overflow: hidden;
}

    .image-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.rainbow-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 5px;
    box-sizing: border-box;
    background: conic-gradient( red, orange, yellow, green, blue, indigo, violet, red );
    animation: rotateRainbow 1s linear infinite;
}

@keyframes rainbow {
    0% {
        color: red;
    }

    16.666% {
        color: orange;
    }

    33.333% {
        color: yellow;
    }

    50% {
        color: green;
    }

    66.666% {
        color: blue;
    }

    83.333% {
        color: indigo;
    }

    100% {
        color: violet;
    }
}

@keyframes rotateRainbow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
