:root {
    --yellow: #FFCB05;
    --darkyellow: #c7a008;
    --darkblue: #3c5aa6;
    --lightblue: #2a75bb;

    --red: #ea3a3a;
    --darkred: #f00000;
    --darkgrey: #222224;
    --darkergrey: #0d0d0e;
    --lightgrey: #f0f0f0;

    --grass: #7AC74C;
    --grasslight: #b3da9c;
    --fire: #EE8130;
    --firelight: #eca269;
    --water: #6390F0;
    --waterlight: #93b0ee;
    --electric: #F7D02C;
    --electriclight: #f0da84;
    --bug: #a6b91a;
    --buglight: #c5cf8e;
    --normal: #a8a77a;
    --normallight: #cacaa4;
    --ice: #96D9D6;
    --icelight: #b8ecea;
    --poison: #A33EA1;
    --poisonlight: #b55fb4;
    --ground: #E2BF65;
    --groundlight: #f4d586;
    --fairy: #D685AD;
    --fairylight: #eca8ca;
    --fighting: #C22E28;
    --fightinglight: #d45b56; 
    --psychic: #F95587;
    --psychiclight: #f988aa;
    --rock: #B6A136;
    --rocklight: #d4c370;
    --ghost: #735797;
    --ghostlight: #9278b5;
    --dragon: #6F35FC;
    --dragonlight: #9c79f5;
    --dark: #705746;
    --darklight: #9c8270;
    --steel: #B7B7CE;
    --steellight: #e2e2ef;
    --flying: #A98FF3;
    --flyinglight: #ccbff1;
}

.pad_section {
    padding: 8px 16px;
}

* {
    margin: 0;
    box-sizing: border-box;
    font-family: 'Sigmar One', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--darkgrey);
    cursor: url("img/pokeball_small_icon.png"), default;
}

.logo {
    height: 200px;
}

.searchbar {
    display: flex;
    gap: 16px;
    align-items: baseline;
}

.input_searchPokemon {
    border: none;
    border-radius: 16px;
    font-size: 18px;
    background-image: url(img/search_icon.svg);
    background-repeat: no-repeat;
    background-position: 8px;
    padding-left: 56px;
    background-color: var(--lightgrey);
    color: var(--darkgrey);
}

.input_searchPokemon::placeholder {
    color: gainsboro;
}

.input_searchPokemon:focus {
    outline: none;
    border: 2px solid var(--yellow);
}

#main_container {
    max-width: 1920px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

#content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 16px;
}

.pokemon_card {
    width: 325px;
    border-radius: 32px;
    cursor: pointer;
}

.top_card {
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    color: white;
    display: flex;
    flex-direction: column;
}

/* start -> class to change color depending on the element of the pokemon */

.bg_grassPokemon {
    background-color: var(--grass);
}

.bg_firePokemon {
    background-color: var(--fire);
}

.bg_waterPokemon {
    background-color: var(--water);
}

.bg_electricPokemon {
    background-color: var(--electric);
}

.bg_bugPokemon {
    background-color: var(--bug);
}

.bg_normalPokemon {
    background-color: var(--normal);
}

.bg_poisonPokemon {
    background-color: var(--poison);
}

.bg_groundPokemon {
    background-color: var(--ground);
}

.bg_fairyPokemon {
    background-color: var(--fairy);
}

.bg_fightingPokemon {
    background-color: var(--fighting);
}

.bg_psychicPokemon {
    background-color: var(--psychic);
}

.bg_rockPokemon {
    background-color: var(--rock);
}

.bg_ghostPokemon {
    background-color: var(--ghost);
}

.bg_dragonPokemon {
    background-color: var(--dragon);
}

.bg_steelPokemon {
    background-color: var(--steel);
}

.bg_flyingPokemon {
    background-color: var(--flying);
}

.bg_icePokemon {
    background-color: var(--ice);
}

.bg_darkPokemon {
    background-color: var(--dark);
}

/* end -> class to change color depending on the element of the pokemon */

.pokemon_image {
    display: flex;
    justify-content: center;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
}

h2 {
    letter-spacing: -1.5px;
    font-size: 32px;
}

.error_text {
    color: white;
    text-align: center;
}

.error_message_content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image_link {
    display: flex;
    flex-direction: column;
}

.img_hidingPokemon {
    width: 700px;
    border-radius: 8px;
    box-shadow: 10px 10px 10px var(--darkergrey);
}

