@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700;900&display=swap');

.font-comic {
    font-family: 'Comic Neue', cursive;
}

.kid-pix-title {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #fd79a8);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.2);
    transform: rotate(-2deg);
    cursor: pointer;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.floating-crayons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.crayon {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.crayon-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.crayon-2 {
    top: 30%;
    right: 15%;
    animation-delay: 1.5s;
}

.crayon-3 {
    top: 60%;
    left: 20%;
    animation-delay: 3s;
}

.crayon-4 {
    top: 70%;
    right: 10%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-20px) rotate(5deg); 
    }
    50% { 
        transform: translateY(-15px) rotate(-3deg); 
    }
    75% { 
        transform: translateY(-25px) rotate(2deg); 
    }
}

.kid-button {
    box-shadow: 0 8px 0 rgba(0,0,0,0.2);
    border: 3px solid rgba(255,255,255,0.3);
}

.kid-button:active {
    transform: translateY(4px) scale(0.98);
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}

.tool-button {
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.tool-button:active {
    transform: translateY(2px) scale(0.95);
    box-shadow: 0 2px 0 rgba(0,0,0,0.1);
}

.tool-button.active {
    transform: scale(1.1);
    box-shadow: 0 6px 0 rgba(0,0,0,0.2);
}

.feature-card:hover {
    animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg) scale(1.05); }
    25% { transform: rotate(1deg) scale(1.05); }
    75% { transform: rotate(-1deg) scale(1.05); }
}

.gallery-item:hover {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: scale(1.05) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}

.stat-card {
    box-shadow: 0 6px 0 rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 0 rgba(0,0,0,0.15);
}

.memory-quote {
    animation: fade-in 0.8s ease-in-out;
}

@keyframes fade-in {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.sound-toggle {
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}

.sound-toggle:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}

/* Canvas cursor styles */
.cursor-crosshair {
    cursor: crosshair;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kid-pix-title {
        font-size: 4rem;
    }
    
    .floating-crayons .crayon {
        font-size: 1.5rem;
    }
}

/* Paper texture background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: -1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff5252, #26c6da);
}