/* animation avatar card */
.card {
    position: relative;
    height: 170px;
    margin-top: 70px;
    -webkit-animation: float 2s infinite alternate;
    animation: float 2s infinite alternate;
    display: flex;
    justify-content: center;
}
.card .holo {
    position: absolute;
    bottom: 0;
}

#postsAvatarImage{
    height: 170px;
}

.holo {
    position: relative;
    z-index: 1;
    width: 150px;
    height: 5px;
    margin: -5px auto 0;
    background-color: rgba(0, 252, 252, 0.35);
    border-radius: 100%;
    filter: blur(2px);
    transform: perspective(100px) rotateX(-30deg);
    transform-style: preserve-3d;
    -webkit-animation: holographic 1.5s infinite alternate;
    animation: holographic 1.5s infinite alternate;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.holo:after {
    position: absolute;
    left: -10px;
    right: -10px;
    content: "";
    height: 10px;
    background-color: rgba(0, 252, 252, 0.5);
    border-radius: 100%;
    filter: blur(2px);
}
.holo + .holo {
    -webkit-animation-duration: 0.75s;
    animation-duration: 0.75s;
    opacity: 0.5;
}

@-webkit-keyframes float {
    from {
        will-change: unset;
        transform: translateY(-10px);
    }
    to {
        will-change: transform;
        transform: translateY(-30px);
    }
}

@keyframes float {
    from {
        will-change: unset;
        transform: translateY(-10px);
    }
    to {
        will-change: transform;
        transform: translateY(-30px);
    }
}
@-webkit-keyframes holographic {
    from {
        will-change: box-shadow;
        box-shadow: 0 -75px 5px rgba(0, 252, 252, 0.15), 0 -1px 2px rgba(0, 252, 252, 0.5), 0 -45px 5px rgba(0, 252, 252, 0.15), 0 -2px 3px rgba(0, 252, 252, 0.5), 0 -3px 4px rgba(0, 252, 252, 0.5), 0 -4px 6px rgba(0, 252, 252, 0.5), 0 -5px 10px rgba(0, 252, 252, 0.75), 0 -7px 20px rgba(0, 252, 252, 0.75), 0 -10px 30px rgba(0, 252, 252, 0.75), 0 -15px 40px rgba(0, 252, 252, 0.75), 0 -25px 50px rgba(0, 252, 252, 0.75), 0 -35px 60px rgba(0, 252, 252, 0.85), 0 -45px 70px rgba(0, 252, 252, 0.95), 0 -65px 80px #00fcfc, 0 -75px 90px #00fcfc;
    }
    to {
        will-change: unset;
        box-shadow: 0 -1px 5px rgba(0, 252, 252, 0.15), 0 -1px 2px rgba(0, 252, 252, 0.5), 0 -1px 5px rgba(0, 252, 252, 0.15), 0 -2px 3px rgba(0, 252, 252, 0.5), 0 -3px 4px rgba(0, 252, 252, 0.5), 0 -4px 6px rgba(0, 252, 252, 0.5), 0 -5px 7px rgba(0, 252, 252, 0.75), 0 -7px 10px rgba(0, 252, 252, 0.75), 0 -10px 15px rgba(0, 252, 252, 0.75), 0 -15px 20px rgba(0, 252, 252, 0.75), 0 -25px 25px rgba(0, 252, 252, 0.75), 0 -35px 30px rgba(0, 252, 252, 0.85), 0 -45px 35px rgba(0, 252, 252, 0.95), 0 -65px 40px #00fcfc, 0 -75px 50px #00fcfc;
    }
}
@keyframes holographic {
    from {
        will-change: box-shadow;
        box-shadow: 0 -75px 5px rgba(0, 252, 252, 0.15), 0 -1px 2px rgba(0, 252, 252, 0.5), 0 -45px 5px rgba(0, 252, 252, 0.15), 0 -2px 3px rgba(0, 252, 252, 0.5), 0 -3px 4px rgba(0, 252, 252, 0.5), 0 -4px 6px rgba(0, 252, 252, 0.5), 0 -5px 10px rgba(0, 252, 252, 0.75), 0 -7px 20px rgba(0, 252, 252, 0.75), 0 -10px 30px rgba(0, 252, 252, 0.75), 0 -15px 40px rgba(0, 252, 252, 0.75), 0 -25px 50px rgba(0, 252, 252, 0.75), 0 -35px 60px rgba(0, 252, 252, 0.85), 0 -45px 70px rgba(0, 252, 252, 0.95), 0 -65px 80px #00fcfc, 0 -75px 90px #00fcfc;
    }
    to {
        will-change: unset;
        box-shadow: 0 -1px 5px rgba(0, 252, 252, 0.15), 0 -1px 2px rgba(0, 252, 252, 0.5), 0 -1px 5px rgba(0, 252, 252, 0.15), 0 -2px 3px rgba(0, 252, 252, 0.5), 0 -3px 4px rgba(0, 252, 252, 0.5), 0 -4px 6px rgba(0, 252, 252, 0.5), 0 -5px 7px rgba(0, 252, 252, 0.75), 0 -7px 10px rgba(0, 252, 252, 0.75), 0 -10px 15px rgba(0, 252, 252, 0.75), 0 -15px 20px rgba(0, 252, 252, 0.75), 0 -25px 25px rgba(0, 252, 252, 0.75), 0 -35px 30px rgba(0, 252, 252, 0.85), 0 -45px 35px rgba(0, 252, 252, 0.95), 0 -65px 40px #00fcfc, 0 -75px 50px #00fcfc;
    }
}

/* end of animation */



/* Styles for the popup */
.avatar-card {
    display: none;
    position: absolute;
    background: radial-gradient(circle, #f8f8f8, rgb(249 249 249 / 10%) 64%);
    /*color: white;*/
    padding: 10px;
    border-radius: 5px;
    z-index: 10;
    min-width: 200px;
    opacity: 0;
    transform: scale(0.15);
    transition: top 0.2s ease, left 0.2s ease, opacity 0.5s ease, transform 0.2s ease;
}

.avatar-card-info{
    width: 200px;
}

/* Styles for the avatar card profile */
.avatar-card-profile {
    text-align: center;
    padding: 10px;
    /* border-bottom-left-radius: 20px; */
    /* border-bottom-right-radius: 20px; */
    background: linear-gradient(0deg, #ffffff 80%, transparent);
    /* box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px; */
    box-shadow: rgba(0, 0, 0, 0.1) 0px 15px 15px -3px, rgba(0, 0, 0, 0.05) 0px 10px 6px -2px;
    margin-top: 10px;
    border-radius: 20px;
}


/* Styles for the profile name */
.avatar-card-profile h2 {
    margin-top: 10px;
    font-size: 1em;
    font-weight: bold;
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 3px;
    box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
    border: 1px solid #efefef;
}

/* Styles for the profile details */
.avatar-card-profile p {
    margin: 10px 0;
    font-size: 0.8em;
    color: #575757;
}

.userAvatarContainer {
    position: relative;
    display: inline-block;
    max-width: 400px;
    overflow: hidden;
    border-radius: 20px;
    /*box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;*/
}


.userAvatarImage {
    max-width: 100%;
    border-radius: 8px;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    /*mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 40%, rgb(0 0 0 / 0%) 100%);*/
}

#avatarSection button {
    margin: 0 5px;
    background-color: #007bff;
    color: #fff;
}

.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #007bff;
    width: 10px;
    height: 10px;
    animation: loaderSpin 0.3s linear infinite;
    /* display: inline-block; */
    position: absolute;
    right: 0;
    top: 0;
}


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


.avatarPixelGrid {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    flex-wrap: wrap;
}

.avatarLoader{
    display: none;
}

.shimmeringPixel {
    /*background: white;*/
    background: #baf4f2;
    width: 20%; /* Adjust the percentage to control the size of each pixel */
    padding-top: 20%; /* This keeps the aspect ratio square */
    box-sizing: border-box;
    opacity: 0.0;
    animation: shimmerPixel 4s infinite;
    will-change: opacity;
}

.fadeOutPixels{
    opacity: 1!important;
    transition: opacity 2s ease-out;
    background: #fff;
}

.fadeOutInAvatar{
    animation: fadeOutIn 1s linear;
    animation-fill-mode: forwards; /* Ensures the animation stays in the final state */
}

/* fadeout the fadein then stop animation */
@keyframes fadeOutIn {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


@keyframes shimmerPixel {
    0% {opacity: 0.0;}
    25% {opacity: 0.0;}
    50% {opacity: 0.5;}
    75% {opacity: 0.9;}
    100% {opacity: 0.0;}
}

