@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;800&display=swap');

@font-face {
    font-family: 'Pokemon Hollow';
    src: url('/src/fonts/PokemonHollow.ttf') format('truetype');
  }

:root{
    --cor-de-fundo: linear-gradient(to top, #ffd1ff 0%, #f38060 100%);
    --cor-rodape: linear-gradient(to top, #434343 0%, black 100%);
}

*{
    margin: 0;
    padding: 0;
    border: 0;
}

body{
    background-image: var(--cor-de-fundo);
    max-width: 1280px;
    margin: 0 auto;
    color: black;
    font-family: 'Poppins', sans-serif;
}

.darkmode{
    background-image: var(--cor-rodape);
    color: whitesmoke;
}

header{
    margin: 1rem 2rem 1rem;
    display: flex;
    justify-content: space-between ;
}

.logo{
    width: 2rem;
    transition: 0.2s ease-in-out;
}

.imagemBotao{
    width: 2rem;
}

.imagemBotao:hover, .logo:hover{
    transform: scale(1.05);
    cursor: pointer;
}

#botao-modo{
    background: none;
    border: none;
}

.destaque{
    font-size: 5rem;
    font-family: 'Pokemon Hollow', sans-serif;
    color: yellow;
    background-color: black;
    width: 100%;
    text-align: center;
    
}

main{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    grid-auto-columns: 2rem;
    gap: 1.5rem;
    margin: 2rem;
}

.listaDePokemons{
    justify-content: center;
    border: 0.2rem solid #01089c;
    border-radius: 2rem;
    height: 20rem;
    width: 14rem;
    transition: 1s ease-in-out;
}

.listaDePokemons:hover{
    transition: 0.5s;
    background-image: var(--cor-rodape);
    color: whitesmoke;
}

.infoPokemons{
    display: flex;
    justify-content: space-between;
    margin: 1rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    background-color: gray;
}

span{    
    padding: 0.2rem;
    text-align: center;
    text-transform: uppercase;
}

.gifPokemon{
    width: 4rem;
    height: 4rem;
    margin-left: 5rem;
}

.tipos2{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    color: whitesmoke;
}

.tipos{
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-top: 1rem;
    color: whitesmoke;
}

.tipoGrama{
    background-color: green;
    border: 0.3rem solid green ;
    border-radius: 2rem;
    text-align: center;
    width: 4rem;
}

.tipoVeneno{
    background-color: purple;
    border: 0.3rem solid purple ;
    border-radius: 2rem;
    text-align: center;
    width: 4rem;
}

.tipoFogo{
    background-color: red;
    border: 0.3rem solid red;
    border-radius: 2rem;
    width: 4rem;
    margin-left: 5rem;
}

.tipoAgua{
    background-color: aqua;
    border: 0.3rem solid aqua;
    border-radius: 2rem;
    color: black;
    width: 4rem;
    margin-left: 5rem;
}

.tipoInseto{
    background-color: greenyellow;
    border: 0.3rem solid greenyellow;
    border-radius: 2rem;
    color: black;
    width: 4rem;
    margin-left: 5rem;
}

.descricaoPokemons{
    margin: 0.6rem;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.2;
    max-height: 20rem;
    overflow-y: scroll;
}

.rodape{
    display: flex;
    flex-direction: column;
    background-image: var(--cor-rodape);
    font-weight: 100;
    text-align: center;
    padding: 0.2rem;
    font-family: 'Poppins', sans-serif;
    color: whitesmoke;
}
