* {
    margin: 0;
    box-sizing: border-box;
    scrollbar-width: auto;
}

*::-webkit-scrollbar {
    width: 16px;
}

*::-webkit-scrollbar-track {
    background: #a0a0a0;
}

*::-webkit-scrollbar-thumb {
    background-color: #FFD302;
    border: 3px solid #547BAF;
    border-radius: 10px;
    background-clip: padding-box;
}

body {
    height: 100%;
    font-family: "Open Sans", sans-serif;
    background: #e4e4e4;
}

.backgroundImg {
    height: 100%;
    background-image: url(./img/pokeball-transperent.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40%;
    background-attachment: fixed;

}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 32px 10px;
}

header img {
    width: 270px;
    height: auto;
    margin-bottom: 2rem;
}

input {
    width: 230px;
    height: 28px;
    border-radius: 12px;
    border: 3px solid #547BAF;
    text-indent: 10px;

}


main {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pokeCardContanier {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    min-height: 65vh;
}

.pokeCard {
    width: 270px;
    height: 270px;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: rgb(188 188 188 / 33%) 0px 1px 8px 5px;
    border-radius: 20px;
    overflow: hidden;
}

.pokeCard:hover {
    cursor: pointer;
}


.top-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    padding-bottom: 16px;
}

.pokeCard h3 {
    font-size: 20px;
    font-weight: 800;
    text-transform: capitalize;
    display: block;
}

.types {
    display: flex;
    gap: 1rem;
    width: 80%;
    border: none;
    margin-bottom: 16px;
}

.type {
    display: flex;
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    padding: 3px 10px;
    text-transform: capitalize;
    width: fit-content;
}

.pokeCard img {
    height: auto;
    width: 140px;
    object-fit: cover;
    object-position: center;
    z-index: 2;

}

.pokeCard img:hover {
    width: 160px;
}

.bottom-box {
    height: 80px;
    width: 100%;
    background-color: white;
    margin-top: -3rem;
    border-radius: 20px 20px 10px 10px;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    bottom: 0;
}

main button {
    width: 200px;
    height: 40px;
    border-radius: 20px;
    border: 3px solid #547BAF;
    background-color: #FFD302;
    color: #547BAF;
    font-size: 16px;
    font-weight: 600;
}

main button:hover {
    cursor: pointer;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

a {
    color: black;
}

.d-none {
    display: none !important;
}

#body-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.body-noscroll-class {
    overflow: hidden;
}

/* Info Card -------------------------------------------------- */

.info-card {
    position: fixed;
    height: 90vh;
    width: 80vw;
    background-color: white;
    border-radius: 20px;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    overflow: auto;
    filter: drop-shadow(0px 0px 3px white);
    z-index: 4;
}

.close {
    width: 20px !important;
    height: 20px !important;
}

.close:hover {
    cursor: pointer;
}

.close-container {
    height: 30px;
    width: 95%;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: end;
}

.info-card h2 {
    text-transform: capitalize;
}

#next-pokemon img:hover {
    cursor: pointer;
}

.pokemon-img {
    width: 190px;
    height: auto;
    z-index: 5;
    margin-top: -140px;
}

#top-Section {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.info-card-top {
    height: 280px;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    border-radius: 20px;
    position: sticky;
    top: 0;
}

.top-card-info {
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 95%;
}

#next-pokemon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
}

.types-Info {
    height: 2rem;
    display: flex;
    gap: 1rem;
    width: 95%;
    border: none;
}

.info-btn {
    background-color: transparent;
    width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: inherit;
}

.info-btn button {
    background-color: transparent;
    border: none;
    color: #414141;
    font-weight: 700;
    font-size: 16px;
    padding: 5px 10px;
}

.info-btn button:hover {
    cursor: pointer;
}

.info-btn button:focus {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* general Information -------------------------------------- */

#Info-Section {
    width: 95%;
    height: 100%;
    overflow: scroll;
    overflow-x: hidden;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    color: #414141;
    z-index: 1;
    bottom: 0;
}

#Info-Section::-webkit-scrollbar {
    display: none !important;
}

