body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed to flex-start to keep content at top */
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    padding-top: 50px; /* Add some padding at the top */
    box-sizing: border-box;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 25px;
    font-size: 2.5em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.search-area {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

input[type="text"] {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1.1em;
    width: 70%;
    max-width: 300px;
    margin-right: 10px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #4CAF50;
}

button {
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

button:hover {
    background-color: #45a049;
}

button:active {
    transform: translateY(1px);
}

.pokemon-display {
    min-height: 150px; /* Ensure space even when empty or showing error */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.pokemon-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* Take full width of parent */
    box-sizing: border-box; /* Include padding in width */
}

.pokemon-card h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.pokemon-image {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
    border: 3px solid #eee; /* Light border for image */
    border-radius: 50%; /* Make image circular if possible */
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.pokemon-card p {
    color: #555;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.pokemon-card p strong {
    color: #333;
}

.error {
    color: #e74c3c;
    font-weight: bold;
}

