@font-face {
    font-family: 'Pokemon GB';
    src: url('fonts/PokemonGB.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


body {
    background: transparent;
    color: #fcbe24;
    padding: 0 24px;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Pokemon GB', sans-serif;
    flex-direction: column;
}



#pokedex {
    width: 827px;
    height: 700px;
    position: relative;
    background-size: cover;
    text-align: center;
}


#pdimg {
    width: 827px;
    height: 700px;
}

#heightcontainer {
    position: absolute;
    top: 615px;
    right: 767px;
    display: flex;
    flex-direction: column;



}

#heighttext {
    padding: none;
    font-size: 0.8rem;
    text-align: center;

}

#heightvalue {
    font-size: 0.8rem;
    padding: none;

}

form {
    display: flex;
    flex-direction: column;
}

#q,
#searchButton {
    margin: 5px 0;
}

#q {
    border-radius: 30px;
    /*padding: .5em;*/
    font-size: 2em;
    text-align: center;
}

#searchButton {
    border-radius: 30px;
    padding: .5em;
    font-size: 3em;
    text-align: center;
    color: #47deff;
    background-color: #2a2a2a;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: .05em;
    transition: all .5s ease;
    width: 100%;
}

#searchButton:hover {
    background-color: #2d3bfe;
}

@media (max-width: 1024px) {
    #pokedex {
        width: 90%;
        height: auto;
    }

    #heightcontainer {
        top: 550px;
        right: 65%;
    }

    #heighttext,
    #heightvalue {
        font-size: 0.7rem;
    }

    #q {
        font-size: 1.8em;
    }

    #searchButton {
        font-size: 2.5em;
    }
}

/* For devices with width up to 768px (Tablets and below) */
@media (max-width: 768px) {
    #pokedex {
        width: 85%;
        height: auto;
    }

    #heightcontainer {
        top: 500px;
        right: 55%;
    }

    #heighttext,
    #heightvalue {
        font-size: 0.7rem;
    }

    #q {
        font-size: 1.5em;
    }

    #searchButton {
        font-size: 2em;
    }
}

/* For devices with width up to 480px (Mobile devices) */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    #pokedex {
        width: 100%;
        height: auto;
    }

    #heightcontainer {
        top: 450px;
        right: 50%;
        transform: translateX(50%);
    }

    #heighttext,
    #heightvalue {
        font-size: 0.6rem;
    }

    #q {
        font-size: 1.3em;
    }

    #searchButton {
        font-size: 1.8em;
    }
}

/* For very small mobile devices (up to 360px) */
@media (max-width: 360px) {
    #q {
        font-size: 1.1em;
    }

    #searchButton {
        font-size: 1.5em;
    }

    #heightcontainer {
        top: 400px;
        right: 50%;
        transform: translateX(50%);
    }
}
