@font-face {
    font-family: 'Pokemon GB';
    src: url('fonts/PokemonGB.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


body {
    background: url('../img/pkmn_forest_bg.jpg') center center fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: black;
    padding: 0 24px;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Pokemon GB', sans-serif;
    flex-direction: column;
}

#header {
    margin-bottom: 2px;
    z-index: 999;
}

#soundbtn {
    display: inline;
}


.highlight {
    background-color: yellow;
    opacity: 50%;
    padding: 0 10px;
    margin: 0 20px;
    border-radius: 50px;
}

#pokedexarea {
    width: 600px;
    height: 960px;
    border-color: red;
    position: relative;
    background-size: cover;
    text-align: center;
}


#PkmnIdntf {
    position: relative;
    top: 10%;
    left: 10%;
    text-align: center;
    font-size: 1.5em;
    padding: 10px 0;
    width: 30%;

}

#PkmnIdntf p {
    margin: 0;
    padding: 5px;
    font-family: 'Pokemon GB', sans-serif;
}


#pokedexscreen {
    background-color: black;
    width: 100%;
    height: 83%;
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    /* Added by my tutor Robert Hollander */
    z-index: 1;


    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* Citation Ends Here */
}

.cell {
    margin-top: 100px;
}

#height p,
#weight p {
    display: inline;
    margin: 0;
}

/* Added by my tutor Robert Hollander */
#types-container {
    border-color: #2a2a2a;
    width: 50%;
    height: 100px;
    right: 20%;
    bottom: 25%;
    z-index: 2;
}


#stats-container {
    border-color: #2a2a2a;
    width: 50%;
    height: 100px;
    right: 30%;
    bottom: 5%;
    z-index: 2;
}

/* Citation Ends Here */


#pokedex-entry {
    width: 70%;
    background-image: url('../img/pokedex_text_box_820.png');
    background-size: contain;
    background-repeat: no-repeat;
    height: 250px;
    min-height: 250px;
    /* Added by my tutor Robert Hollander */
    z-index: 2;
    overflow: auto;
    margin-top: 10px;
}

/* Citation Ends Here */

#pokedex-entry p {
    margin: 0;
    padding: 10px 20px;
    margin-top: 30px;
    padding-right: 50px;
}

#pdimage {
    width: 100%;
    height: 100%;
    max-width: 600px;
    max-height: inherit;
    height: auto;
    display: block;
    position: relative;
    /* Added by my tutor Robert Hollander */
    z-index: 2;
    pointer-events: none;
}

.grid {
    display: grid;
    grid-template-columns: 70% 30%;
}

/* Citation Ends Here */


#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;

}


#pokemonsprite {
    max-width: 400px;

}

#pokemonsprite img {
    height: 300px;
    width: 300px;
}


/* Added by my tutor Robert Hollander */
.content-wrapper {
    top: 10%;

    display: flex;
    flex-direction: column;
    align-items: center;
}


form {
    display: flex;
    flex-direction: column;
}

/* Citation Ends Here */


#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: #ffcb05;
    background-color: #3c5aa6;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: .05em;
    transition: all .5s ease;
    width: 100%;
}

#searchButton:hover {
    background-color: #2a2a2a;
}

@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%);
    }
}
