.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    display: none;
    z-index: 1000;
    animation: changeBlur 0.6s ease forwards;
}

.pokemonCard {
    display: flex;
    flex-direction: column;
    background: #f4f4f4;
    border-radius: 20px;
    width: 400px;
    height: 430px;
    text-align: center;
    color: #333;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 10;
    animation: growFadeIn 0.6s ease forwards;
    display: none;
}

@keyframes changeBlur {
    from {
        backdrop-filter: blur(0);
    }

    to {
        backdrop-filter: blur(5px);
    }
}

@keyframes growFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.pokemonCard img {
    width: 200px;
    height: 200px;
}

.pokemonCard h2 {
    margin: 10px 0;
    font-size: 1.8rem;
    color: #222;
}

.pokemonCard p {
    margin: 5px 0;
    font-size: 1rem;
    font-weight: bold;
    color: #555;
}

@media screen and (max-width: 500px) {
    .pokemonCard {
        width: 90%;
        height: auto;
        padding: 15px;
    }

    .pokemonCard img {
        width: 150px;
        height: 150px;
    }

    .pokemonCard h2 {
        font-size: 1.5rem;
    }

    .pokemonCard p {
        font-size: 0.9rem;
    }
}