/*color type
    grass: rgb(116, 203, 72)
    poison: rgb(164, 62, 158)
 */


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

*{
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    background-color: #d6d6d6;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#pokedex{
    width: 22rem;
    height: 35rem;
    background-color: rgb(116, 203, 72);
    border-radius: 8px;
    padding: 0.3rem;
    transition: background-color 0.5s ease-in-out;
}

.top{
    height: 40%;
    padding: 0.5rem;
    background: url("img/pokeball.png");
    background-repeat: no-repeat;
    background-position: right;
}

.top-bar{
    display: flex;
    justify-content: space-between;
    color: white;
    padding: 0  1.2rem;
}

#search{
    color: white;
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    width: 60%;
    text-transform: capitalize;
}

#search:focus{
    outline: none;
}

.poke-image-placeholder{
    display: flex;
    justify-content: center;
}

#pokemon-image{
    width: 200px;
    height: 200px;
    transform: translateY(3.5rem);
}

.data{
    background-color: white;
    height: 60%;
    border-radius: 8px;
    padding-top: 5.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}



#types{
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.type {
    color: white;
    background: blue;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: capitalize;
}

.data h4{
    text-align: center;
}

#stats{
    width: 80%;
    font-size: 0.8rem;
    gap: 0.5rem;
}

.stat-row{
    display: flex;
}

.stat-desc, .stat-number{
    width: 13%;
}

.stat-desc{
    color: rgb(116, 203, 72);
    font-weight: bold;
    text-align: right;
    margin-right: 0.6rem;
    transition: color 0.5s ease-in-out;
}

.stat-number{
    border-left: 1px solid gray;
    text-align: right;
}

.stat-bar{
    width: 75%;
    display: flex;
    align-items: center;
    padding-left: 0.6rem;
}

.bar-outer{
    background-color: rgb(116, 203, 72, 0.3);
    display: flex;
    width: 100%;
    height: 0.3rem;
    border-radius: 4px;
    transition: 0.5s ease-in-out;
}

.bar-inner{
    background-color: rgb(116, 203, 72);
    border-radius: 4px;
    transition: 0.5s ease-in-out;
}

#base_stats {
    transition: color 0.5s ease-in-out;
}