.font-mono {
    font-family: 'Courier New', monospace;
}

.pixelated {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -webkit-crisp-edges;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.shadow-inner {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#pokemon-list::-webkit-scrollbar {
    width: 8px;
}

#pokemon-list::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

#pokemon-list::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 4px;
}

#pokemon-list::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.transition-all {
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #10b981;
}

.pokemon-item:hover {
    background-color: #374151;
    transform: translateX(2px);
}

.pokemon-item.active {
    background-color: #374151;
    border-color: #10b981 !important;
}

@media (max-width: 768px) {
    .pokedex-main {
        padding: 1rem;
    }
    
    .left-screen, .right-screen {
        min-height: 300px;
    }
    
    .pokemon-grid {
        grid-template-columns: 1fr;
    }
}

.type-normal { background-color: #A8A878; }
.type-fire { background-color: #F08030; }
.type-water { background-color: #6890F0; }
.type-electric { background-color: #F8D030; }
.type-grass { background-color: #78C850; }
.type-ice { background-color: #98D8D8; }
.type-fighting { background-color: #C03028; }
.type-poison { background-color: #A040A0; }
.type-ground { background-color: #E0C068; }
.type-flying { background-color: #A890F0; }
.type-psychic { background-color: #F85888; }
.type-bug { background-color: #A8B820; }
.type-rock { background-color: #B8A038; }
.type-ghost { background-color: #705898; }
.type-dragon { background-color: #7038F8; }
.type-dark { background-color: #705848; }
.type-steel { background-color: #B8B8D0; }
.type-fairy { background-color: #EE99AC; }

.screen-depth {
    box-shadow: 
        inset 0 0 0 2px #374151,
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.led-glow {
    box-shadow: 
        0 0 10px currentColor,
        inset 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.blink {
    animation: blink 2s infinite;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.4);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

body {
    overflow-x: hidden;
}

@media (max-width: 640px) {
    #prev-btn,
    #next-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    #sound-btn {
        order: 99;
        margin-top: 0.5rem;
    }
}
