@font-face {
    font-family: Pokemon;
    src: url("./assets/pokemon_font/Pokemon\ Solid.ttf") format('truetype');
}


@font-face {
    font-family: Roboto;
    src: url("./assets/roboto_font/Roboto_SemiCondensed-Regular.ttf") format('truetype');
}


input[type="search"]::-webkit-search-cancel-button {
    display: none;
}


* {
    margin: 0;
}


body {
    height: 100vb;
    display: flex;
    flex-direction: column;
    background-color: rgb(53, 52, 52);
}


header {
    z-index: 1;
    background-color: rgb(75, 74, 74);
}


.header_content {
    width: 100%;
    padding-top: 24px;
    padding-bottom: 24px;
    color: rgb(53, 52, 52);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


header h1 {
    margin-top: -32px;
    margin-bottom: -24px;
    font-family: Pokemon;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: 6px;
    color: rgb(243, 189, 42);
    -webkit-text-stroke: 3px rgb(72, 102, 190);
}


header h1 img {
    width: 56px;
    margin-right: -8px;
    align-self: baseline;
    filter: brightness(0.9) grayscale(0.2);
}


header h1:hover {
    cursor: pointer;
    filter: drop-shadow(0 -4px 16px rgba(255, 255, 255, 0.5));
    transform: scale(108%);
}


.search_div {
    height: 40px;
    max-width: 480px;
    padding-left: 120px;
    flex: 1;
}


#searchInput {
    height: 100%;
    margin: 0;
    padding: 4px 8px 4px 8px;
    flex: 1;
    border: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    background-color: rgb(219, 221, 224);
    font-family: Roboto;
    font-size: 18px;
    letter-spacing: 0.5px;
    color: rgb(50, 50, 50);
    text-transform: lowercase;
}


#searchInput:hover {
    background-color: rgb(255, 255, 255);
}


#searchInput:focus-visible {
    border: none;
    outline: none;
    background-color: rgb(255, 255, 255);
}


#searchSubmit {
    height: 40px;
    margin: 0;
    padding: 2px;
    border: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    background-color: rgb(219, 221, 224);
    color: rgb(50, 50, 50);
    cursor: pointer;
}


#searchSubmit:hover {
    background-color: rgb(255, 255, 255);
}


#searchIcon {
    height: 100%;
}


main {
    flex: 1;
    flex-direction: column;
}


#pokeballBg {
    height: 100vh;
    width: 1200px;
    position: fixed;
    top: 5vh;
    bottom: 0;
    right: -600px;
    z-index: 0;
    align-content: center;
}


#pokeballBg img {
    height: 100%;
    width: 100%;
    border-radius: 90px;
    filter: invert(0.1);
}


#pokedex {
    margin-top: 112px;
    flex-direction: row;
    flex-wrap: wrap;
    z-index: 1;
}


.overlay {
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    background-color: rgb(0, 0, 0, 0.5);
}


#overlayLoadingScreen {
    background-color: rgb(0, 0, 0, 0.8);
    flex-direction: column;
    color: rgb(219, 221, 224, 0.8);
    font-family: Roboto;
    font-size: 24px;
}


#overlayLoadingScreen img {
    height: 240px;
    width: 240px;
    filter: grayscale(0.4) brightness(0.7);
}


#loadMorePkm {
    width: 100%;
    margin-bottom: 32px;
    z-index: 1;
}


#loadMorePkm img {
    width: 40%;
    max-width: 816px;
    height: 120px;
    object-fit: fill;
}


#loadMorePkm img:hover {
    cursor: pointer;
    filter: drop-shadow(0 -4px 16px rgba(255, 255, 255, 0.5));
    transform: scale(108%);
}


#backToTop {
    height: 80px;
    width: 80px;
    position: fixed;
    bottom: 0vh;
    right: 0vb;
    z-index: 2;
}


#backToTop a img {
    height: 100%;
    filter: invert(0.5);
}


footer {
    min-height: 160px;
    z-index: 1;
    background-color: rgb(75, 74, 74);
    color: rgb(53, 52, 52);
}


.footer_content {
    width: 100%;
    padding-top: 32px;
    padding-bottom: 32px;
    display: flex;
    flex-direction: column;
}


.normal {
    background-color: rgba(168, 168, 153, 0.6);
    border-color: rgb(168, 168, 153);
}


.fire {
    background-color: rgb(229, 59, 25, 0.6);
    border-color: rgb(229, 59, 25);
}


.water {
    background-color: rgb(39, 139, 204, 0.6);
    border-color: rgb(39, 139, 204);
}


.electric {
    background-color: rgb(229, 198, 0, 0.6);
    border-color: rgb(229, 198, 0);
}


.grass {
    background-color: rgb(88, 169, 81, 0.6);
    border-color: rgb(88, 169, 81);
}


.ice {
    background-color: rgb(104, 186, 172, 0.6);
    border-color: rgb(104, 186, 172);
}


.fighting {
    background-color: rgb(168, 76, 61, 0.6);
    border-color: rgb(168, 76, 61);
}


.poison {
    background-color: rgb(134, 74, 184, 0.6);
    border-color: rgb(134, 74, 184);
}


.ground {
    background-color: rgb(149, 104, 51, 0.6);
    border-color: rgb(149, 104, 51);
}


.flying {
    background-color: rgb(135, 181, 229, 0.6);
    border-color: rgb(135, 181, 229);
}


.psychic {
    background-color: rgb(229, 89, 115, 0.6);
    border-color: rgb(229, 89, 115);
}


.bug {
    background-color: rgb(131, 173, 37, 0.6);
    border-color: rgb(131, 173, 37);
}


.rock {
    background-color: rgb(168, 153, 91, 0.6);
    border-color: rgb(168, 153, 91);
}


.ghost {
    background-color: rgb(99, 60, 100, 0.6);
    border-color: rgb(99, 60, 100);
}


.dragon {
    background-color: rgb(77, 100, 171, 0.6);
    border-color: rgb(77, 100, 171);
}


.dark {
    background-color: rgb(70, 62, 62, 0.6);
    border-color: rgb(70, 62, 62);
}


.steel {
    background-color: rgb(153, 153, 168, 0.6);
    border-color: rgb(153, 153, 168);
}


.fairy {
    background-color: rgb(212, 128, 207, 0.6);
    border-color: rgb(212, 128, 207);
}