body {
    background: linear-gradient(to bottom right, #e60012, #ffcc00);
    min-height: 100vh;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pokedex {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 20px;
    width: 350px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

h1 {
    margin-bottom: 1.5rem;
    color: #333;
}

.search {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search input {
    width: 80%;
    padding: 0.8rem;
    border: 2px solid #ccc;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    text-align: center;
}

.search input:focus {
    border-color: #e60012;
}

.pokemon-display {
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.pokemon-display img {
    width: 180px;
    height: 180px;
    transition: transform 0.3s;
}

.pokemon-display img:hover {
    transform: scale(1.1);
}

.pokemon-display h2, .pokemon-display p {
    margin: 0.5rem 0;
}

.types {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.type {
    background-color: #eee;
    border-radius: 8px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: capitalize;
    color: #fff;
}

.loading {
    font-style: italic;
    color: #888;
}
