@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    background-color: #c40c0c;
    font-family: 'Press Start 2P', cursive;
    color: white;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
}

.title {
    text-align: center;
    color: #ffde00;
    text-shadow: 3px 3px #3b4cca;
    margin: 20px 0;
    font-size: 1.5rem;
}

.subtitle {
    text-align: center;
    color: #2d2d2d;
    text-shadow: 3px 3px #7c7c7c;
    margin: 20px 0;
    font-size: 1.2rem;
}

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

#search-input {
    font-family: 'Press Start 2P', cursive;
    padding: 10px;
    border: 4px solid #3b4cca;
    border-radius: 0;
    width: 250px;
    background: black;
    color: white;
}

#search-button {
    font-family: 'Press Start 2P', cursive;
    background: #3b4cca;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.1s;
}

#search-button:hover {
    background: #2b3cba;
    transform: scale(1.05);
}

.pokemon-display {
    background: #2d2d2d;
    border: 8px solid #3b4cca;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

#pokemon-name-and-id {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#pokemon-name {
    color: #ffde00;
    font-size: 1.5rem;
    margin: 0;
}

#pokemon-id {
    color: #3b4cca;
    margin: 0;
}

#pokemon-size {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #7c7c7c;
}

#pokemon-image {
    background: #1a1a1a;
    border: 4px solid #3b4cca;
    padding: 10px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

#pokemon-image img {
    image-rendering: pixelated;
    max-width: 250px;
    width: 100%;
}

#types {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#types div {
    background: #3b4cca;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.stats-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #2d2d2d;
    border: 8px solid #3b4cca;
    padding: 1.2rem;
}

.base-stats, .stat-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.stat-name {
    color: #7c7c7c;
    margin: 5px 0;
}

.stat-values div {
    background: #3b4cca;
    padding: 5px;
    margin: 5px 0;
    position: relative;
}

.stat-values div::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #ffde00;
    width: var(--stat-width);
    z-index: 0;
}

.stat-values div span {
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .title {
        font-size: 1rem;
    }
    
    #search-input {
        width: 150px;
    }
    
    .stats-display {
        grid-template-columns: 1fr;
    }
}