@font-face {
    font-family: 'Pokerace';
    src: url("../font/AngryBirdsPixela.ttf") format('truetype');
}

* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    font-family: Pokerace, Arial, sans-serif;
}


main {
    background-color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    gap: 16px;
}

.fight {
    max-width: 900px;
    padding: 30px 30px;
    border-radius: 16px;
    position: relative;
    background-color: white;
    width: 80%;

}


.fight_action {
    width: 100%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 10px;
    border: solid 5px black;   
    
}

.action_text {
    padding: 15px 30px;
    background-color: black;
    color: white;
}

.action_control {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    text-align: center;
    gap: 8px;
}

.action_button {
    color: black;
    text-decoration: none;
}



.fight_pokemon img{
    position: relative;
    right: 5%;
    margin-right: auto;
    margin-left: auto;
    height: 300px;
    max-width: 300px;
   

}

.pokemon2 img {
    position: relative;
    right: 0;
    left: 10%;
    max-width: 200px;
    height: 200px;
}

.fight_pokemon {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 50px; 
}

.fight_pokemon_reverse {
    flex-direction: row-reverse;
}

.fight_text {
    width: 270px;
    position: relative;
    background-image: url(../images/Fight_ui.png);
    background-position: right;
    background-size: contain;
    background-repeat: no-repeat;
    height: 110px;
    z-index: 100;
}

.arrow {
    margin-left: auto;
    color: red;
}

.poke_title {
    margin: 0;
    position: absolute;
    top: 15px;
    left: 10px;
    font-weight: 900;
    font-size: 1.5rem;
}

.poke_hp {
    position: absolute;
    bottom: 0px;
    right: 10px;
}

.hpBar {
    position: absolute;
    height: 20px;
    bottom: 40%;
    right: 10px;
    background-color: greenyellow;
    width: 150px;
    z-index: 1;
}
.hpBarPerso {
    position: absolute;
    height: 20px;
    right: 10px;
    bottom: 40%;
    background-color: greenyellow;
    width: 150px;
    z-index: 1;
}

.fight-container {
    position: relative;
    height: fit-content;
}

@media screen and (width < 768px) {
    .fight_pokemon img {
        height: 200px;
        max-width: 200px;
    }
    .fight_pokemon_reverse img {
        height: 150px;
        max-width: 150px;
    }
    .fight_text {
        width: 200px;
        height: 80px;
    }
    .hpBar {
        width: 100px;
    }
    .hpBarPerso {
        width: 100px;
    }
    .fight_pokemon {
        flex-direction: column;
        align-items: center;
    }

    .fight_pokemon_reverse {
        flex-direction: column-reverse;
    }

}