
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}


.pokedex-container {
    background-color: #dc3545; 
    border: 6px solid #222;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 380px;
    padding: 25px;
    text-align: center;
    color: white;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 2px 2px #222;
}


.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 3px solid #222;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

button {
    background-color: #3b4cca; 
    color: white;
    border: 3px solid #222;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background-color: #2a3a9e;
}


.screen-wrapper {
    background-color: #dedede; /* Classic handheld grey screen background */
    border: 4px solid #222;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto;
    width: 180px;
    height: 180px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

#pokemonSprite {
    width: 130px;
    height: 130px;
    object-fit: contain;
}

#pokemonName {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 1px 1px #222;
    margin-bottom: 10px;
}

/* Stats Layout */
.stats-box {
    background-color: #333;
    border: 2px solid #222;
    border-radius: 8px;
    padding: 12px;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.5;
}

.stats-box p {
    margin: 4px 0;
    border-bottom: 1px dashed #555;
}

.stats-box p:last-child {
    border-bottom: none;
}


.error-msg {
    background-color: #ffdddd;
    color: #d9534f;
    border: 2px solid #d9534f;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
}