a {
    text-decoration: none;
}

.pokemon-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.type-badge {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border: none;
    border-radius: 25px;
    padding: 0.25rem 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin: 0.2rem;
}
.stat-bar {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
}
.stat-fill {
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
    height: 20px;
    border-radius: 10px;
    transition: width 0.8s ease;
}
.evolution-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}
.evolution-card:hover {
    transform: translateY(-5px);
}
.pokemon-sprite {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.ability-badge {
    background: linear-gradient(45deg, #ffeaa7, #fab1a0);
    color: #2d3436;
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-weight: 600;
    margin: 0.2rem;
}

.pokemon-card-image img:active,
.pokemon-card-image img:hover {
    transform: scale(2);
    transform-origin: center;
    transition: all .3s ease-in-out;
    position: absolute;
    top: 0;
    z-index: 99;
}

@media only screen and (max-width: 768px) {
    /* Target odd columns (left side) */
    .col:nth-child(odd) .pokemon-card-image img:active,
    .col:nth-child(odd) .pokemon-card-image img:hover {
        transform-origin: left;
    }

    /* Target even columns (right side) */
    .col:nth-child(even) .pokemon-card-image img:active,
    .col:nth-child(even) .pokemon-card-image img:hover {
        transform-origin: right;
    }
}

.search-wrapper {
    position: relative;
    width: 100%;
}

#pokemonSearch {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
}

#pokemonSearch:focus {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.dropdown-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.pokemon-number {
    font-weight: bold;
    color: #667eea;
    margin-right: 10px;
}

.pokemon-name {
    color: #333;
    text-transform: capitalize;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #999;
}