 /* Custom styles to complement Tailwind CSS */

/* Custom fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

body {
    font-family: 'Nunito', sans-serif;
    color: #4a5568;
}

/* Animation for coloring page cards */
.coloring-card {
    transition: all 0.3s ease;
}

.coloring-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom button styles */
.download-button {
    transition: all 0.3s ease;
}

.download-button:hover {
    transform: scale(1.05);
}

/* Rainbow text effect for special headings */
.rainbow-text {
    background-image: linear-gradient(to right, #ff758c, #ff7eb3, #c77dff, #7868e6, #4bcffa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-text-animation 6s ease infinite;
    background-size: 400% 100%;
}

@keyframes rainbow-text-animation {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

::-webkit-scrollbar-track {
    background: #f7fafc;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ff758c, #c77dff);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ff5c7c, #b76aff);
}

/* Modal animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#coloring-modal {
    animation: fadeIn 0.3s ease-out;
}

#coloring-modal > div {
    animation: slideIn 0.3s ease-out;
}

/* Styles for the fixed vertical navigation */
@media (min-width: 768px) {
    /* Add padding to the left side of the main content to make room for the fixed nav */
    .container {
        padding-left: 80px; /* Reduced from 120px */
    }
    
    /* Smooth scrolling for anchor links */
    html {
        scroll-behavior: smooth;
    }
    
    /* Style for the fixed navigation */
    .fixed {
        transition: opacity 0.3s ease;
    }
    
    /* Add hover effect to make nav more visible when hovered */
    .fixed:hover {
        opacity: 1;
    }
    
    /* Make nav slightly transparent when not hovered */
    .fixed {
        opacity: 0.85;
    }
    
    /* Make the navigation narrower */
    .fixed > div {
        width: 120px; /* Set a specific width */
        padding: 10px; /* Smaller padding */
    }
    
    /* Make the navigation buttons more compact */
    .fixed a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Add scroll margin to section headings so they don't get hidden under fixed headers */
#simple, #intermediate, #complex {
    scroll-margin-top: 100px;
}