body {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Open Sans';
    background-image: url('img/pokeball-background.png');
    background-attachment: fixed;
}

.pokemonsCard {
    height: 150px;
    width: 250px;
    background-color: #FC6D6D;
    color: white;
    display: flex;
    flex-direction: column;
    border-radius: 40px;
    border: 0.5px solid lightgray;
    padding: 24px;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
    position: relative;
    margin: 8px;
    cursor: pointer;
}

.pokemonsCardBig {
    height: 165px;
    width: 250px;
    background-color: #FC6D6D;
    color: white;
    display: flex;
    flex-direction: column;
    border-top-right-radius: 40px;
    border-top-left-radius: 40px;
    padding: 24px;
    padding-top: 5px;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
    position: relative;
}

.pokemonsCard:hover {
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.pokemonStatsPopup {
    min-height: 100px;
    border-radius: 40px;
    margin-top: -36px;
    background-color: white;
    display: flex;
    align-items: flex-start;
    position: relative;
    padding: 24px;
    flex-direction: column;
    width: 250px;
}

.pokemonsInfo {
    height: 100%;
    border-radius: 40px;
    margin-top: -36px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.pokemonBigCard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.arrows {
    font-weight: bold;
    gap: 15px;
    display: flex;
    justify-content: center;
}

#pokemonImage {
    object-fit: contain;
    height: 100px;
    width: 100px;
    position: absolute;
    bottom: 15px;
    right: 40px;
    z-index: 111;
}

#pokemonImage:hover {
    scale: 1.3;
    transition: 225ms ease-in-out;
}

.closeCard {
    color: white;
    margin-top: 0;
    margin-bottom: 10px;
}

#pokemonImageLogo {
    object-fit: contain;
    height: 140px;
    width: 140px;
    position: absolute;
    right: 0;
    bottom: 30px;
}

.pokemonsCardHeader {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: baseline;
}

.pointer {
    cursor: pointer;
}

.blur {
    filter: blur(5px);
}

#pokemonNo {
    font-weight: bold;
}

.pokemonName {
    margin-top: 0;
    margin-bottom: 80px;
}

.pokemonNameBigCard {
    margin-top: 0;
}

.pokemonsCardHeaderBtn {
    display: flex;
}

.headerBtn {
    background-color: rgba(255, 255, 255, 0.2);
    width: 25%;
    margin-right: 5px;
    padding: 5px;
    border: none;
    color: white;
    border-radius: 10px;
}

.grass {
    background-color: green !important;
}

.fire {
    background-color: #FC6D6D !important;
}

.water {
    background-color: blue !important;
}

.bug {
    background-color: darkslateblue !important;
}

.normal {
    background-color: darkblue !important;
}

.poison {
    background-color: rgb(190, 190, 0);
}

.electric {
    background-color: grey !important;
}

.ground {
    background-color: brown !important;
}

.fairy {
    background-color: blueviolet !important;
}

.fighting {
    background-color: red !important;
}

.psychic {
    background-color: rgb(0, 128, 68) !important;
}

.rock {
    background-color: rgb(0, 98, 0);
}

.loadMore {
    margin: 24px;
    display: flex;
    justify-content: center;
}

.loadMoreBtn {
    border-radius: 10px;
    cursor: pointer;
    border: none;
    background-color: blue;
    padding: 20px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

.loadMoreBtn:hover {
    background-color: rgb(0, 0, 205);
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.z-index {
    z-index: 999;
}

.pokemonStatsCard {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    top: 100px;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.22);
    width: 100%;
    height: 100vh;
}

.pokemonName::first-letter {
    text-transform: capitalize;
}

.pokemonNameBigCard::first-letter {
    text-transform: capitalize;
}

.d-none {
    display: none;
}

.opacity {
    opacity: 0.5;
}

header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1111;
    margin-bottom: 20px;
    height: 100px;
    width: 100%;
    justify-content: center;
    align-items: center;
    border-bottom: 0.1px solid lightgray;
    background-color: white;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 0px 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
  
  .loading-animation {
    position: absolute;
    top: 30vh;
    left: 0;
    right: 0;
    width: 300px;
    height: 300px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

.animationImg {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

.headerContent {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    height: 100px;
    width: 100vw;
    background-image: url('img/pokeball-background.png');
    box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
}

header input {
    height: 25px;
}

.headerLogo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.headerBigLogo {
    height: 80px;
    width: 240px;
    object-fit: contain;
}

.searchBtn {
    background-color: #007bff;
    color: white;
    border: none;
    height: 30px;
    width: 80px;
    margin-left: 5px;
    border-radius: 2px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 12px;
}

.searchBtn:hover {
    background-color: #006ee4;
}

.pokemonPopup {
    position: absolute !important;
    top: 100px;
    padding-top: 100px;
}

.buttons {
    display: flex;
}

.search {
    display: flex;
}

.statsHeader {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: gray;
    border-bottom: 0.5px solid lightgray;
}

h4 {
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 8px;
    font-weight: 200;
}

h4:hover {
    margin-bottom: 0;
    border-bottom: 2px solid blue;
}

.statsCharacteristics {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100px;
}

.statsCharacteristicsP {
    color: gray;
    margin-top: 3px;
    margin-bottom: 3px;
}

.statsCharacteristicsP:first-child {
    margin-top: 6px;
}

.stats {
    color: black;
    margin-top: 3px;
    margin-bottom: 3px;
}

.stats:first-child {
    margin-top: 6px;
}

.containerShowStats {
    display: flex;
    margin-top: 20px;
    width: 100%;
    flex-wrap: wrap;
    max-height: 250px;
    overflow-x: hidden;
}

.statsContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.h3Stats {
    margin-top: 10px;
    margin-bottom: 10px;
}

.popupPokemon {
    scale: 1.2;
}

.underline {
    border-bottom: 2px solid blue;
    margin-bottom: 0;
}

.progress {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: .75rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    width: 100%;
}

.progress-bar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background-color: #007bff;
    transition: width .6s ease;
}

.statsProgressBar {
    width: 100%;
}

.h4progress {
    margin: 0;
    font-size: 14px;
    color:gray;
}

.h4progress:hover {
    border: none;
}

.moves {
    display: flex;
    flex-wrap: wrap;
    margin-right: 4px;
}

p {
    margin: 0;
    font-size: 12px;
}

@media (max-width: 700px) {
    .headerBigLogo {
        display: none;
    }
}

@media (max-width: 430px) {
    .popupPokemon {
        scale: 1.1;
    }

    .search {
        flex-direction: column;
        align-items: center;
    }

    .searchInput {
        width: 100%;
    }

    .searchBtn {
        margin-left: 0;
    }

    .buttons {
        margin-top: 5px;
        width: 100%;
        gap: 5px;
    }

    .headerLogo {
        display: none;
    }
}

@media (max-width: 350px) {
    .popupPokemon {
        scale: 1;
    }
}