:root{
    --grass: #2db30c;
    --poison: #ac53c5;
    --water: #0378fd;
    --fire: #e40909;
    --flying: #3dc7ef;
    --bug: #81c731;
    --dragon: #033196;
    --electric: #d1bd04;
    --ice: #00c3ff;
    --psychic: #f366b9;
    --steel: #c0c0c0;
    --rock: #a38c21;
    --ground: #8a6b08;
    --ghost: #382557;
    --normal: #888;
    --fairy: #eb9fd4;
    --fighting: #fd6500;
    --dark: #333;
}
@keyframes luxray {
    0%{
        top: 110px;
    }
    50%{
        top: 130px;
    
    }
    100%{
        top: 110px;
    }
}
*,::after,::before{
    margin: 0;
    padding: 0;
}
body{
    background-color: #111;
}
body::-webkit-scrollbar {
    width: 8px;               
}
body::-webkit-scrollbar-track {
    background: transparent;
}
body::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 5px;
}
body::-webkit-scrollbar-thumb:hover{
    background-color: #777;
}
.fixo{
    text-align: center;
    color: #eee;
    background-color: #000;
    width: 100%;
    height: 30px;
    padding-top: 5px;
}
.header{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;

    width: 100%;
    background-color: rgb(201, 15, 15);
    margin-bottom: 150px;
}
.header img{
    width: 250px;
}
.luxray{
    position: relative;
    width: 350px !important;
    animation: luxray 2.25s ease infinite;
}
.header ul{
    display: flex;
    gap: 25px;
}
.header li{
    list-style: none;
    transition: 0.5s ease;
    &:hover{
        transform: scale(1.20);
    }

    &:hover i{
        color: #000;
    }
}
.header i{
    color: #ffffff;
    font-size: 36px;
    transition: 0.5s ease;
}
.main{
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}
.pesquisa{
    display: flex;
    background-color: #181818;
    border: 1.5px solid #aaa;
    border-radius: 3px;
}
.pesquisa input{
    padding: 5px 35px;
    background-color: transparent;
    border: none;
    border-right: 1px solid #aaa;
    outline: none;
    color: #eee;
    font-size: 20px;
    &::placeholder{
        color: #666;
    }
}
.pesquisa .botao{
    width: 45px;
    background-color: #fff;
    border-bottom-right-radius: 3px;
    border-top-right-radius: 3px;
    border: none;
    transition: 0.25s ease;

    &:hover{
        background-color: red;
    }

    &:hover i{
        color: white;
    }
}
.botao i{
    color: #111;
    font-size: 20px;
}
.tipos{
    display: grid;
    grid-template-columns: repeat(9,1fr);
    gap: 1.5rem 1.75rem;
    max-width: 1280px;
}
.tipos button{
    font-size: 18px;
    text-align: center;
    color: #fff;
    min-width: 100px;
    padding: 7.5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.25s ease;
}
.contPkm{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;

}
.card{
    width: 270px;
    height: 480px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: .5s ease;
}
.card.flip{
    transform: rotateY(180deg);
}
.card img{
    width: 200px;
}
.frente, .verso{
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    gap: 1%;
    align-items: center;
}
.top, .bot{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;

    width: 100%;
    height: 49.5%;
    border-radius: 15px;
}
.top{
    background-color: #282828;
}
.top p{
    font-size: 20px;
    position: absolute;
    top: 5px;
    left: 15px;
    color: #eee;
}
.bot{
    background-color: #e6e6e6;
}
.bot p{
    font-size: 24px;
}
.infoPokemon{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px
}
.infoPokemon p{
    font-size: 19px;
    min-width: 110px;
    text-align: center;
}
.tipo{
    font-size: 20px !important;
    background-color: #000;
    margin: 0;
    color: #fff;
    padding: 5px 0;
    border-radius: 15px;
}
.verso{
    transform: rotateY(180deg);
}
.verso .top p:nth-child(2){
    position: initial;
}
.status{
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    align-items: center;
    gap: 3px 10px;
}
.status p{
    font-size: 18px;
    color: #444;
    font-weight: 700;
}
.statusBar{
    background-color: #2db30c;
    border-radius: 10px;
    max-width: 161px;
    height: 10px;
}
.statusBar2{
    width: 100px;
}
.maisPkm{
    font-size: 20px;
    color: #eee;
    padding: 1rem;
    border-radius: 5px;
    background-color: rgb(221, 16, 16);
    border: none;
    transition: 0.25s ease;
    &:hover{
        transform: scale(1.05);
    }
}
.btSubir{
    position: fixed;
    bottom: 20px;
    right: 20px;

    width: 65px;
    height: 65px;
    background-color: rgb(221, 16, 16);
    border: none;
    border-radius: 50%;
    transition: .5s ease;
    transform: scale(0);
    cursor: pointer;

    &:hover i{
        font-size: 32px;
    }
}
.btSubir i{
    color: white;
    font-size: 24px;
    transition: 0.15s;
}
.footer{
    padding: 35px 5px ;
    border-top: 2px solid #ddd;
}
.footer p{
    font-size: 20px;
    text-align: center;
    color: #ddd;
}
.footer p:first-child{
    margin-bottom: 10px;
}
@media (max-width: 1180px) {
    .contPkm{
        grid-template-columns: repeat(3, 1fr);
    }
    .tipos{
        grid-template-columns: repeat(6, 1fr);
    }   
    .luxray{
        width: 250px !important;
    }
}
@media (max-width: 890px) {
    .contPkm{
        grid-template-columns: repeat(2, 1fr);
    }
    .tipos{
        max-width: 80%;
        padding: 5px 0;
        grid-template-columns: repeat(9, 1fr);
        overflow-x: auto;
        justify-content: initial;
    }
    .tipos::-webkit-scrollbar {
        height: 8px;             
    }
    .tipos::-webkit-scrollbar-track {
        background: transparent;
    }
    .tipos::-webkit-scrollbar-thumb {
        background-color: #555;
        border-radius: 5px;
    } 
    .tipos::-webkit-scrollbar-thumb:hover{
        background-color: #777;
    }
    .luxray{
        width: 200px !important;
    }
}
@media (max-width: 600px) {
    .header{
        padding: 30px 0;
    }
    .contPkm{
        grid-template-columns: 1fr;
    }
    .luxray{
        position: absolute;
        width: 175px !important;
    }
    .pesquisa input{
        max-width: 90%;
    }
    .btSubir{
        bottom: 135px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}