body {
    margin: 0;
    background-image: url(./img/pokemon-back.jpg);
    background-attachment: fixed;
    background-size: cover;
    background-position: top;
}



*,
::after,
::before {
    box-sizing: unset !important;
}


.header {
    width: 100%;
    box-shadow: 0px 0px 4px 0px #000000;
}

.header-container {
    display: flex;
    margin-top: 0;
    justify-content: space-between;
    align-items: center;
}

.pokedex-logo {
    width: 200px;
    padding-left: 12px;

}

.search-container {
    display: flex;
    padding-right: 12px;
}

.search-container input {
    border-radius: 10px;
    @media (max-width: 1024px){
        max-width: 4rem;
    }
}

.search-icon {
    width: 70px;
    height: 48px;
    padding-right: 8px;
}

#search {
    border-radius: 8px;
    padding-right: 12px;
    margin-right: 12px;
}

.pokemon {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 280px;
    height: 160px;
    padding: 20px 15px;
    border-radius: 20px;
    box-shadow: 2px 2px 8px 0px #000000;
    font-weight: bold;
    color: white;
    font-size: 20px;
    margin: 10px;
}

.pokemon-img {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 140px;
    object-fit: cover;
}

#allPokemons {
    display: flex;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-left: 12px;
    justify-content: center;
}

@media (max-width: 1024px){
    #allPokemons {
        padding-left: 0;
        justify-content: center;
    }
}

.pokeball-img {
    position: absolute;
    bottom: -42px;
    right: -41px;
    width: 250px;
    opacity: 0.4;
    filter: invert(1);
}

.type-container {
    background-color: rgba(255, 255, 255, 0.4);
    padding: 5px 20px;
    margin-top: 5px;
    display: inline-block;
    border-radius: 25px;
    font-size: 16px;
}

#pokemon {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1350px;
    padding: 30px;
}

.pokemon-img:hover {
    cursor: pointer;
    scale: 1.25;
    transition: all 225ms ease-in-out;
}

.stat-img:hover {
    scale: 1.1;
    transition: all 225ms ease-in-out;
}

.pokemon:hover {
    cursor: pointer;
    scale: 1.01;
    transition: all 225ms ease-in-out;
}

.btn {
    width: 25%;
    font-size: 16px;
    border-radius: 4px;
    z-index: 9;
    position: fixed;
    bottom: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    left: 36%;
}

.pokeStats-container {
    z-index: 9;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    transform: translateY(-100%);
    overflow: hidden;
    transition: all 225ms linear;
    width: 380px;
    height: 700px;
    opacity: 0;
    border-radius: 25px;
    color: white;
    box-shadow: 2px 2px 8px 0px #000000;
}


.show-stats {
    transform: translateY(0);
    opacity: 1 !important;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 30px 10px 30px;
    font-size: 22px;
}

.pokeStats-bg {
    z-index: 8;
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    transform: translateY(-100vh);
    background-color: rgba(0, 0, 0, 0.0);
    backdrop-filter: unset;
    transition: background-color 225ms linear;
    transition: backdrop-filter 225ms linear;
}

.show-stats-bg {
    transform: translateY(0vh);
    backdrop-filter: blur(4px) !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
}

#stat-type-container {
    margin: 0 30px;
    font-weight: bold;
}

#stat-type-container div {
    margin-bottom: 5px;
}

.stats-pokeball {
    position: absolute;
    top: 140px;
    bottom: 0;
    transform: translateY(-122px);
    width: 260px;
    opacity: 0.4;
    filter: invert(1);
    left: 160px;
}

.stats-space {
    position: absolute;
    bottom: 0;
    height: 50%;
    width: 87%;
    padding: 60px 25px 20px 25px;
    border-radius: 25px;
    background-color: white;
    color: black;
    font-size: 14px;
}

.stat-space-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    border-bottom: 4px solid lightgray;
}

.stat-space-header div:hover {
    cursor: pointer;
    color: #0072cc;
}

.stat-space-main {
    width: 100%;
    padding: 20px 0 0 0;
}

.selected-info {
    color: #0072cc;
    margin-bottom: 10px;
    text-decoration: underline;
    text-underline-offset: 14px;
    text-decoration-color: #0072cc;
    text-decoration-thickness: 4px;
}

#info table tr td:first-child {
    padding-right: 30px;
    font-weight: bold;
}

td {
    padding-bottom: 8px;
}

td span {
    margin-right: 8px;
}

.show-stat-img {
    transform: translateY(0);
}

.base-progress {
    background-color: #ededed;
    width: 140px;
    height: 4px;
}

.actual-progress {
    height: 4px;
}

#moves {
    position: absolute;
    overflow-y: auto;
    bottom: 20px;
    top: 105px;
    right: 0;
    left: 0;
    margin: 0 26px;
}

.move {
    display: inline-block;
    font-weight: bold;
    margin: 2px 2px 2px 0;
    padding: 0 2px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.1);
}

#moves::-webkit-scrollbar {
    width: 6px;
}

#moves::-webkit-scrollbar-track {
    background: rgb(210, 210, 210);
}

#moves::-webkit-scrollbar-thumb {
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    border: 2px solid rgb(210, 210, 210);
}

.stat-img {
    position: absolute;
    top: 140px;
    left: 110;
    bottom: 130px;
    right: 30px;
    width: 220px;
    transform: translateY(-90px);
}



.slide-left {
    z-index: 10;
    position: absolute;
    left: 10px;
    top: -60px;
    width: 40px;
}

.slide-right {
    z-index: 10;
    position: absolute;
    right: 10px;
    top: -60px;
    width: 40px;
}

.slide-left:hover,
.slide-right:hover,
.back-img:hover {
    cursor: pointer;
    transform: scale(1.1);
    transition: all 225ms ease-in-out;
}

.back-img {
    position: absolute;
    top: 16px;
    left: 335px;
}