a {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.id {
    display: flex;
    justify-content: end;
    margin-top: -8px;
}

.pokemon_element {
    display: flex;
    margin-top: -16px;
    gap: 8px;
}

.text_element {
    padding: 0px 16px;
    border-radius: 32px;
}

/* start -> class to change color depending on the element of the pokemon */

.bgText_grassPokemon {
    background-color: var(--grasslight);
}

.bgText_firePokemon {
    background-color: var(--firelight);
}

.bgText_waterPokemon {
    background-color: var(--waterlight);
}

.bgText_electricPokemon {
    background-color: var(--electriclight);
}

.bgText_bugPokemon {
    background-color: var(--buglight);
}

.bgText_normalPokemon {
    background-color: var(--normallight);
}

.bgText_poisonPokemon {
    background-color: var(--poisonlight);
}

.bgText_groundPokemon {
    background-color: var(--groundlight);
}

.bgText_fairyPokemon {
    background-color: var(--fairylight);
}

.bgText_fightingPokemon {
    background-color: var(--fightinglight);
}

.bgText_psychicPokemon {
    background-color: var(--psychiclight);
}

.bgText_rockPokemon {
    background-color: var(--rocklight);
}

.bgText_ghostPokemon {
    background-color: var(--ghostlight);
}

.bgText_dragonPokemon {
    background-color: var(--dragonlight);
}

.bgText_steelPokemon {
    background-color: var(--steellight);
}

.bgText_flyingPokemon {
    background-color: var(--flyinglight);
}

.bgText_icePokemon {
    background-color: var(--icelight);
}

.bgText_darkPokemon {
    background-color: var(--darklight);
}

/* end -> class to change color depending on the element of the pokemon */

.img_pokemon {
    margin: 8px 0px;
    width: 200px;
    height: 200px;
}

.img_pokemon:hover {
    transform: scale(1.3);
    transition: all 300ms ease-in-out;
}

.btn_pokemon {
    font-family: 'Pokemon Solid';
    text-shadow: 2px 2px 3px var(--darkgrey);
    color: var(--lightgrey);
    margin-bottom: 40px;
    padding: 16px 48px;
    font-size: 24px;
    background-color: var(--darkred);
    border: 2px solid var(--darkergrey);
    border-radius: 24px;
    box-shadow: 0 0 0 2px var(--red), 0 0.75em 0 0 var(--red);
    cursor: pointer;
}

.btn_pokemon:hover {
    background-color: var(--red);
    box-shadow: 0 0 0 2px var(--darkred), 0 0.75em 0 0 var(--darkred);
}

.btn_search,
.btn_reset {
    font-family: 'Pokemon Solid';
    text-shadow: 2px 2px 3px var(--darkgrey);
    color: var(--lightgrey);
    background-color: var(--darkred);
    font-size: 24px;
    border: 2px solid var(--darkergrey);
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 0 0 2px var(--red), 0 0.25em 0 0 var(--red);
}

.btn_search:hover,
.btn_reset:hover {
    background-color: var(--red);
    box-shadow: 0 0 0 2px var(--darkred), 0 0.25em 0 0 var(--darkred);
}

.btn_pokemon::before,
.btn_search::before,
.btn_reset::before {
    transform: translate3d(0, 0.75em, -1em);
    transition: all 175ms cubic-bezier(0, 0, 1, 1);
}

.btn_pokemon:active,
.btn_search:active,
.btn_reset:active {
    transform: translate(0em, 0.75em);
  }

.btn_pokemon:active::before,
.btn_search:active::before,
.btn_reset:active::before {
    transform: translate3d(0, 0, -1em);
  }

.bg_container {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 1;
}

.d_none {
    display: none;
}

.pokemon_card_big {
    border-radius: 32px;
    box-shadow: 14px 16px 7px 0px rgba(0, 0, 0, 0.5);
    background-color: var(--darkergrey);
    max-width: 520px;
    min-width: 400px;
    width: 50%;
}

canvas {
    width: 500px;
    min-height: 300px;
}

.general_information {
    margin-top: -56px;
    padding-top: 40px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    color: white;
    background-color: var(--darkergrey);
}

.arrow_iconDiv {
    display: flex;
    justify-content: center;
    border-radius: 50%;
    width: 56px;
    align-items: center;
    opacity: 0.8;
    cursor: pointer;
}

.bigPokemon_image {
    margin: 8px 0px;
    width: 250px;
    height: 250px;
    cursor: pointer;
}

.bigPokemon_image:hover {
    transform: scaleX(-1);
}

.headlines {
    display: flex;
}

h3 {
    font-size: 24px;
    cursor: pointer;
}

.headline_style {
    text-decoration-line: underline;
    text-decoration-color: var(--darkred);
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.speaker_position {
    display: flex;
    justify-content: flex-end;
}

.speaker_iconDiv {
    display: flex;
    justify-content: center;
    margin-top: -64px;
    border-radius: 50%;
    width: 56px;
    align-items: center;
    opacity: 0.8;
    cursor: pointer;
}

.bigPokemon_speaker {
    width: 50px;
    height: 50px;
}

.first {
    color: grey;
}

.second {
    padding-left: 8px;
}

.content_slide {
    padding: 8px 16px;
}

.hide_scrollbar {
    overflow: hidden;
}

@media(max-width: 750px) {
    .img_hidingPokemon {
        width: 500px;
    }
}

@media(max-width: 700px) {
    .searchbar {
        flex-direction: column;
        align-items: center;
    }
}

@media(max-width: 570px) {
    .bg_container {
        flex-direction: column;
        gap: 8px;
    }
    .pokemon_card_big {
        min-width: 0;
        width: 90%;
    }
}

@media(max-width: 560px) {
    .logo {
        width: 95%;
    }
}

@media(max-width: 550px) {
    .img_hidingPokemon {
        width: 100%;
    }
    .error_text {
        font-size: 24px;
    }
}

@media(max-width: 440px) {
    .speaker_iconDiv {
        width: 48px;
    }
    .bigPokemon_speaker {
        width: 40px;
        height: 40px;
    }
    .bigPokemon_image {
        margin: 0;
        width: 200px;
        height: 200px;
    }
    .content_slide {
        padding: 0;
    }
    .arrow_img {
        width: 40px;
    }
    a {
        font-size: 14px;
    }
}

@media(max-width: 400px) {
    .input_searchPokemon {
        width: 90%;
    }
}

@media(max-width: 350px) {
    .speaker_iconDiv {
        opacity: 0.6;
    }
}

@media(max-width: 390px) {
    h3 {
        font-size: 20px;
    }
}

@media(max-width: 340px) {
    h3 {
        font-size: 18px;
    }
}