@font-face {
    font-family: 'Geist Mono';
    src: url('https://cdn.jsdelivr.net/npm/geist-font/dist/fonts/geist-mono/GeistMono-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: #1a1a1a;
}

.font-geist-mono {
    font-family: 'Geist Mono', monospace;
}

/* Larger text for better readability for elderly users */
.text-base {
    font-size: 1.05rem;
}

.text-lg {
    font-size: 1.15rem;
}

/* Improved spacing */
section {
    margin-bottom: 4rem;
}

/* Focus states for improved accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Transitions for improved user experience */
a, button {
    transition: all 0.2s ease;
}

/* Custom scrollbar for better user experience */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Emoji selection area scrollbar */
#emoji-selection::-webkit-scrollbar {
    height: 4px;
}

#emoji-selection::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* Canvas styling */
#emoji-canvas {
    background-color: #f8f8f8;
    touch-action: none;
    cursor: pointer;
}

/* Custom animation for modal */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

#share-modal > div,
#success-modal > div,
#canvas-saved-modal > div {
    animation: fadeIn 0.3s ease-out;
}

/* Like button animation */
.like-button:active {
    transform: scale(0.95);
}

/* Emoji buttons */
.emoji-btn {
    transition: transform 0.1s ease;
}

.emoji-btn:active, 
.emoji-btn.active {
    transform: scale(0.92);
    background-color: #f3f4f6;
}

/* Selected emoji in canvas section */
.selected-emoji {
    background-color: #f3f4f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Responsive adjustments for mobile */
@media (max-width: 640px) {
    h2 {
        font-size: 1.75rem;
    }

    .text-lg {
        font-size: 1rem;
    }

    .emoji-btn {
        padding: 0.5rem;
    }
}