.abilities {
    display: flex;
    gap: 10px;
}

.general-Info {
    width: 100%;
}

.text-big {
    text-transform: capitalize;
}

.info-section {
    padding-top: 23px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.flavor {
    text-align: center;
}

.infoPokemonImg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.infoPokemonImg img {
    width: 140px;
    height: auto;
    margin-top: 0;
}

.row {
    display: flex;
    gap: 4px;
}

/* Evolution ------------------------------------------- */
.info-section-evolution {
    padding-top: 23px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.first-evolution {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.eevee-row {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.canter-row {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.arrow-row {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
}

.eeveeImg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.eeveeImg img {
    width: 60px !important;
    height: auto;
    margin-top: 0;
}

.lvl-up-arrow-down {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
}

.lvl-up-arrow-down img {
    height: 40px;
    width: auto;
}

.multi-evo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    width: 40px;
}

.arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
}

/* Stats------------------------------------------------------------------- */

.progress {
    width: 100%;
    height: 12px;
    background-color: #e9e9e9;
    border-radius: 10px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 10px;
}

.stats-table {
    margin-top: 32px;
}

.sats-collum {
    display: grid;
    grid-template-columns: 25% 60% 5%;
    align-items: center;
    justify-content: space-evenly;
    row-gap: 32px;
    column-gap: 16px;
}

/* Moves-------------------------------------------------------------------------- */

.move-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    width: 100%;
}

.move-container table {
    width: 90%;
    border-collapse: collapse;
    border-radius: 5px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    word-wrap: break-word;
}

.move-container tr td {
    padding: 5px;
    text-align: center;
}

@media (max-width: 400px) {
    .info-btn {
        flex-wrap: wrap;
    }
    .sats-collum {
        grid-template-columns: 25% 50% 5%;
    }

    .small-screen-img {
        width: 80px !important;
    }

    .small-screen {
        width: 80px;
        font-size: 12px;
    }
}

@media (max-width: 500px) {
    .move-container tr td {
        padding: 0;
    }

    .small-screen-d-none {
        display: none;
    }

    .move-container table {
        overflow: hidden;
    }

    .small-screen-img {
        width: 100px !important;
    }

    .info-card {
        height: 85vh;
    }
}

@media (min-width: 450px) {
    .info-card {
        width: 80vw;
    }

    .arrow-row {
        font-size: 16px;
    }

    .eeveeImg img {
        width: 80px !important;
    }

    .arrow-center {
        font-size: 16px;
        width: 50px;
    }

    .arrow {
        width: 100px;
    }
}

@media (min-width: 800px) {
    .info-card {
        width: 70vw;
    }

    .pokemon-img {
        width: 240px;
        margin-top: -170px;
    }

    .arrow-row {
        width: 50%;
    }

    .eevee-row {
        width: 80%;
    }

    .eeveeImg img {
        width: 120px !important;
    }

    .arrow {
        width: 150px;
    }

    .arrow-center {
        font-size: 16px;
        width: 60px;
    }
}

@media (min-width: 1000px) {
    .info-card {
        width: 60vw;
    }

    .arrow-center {
        width: 140px;
    }

    .arrow-center img {
        width: 60px;
    }

    .arrow img {
        width: 60px;
    }
}

@media (min-width: 1100px) {
    .arrow-center {
        width: 60vw;
        width: 170px;
    }

}

@media (min-width: 1200px) {

    header {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin: 0.5rem 10px;
    }
    
    header img {
        width: 20rem;
        height: auto;
        margin-bottom: 2rem;
    }

    .info-card {
        height: 80vh;
    }

    .info-section-evolution {
        padding-top: 23px;
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        margin-left: 16px;
    }

    .rotate {
        transform: rotate(-90deg);
    }

    .infoPokemonImg {
        flex-direction: row;
        gap: 16px;
    }

    .first-evolution {
        flex-direction: column;
    }

    .sats-collum {
        grid-template-columns: 15% 70% 5%;
    }
}

@media (min-width: 1600px) {
    .sats-collum {
        grid-template-columns: 10% 75% 5%;
    }
}