html {
    min-height: 100vh;
    position: relative;
}

body {
    margin: 0;
    font-family: sans-serif;

}

body::-webkit-scrollbar {
    width: 18px;
    /* width of the entire scrollbar */
}

body::-webkit-scrollbar-track {
    background: rgb(224, 167, 60);
    /* color of the tracking area */
}

body::-webkit-scrollbar-thumb {
    background-color: rgb(109, 109, 245);
    /* color of the scroll thumb */
    border-radius: 20px;
    /* roundness of the scroll thumb */
    border: 3px solid rgb(224, 167, 60);
    /* creates padding around scroll thumb */
}


.header {
    padding: 20px;
    align-items: center;
    background-color: rgb(224, 167, 60);
    color: white;
    font-size: 30px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.2);
}

.header h1 {
    color: black;
    font-weight: bolder;
    align-items: center;
}

.imgHeader {
    width: auto;
    height: 80px;
    margin: 10px;
    vertical-align: middle;
}

.headContainer {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
    padding: 36px;
}

.inputSearch {
    display: flex;
    flex-direction: row;
    margin: 20px;
    justify-content: center;
}

.imgSearch {
    width: 30px;
    height: 30px;
}

.imgSearch:hover {
    scale: 1.5;
    cursor: pointer;
}

.loader {
    display: none;
    width: 30px;
    height: 30px;
    border: 30px solid #f3f3f3;
    border-left: 30px solid #FF5D00;
    border-right: 30px solid #FF5D00;
    border-radius: 50%;
    animation: spinIT 0.8s linear infinite;
    filter: drop-shadow(0px 0px 8px gray);
    margin: 20px auto;
    /* position: relative;
    top: 50%;
    left: 50%; */
}

@keyframes spinIT {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.divNoFound {
    display: none;
    flex-direction: row;
    justify-content: center;
    margin-top: 100px;
    margin-bottom: 50px;
}

.textNoFound {
    display: flex;
    text-align: center;
    font-size: 30px;
    justify-content: center;
    align-self: center;

}

.imgNoFound {
    width: 200px;
}

.pokedex {
    display: flex;
    flex-direction: column;
    width: 300px;
    padding-top: 26px;
    margin: 16px;
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    text-align: center;
}

.pokedex:hover {
    box-shadow: 16px 16px 8px rgba(51, 50, 50, 0.5);
}

.divCard {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 15px;
}

.title {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-bottom: 15px;
}

.imgPokemon {
    width: 100px;
    height: 100px;
}

.imgPokemon:hover {
    scale: 1.5;
}

.divTypes {
    align-content: center;
    margin-left: 15px;
}

.type {
    align-content: center;
    width: 100px;
    color: white;
    border-radius: 5px;
    border: solid 1px whitesmoke;
    font-weight: 500;
    padding: 3px;
    margin: 5px;
}

.info-container {
    text-align: center;
    background-color: white;
    border-radius: 10px;
    border-top: 0;
    width: 100%;
    color: black;
}

.divBtn {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.btnLaden {
    display: flex;
    width: 150px;
    height: 40px;
    background-color: darkgray;
    border: 1px solid rgb(102, 98, 98);
    border-radius: 5px;
    color: white;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.btnLaden:hover {
    cursor: pointer;
    background-color: rgb(245, 255, 240);
    color: rgb(14, 85, 24);
}

.d-none {
    display: none;
}

.pokedexCard {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    width: 100%;
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    text-align: center;
    margin: 0 auto;
    max-height: 95vh;
    overflow-y: auto;    
}

.imgCard {
    width: 150px;
    height: 150px;
}

.imgCard:hover {
    scale: 1.5;
}

.p-btnCard {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1;
}

.btnCard {
    display: flex;
    width: max-content;
    height: 25px;
    background-color: darkgray;
    border: 1px solid rgb(102, 98, 98);
    border-radius: 5px;
    color: white;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin: 10px;
}

.btnCard:hover {
    cursor: pointer;
    background-color: rgb(245, 255, 240);
    color: rgb(14, 85, 24);
}

.cardStyle {
    display: flex;
    flex-direction: row;
    text-align: start;
    margin-left: 35px;
    margin-right: 45px;
}

.infoPoke {
    display: none;
    padding: 5px;
}
#infoPoke::-webkit-scrollbar {
    width: 5px;
}

#infoPoke::-webkit-scrollbar-track {
    background: rgb(245, 255, 240);
}

#infoPoke::-webkit-scrollbar-thumb {    
    background-color: rgb(163, 127, 8);
    border-radius: 3px;
    border: 1px solid rgb(96, 236, 115); 
} 

.selectedCard {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 0 10px;
}



@keyframes move-img {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.animation1 {
    animation-name: move-img;
    animation-duration: 1s;
}

@keyframes disappear-img {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animation2 {
    animation-name: disappear-img;
    animation-duration: 1s;
}

.button {
    cursor: pointer;
    background: transparent;
    color: whitesmoke;
    border: 0;
}

.button:hover {
    cursor: pointer;
    transform: scale(1.8);
}

.close {
    font-size: 40px;
    float: right;
}

.back {
    font-size: 20px;
    margin-left: 15px;
}

.next {
    font-size: 20px;
    margin-right: 15px;
}

footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 2px;
    font-weight: 600;
    color: darkred;
    background-image: url('img/pikachu-background.webp');
    background-position: bottom;
    filter: drop-shadow(0px 0px 8px gray);
}


@media (max-width:500px) {
    .infoPoke {
        overflow-y: scroll;
        max-height: 300px;
    }

    .textNoFound {
        font-size: 28px;
    }

    .imgNoFound {
        width: 180px;
        margin-right: 15px;
    }
}


@media (max-width:400px) {
    .textNoFound {
        font-size: 25px;
    }

    .imgNoFound {
        width: 150px;
    }


    .imgCard {
        width: 80px;
        height: 80px;
    }

    .type {
        width: 70px;
    }

    .back {
        margin-left: 10px;
    }

    .divTypes {
        margin-left: 5px;
    }

    .cardStyle {
        margin-left: 15px;
        margin-right: 25px;
    }
}