@media (max-width: 950px) {

    /*HEADER*/
    .header {
        height: 190px;
    }

    .logo {
        margin-top: 45px;
    }

    .search {
        width: 80%;
    }

    .input-searchbar {
        width: 90%;
    }

    .search-text {
        font-size: 8px;
    }

    .pokeball {
        position: absolute;
        right: -30px;
        bottom: -30px;
    }

    .pokeball:hover {
        transform: none;
    }

    .loading-screen {
        margin-top: 40%;
        position: fixed;
        height: 150px;
    }

    /*HEADER*/
    .header {
        height: 190px;
        display: flex;
        flex-direction: column;
    }

    .pokedex {
        margin-top: 30px;
    }

    h1 {
        margin-top: 5px;
    }

    h1:hover {
        transform: none;
    }

    #pokecard {
        padding: 3px;
    }

    .poke-name {
        margin-top: 0px;
        font-size: 12px;
    }

    .pokepic {
        height: 160px;
        margin-top: 60px;
    }

    .searchbar {
        margin-bottom: 5px;
    }

    /*HEADER*/
    .main {
        margin-top: 190px;
    }

    .pokemon-preview:first-child {
        margin-top: 20px !important;
    }

    .empty-card {
        margin-top: 40px;
        width: 40%;
    }
}

@media (max-width: 760px) {
    .logo {
        margin-top: 0px;
    }
    .search-text {
        font-size: 8px;
    }

    .pokeball-card-bg {
        height: 120px;
        width: 120px;
        margin-left: 180px !important;
    }
}

@media (max-width: 420px) {
    .main {
        margin-top: 150px;
    }
    .pokemon-preview:first-child {
        margin-top: 80px;
    }

    .empty-card {
        width: 80%;
    }

    .pokeball-card-bg {
        height: 120px;
        width: 120px;
        margin-left: 180px !important;
        top: 20px;
    }

    .left {
        top: 102%;
        left: 75px;
        border: unset;
    }

    .right {
        top: 102%;
        right: 75px;
        border: unset;
    }
}

@media (max-width: 300px) {
    .main {
        margin-top: 150px;
    }

    .header {
        height: 190px;
        display: flex;
        flex-direction: column;
    }

    .pokedex {
        margin-top: 30px;
    }

    .pokemon-info-card {
        width: 80%;
    }

    #pokecard {
        width: 80%;
    }

    .info-container {
        height: 230px;
    }

    .poke-name {
        margin-top: 0px;
        font-size: 12px;
    }

    .pokepic {
        z-index: 2;
        margin-left: 60px;
        margin-top: 90px;
        min-height: 120px;
        height: 40px !important;
    }

    .searchbar {
        margin-bottom: 5px;
    }

    /*DETAIL_CARD*/
    .poke-header {
        width: 125%;
        right: 0;
        left: 0;
    }

    .pokemon-name {
        font-size: 12px;
    }

    .types {
        position: absolute;
        top: 100px;
        height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .class {
        width: 60px;
        height: 30px;
    }

    .type {
        border-radius: 50%;
        padding: 3px;
        height: 30px;
        width: 30px;
    }

    .pokeball-card-bg {
        height: 80px;
        width: 80px;
        top: 20px;
    }

    .info-container a {
        font-size: 8px;
    }

    .name {
        font-size: 8px;
    }

    /*DETAIL_CARD*/
}





@media (max-height: 720px) {

    .types {
        position: absolute;
        top: 100px;
        height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .pokemon-info-card {
        margin-top: -60px;
    }

    .pokeball-card-bg {
        height: 100px;
        width: 100px;
        right: 10px;
        top: 0px;
    }

    .pokepic {
        z-index: 2;
        margin-left: 80px;
        margin-top: 95px;
        min-height: 130px;
    }
}


@media (max-height: 540px) {
    #pokecard {
        padding-bottom: 210px;
    }
    .types {
        top: 100px;
    }

    .pokemon-info-card {
        margin-top: -160px;
        
    }

    .pokeball-card-bg {
        height: 100px;
        width: 100px;
        top: 0px;
    }

    .pokepic {
        z-index: 2;
        margin-left: 60px;
        margin-top: 65px;
        min-height: 130px;
    }
}