body {
    font-family: 'Inter', sans-serif;
    background-color: #f7f8fc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23d8deef' fill-opacity='0.4'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.title-font {
    font-family: 'Baloo 2', cursive;
    /* Hide the title by default */
    opacity: 0;
    /* Add a smooth transition for the fade-in effect */
    transition: opacity 0.3s ease-in-out;
}

/* This class will be added by JavaScript once the font is loaded */
body.fonts-loaded .title-font {
    opacity: 1;
}

#game-id-container.copied {
    animation: flash-bg 0.5s ease;
}

@keyframes flash-bg {
    0% { background-color: #eef2ff; }
    50% { background-color: #c7d2fe; }
    100% { background-color: #eef2ff; }
}

.shake {
    animation: shake-anim 0.5s ease-in-out;
}

@keyframes shake-anim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.animate-tada {
    animation: tada 1s ease;
}

@keyframes tada {
    0% {transform: scale(1);}
    10%, 20% {transform: scale(0.9) rotate(-3deg);}
    30%, 50%, 70%, 90% {transform: scale(1.1) rotate(3deg);}
    40%, 60%, 80% {transform: scale(1.1) rotate(-3deg);}
    100% {transform: scale(1) rotate(0);}
}

.waiting-text-animation {
    background-image: linear-gradient(90deg, #4f46e5, #818cf8, #4f46e5);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: waiting-shine 2s linear infinite;
}

@keyframes waiting-shine {
    to {
        background-position: 200% center;
    }
}

