
/* New Animations */

/* Title Float Animation */
.title-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
        text-shadow: 4px 4px 0 #000;
    }
    50% {
        transform: translateY(-5px);
        text-shadow: 4px 9px 0 #000;
    }
}

/* Subtle Bounce for characters */
.animate-bounce-subtle {
    animation: bounceSubtle 2s infinite;
}

@keyframes bounceSubtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.avatar-option.selected {
    animation: pulseBorder 1.5s infinite;
}

@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

/* Toast Animation */
.animate-bounce-in {
    animation: toastSlideDown 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes toastSlideDown {
    0% {
        opacity: 0;
        transform: translate(-50%, -20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 20px) scale(1);
    }
}

/* Subtle Bounce Loop (for waiting players list) */
.animate-bounce-subtle {
    animation: bounceSubtle 2s infinite ease-in-out;
}

@keyframes bounceSubtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Character Pulse when selected */
.avatar-option.selected {
    animation: characterPulse 1.2s infinite ease-in-out;
    z-index: 10;
    border-color: var(--color-vibrant-pink);
    background-color: #333;
}

@keyframes characterPulse {
    0% { transform: scale(1); box-shadow: 0 0 5px var(--color-vibrant-pink); }
    50% { transform: scale(1.1); box-shadow: 0 0 15px var(--color-vibrant-pink), 0 0 5px white; }
    100% { transform: scale(1); box-shadow: 0 0 5px var(--color-vibrant-pink); }
}

@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

/* Rainbow Border for Connected Players */
.rainbow-border {
    animation: rainbowBorder 6s infinite linear;
}

@keyframes rainbowBorder {
    0% { border-color: var(--color-vibrant-pink); }
    33% { border-color: var(--color-vibrant-cyan); }
    66% { border-color: var(--color-vibrant-yellow); }
    100% { border-color: var(--color-vibrant-pink); }
}

