@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Notification animations */
@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .pokemon-card {
        padding: 0.5rem;
    }
    #pokemon-collection {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Pokemon types colors */
.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; }

.pokemon-card {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.pokemon-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
/* Animation for catching pokemon */
@keyframes catchShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    20%, 60% { transform: translateX(-10px) rotate(-5deg); }
    40%, 80% { transform: translateX(10px) rotate(5deg); }
}

.catch-animation {
    animation: catchShake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Pokéball throw animation */
@keyframes pokeballThrow {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-100px) scale(1.2); opacity: 1; }
    100% { transform: translateY(-200px) scale(0.5); opacity: 0; }
}

.pokeball-animation {
    position: absolute;
    width: 40px;
    height: 40px;
    background: url('https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/items/poke-ball.png') no-repeat center;
    background-size: contain;
    animation: pokeballThrow 0.8s forwards;
    z-index: 100;
}

/* Pokémon spawn animation */
@keyframes pokemonSpawn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.spawn-animation {
    animation: pokemonSpawn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Type effectiveness colors */
.super-effective { background-color: #4ade80 !important; }
.not-very-effective { background-color: #f87171 !important; }
.neutral { background-color: #d1d5db !important; }
