@font-face {
    font-family: 'Google Sans';
    src: url('fonts/GoogleSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Google Sans';
    src: url('fonts/GoogleSans-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Google Sans';
    src: url('fonts/GoogleSans-Medium.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Google Sans';
    src: url('fonts/GoogleSans-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Google Sans';
    src: url('fonts/GoogleSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Google Sans', system-ui, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
    padding-top: 0;
    padding-bottom: 90px;
}
header.from-emerald-600.to-blue-800.text-white.p-6.text-center.shadow-lg.rounded-b-xl{
    padding: .5rem !important;
}
h1{
    color: black !important;
}
.font-bold{
    font-weight: 600 !important;
}
span.block.px-1.py-0\.5.rounded-md{
    font-weight: 100;
}

.grid-cols-auto-fill-minmax-80 {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}

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

.animate-fade-in-out {
    animation: fade-in-out 2s forwards;
}

.favorite-heart {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 1.2em;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
}

.color-box:hover .favorite-heart {
    opacity: 1;
    pointer-events: auto;
}

.color-box .favorite-heart.is-favorite {
    opacity: 1;
    pointer-events: auto;
}

.favorite-heart:hover {
    transform: scale(1.2);
}

.color-box {
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.color-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #f9fafb;
    transition: box-shadow 0.3s ease-in-out, border-radius 0.3s ease-in-out, background-color 0.3s ease-in-out;
    padding-bottom: 1.5rem;
}

header.scrolled {
    background-color: #f9fafb;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 0;
}

#scrollToTopBtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 0.8em;
    line-height: 1;
    text-align: center;
    position: fixed;
    bottom: 6px;
    right: 6px;
    z-index: 1001;
    overflow: hidden;
}

#scrollToTopBtn .progress-text {
    font-size: 0.7em;
    margin-top: 2px;
    font-weight: bold;
}

@media (max-width: 767px) {
    .header-content {
        flex-direction: column !important;
        gap: 0.5rem;
    }
    h1{
        font-size: 1.2rem !important;
    }
    h2{
        font-size: 1.4rem !important;
    }
    .header-content .mb-4 {
        margin-bottom: 0 !important;
    }
    header .controls-inner {
        flex-direction: column;
        align-items: stretch;
    }
    #filterControlsDesktop {
        display: none !important;
    }
    #toggleFilterBtn {
        display: block !important;
    }
    #filterModal > div {
        width: 90%;
        max-width: 350px;
    }
    #filterModal input,
    #filterModal select,
    #filterModal button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    #fixed-bottom-center-buttons {
        flex-direction: row;
        justify-content: center;
        width: calc(100% - 24px);
        border-radius: 1.5rem;
        padding: 0.5rem;
        gap: 0.25rem;
    }
    #fixed-bottom-center-buttons button {
        flex: 1;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        margin-bottom: 0;
        white-space: nowrap;
    }
}
