* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #292C2E;
}

a {
    text-decoration: none;
}

img {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/***************************************** Nav ******/

nav {
    position: sticky;
	top: 0;
    z-index: 99;
    padding: 0 2%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #292C2E;
}

nav a {
    font-family: Impact, 'Arial Narrow Bold', sans-serif;
    font-size: 30px;
    font-weight: bold;
    color: #1074A9;
    -webkit-text-stroke: 2px #EFEEE1;
}

nav p {
    color: white;
    margin: 0 10%;
}

#lienNav {
    margin-left: -10em;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#logoPokeModeLittle {
    width: 10%;
    height: 10%;
}

#lienPokeSite {
    display: flex;
    align-items: center;
}

#lienPokeSite img{
    width: 80%;
    height: 80%;
}
/***************************************** sectionUne ******/

#fondAccueil {
    width: 100%;
    height: 95vh;
    position: absolute;
    bottom: 0;
    left: 0;
}

#sectionUne {
    height: 93vh;
}

#herbes {
    width: 100%;
    z-index: 5;
    position: absolute;
    left: 0;
    bottom: 0;
}

#dresseurs {
    z-index: 10;
    position: absolute;
    right: 6%;
    bottom: -1em;
    height: 85%;
}

#banniere {
    z-index: 1;
    position: absolute;
    right: 12%;
    height: 95%;
    bottom: 0;
}

#textAccueil {
    padding-top: 12em;
    padding-left: 5em;
}

#titrePresent {
    position: relative;

    font-family: Impact, 'Arial Narrow Bold', sans-serif;
    font-size: 35px;
    font-weight: bold;
    background: -webkit-linear-gradient(#015AA3, #138ED5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px #EFEEE1;
}

#textPresent {
    position: relative;

    padding-top: 2em;
    color: white;
    font-size: 21px;
    width: 50%;
    font-family: Arial, Helvetica, sans-serif;
}


/***************************************** sectionDeux ******/

#separation {
    width: 100%;
    height: 10px;
    margin-top: -0.3em;

    background-color: #1074A9;
}

#sectionDeux {
    height: 100vh;
    width: 100%;
}

#find {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    margin: 2em;
}

.search-container {
    text-align: center;
    margin: 0 2em;
}

.search-input-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

input[type="text"] {
    padding: 10px 40px 10px 10px;
    width: 400px;
    border-radius: 5px;
    border: 3px solid #9EB7D0;
    font-size: 16px;
}

button[type="submit"] {
    padding: 5px 8px;
    border: none;
    cursor: pointer;
    margin-left: -4.2em;
    background-color: #9EB7D0;
    border-radius: 10px;
}

button[type="submit"] img {
    margin-top: auto;
    margin-bottom: auto;
}

button img {
    width: 60%;
}

.sort-container {
    text-align: center;
}

#sort {
    margin: 0 2em;
    color: white;
    background-color: #9EB7D0;
    border-radius: 10px;
    width: 200px;
    border: 3px solid white;
}

.sort-container-bis {
    text-align: center;
}

#sort-bis {
    margin: 0 2em;
    color: white;
    background-color: #9EB7D0;
    border-radius: 10px;
    width: 200px;
    border: 3px solid white;
}

label {
    font-weight: bold;
    margin-right: 10px;
}

.sort-container select, .sort-container-bis select {
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
}


#separation2 {
    width: 100%;
    height: 80px;

    -webkit-box-shadow: 0px 4px 10px 5px rgba(0,0,0,0.25); 
    box-shadow: 0px 4px 10px 5px rgba(0,0,0,0.25);


    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #1074A9;
}

#separation2 button {
    background-color: white;
    border: none;
    border-radius: 20px;
    padding: 1em 2em;

    font-weight: bold;
    
    margin: 0 2em;

}

#seeeeparation {
    position: relative;
    z-index: 50;

}


#separation3 {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;

    margin-top: -2.5em;
    width: 100%;
    height: 80px;

    -webkit-box-shadow: 0px 4px 10px 5px rgba(0,0,0,0.25); 
    box-shadow: 0px 4px 10px 5px rgba(0,0,0,0.25);

    background-color: #1074A9;
    color: white;
}


#separation3 button{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 4vh;
    width: 15vw;
    border-radius: 15px;
    border: none;

    font-family: Arial, Helvetica, sans-serif;
    color: #015AA3;
    font-size: 15px;
}

#separation3 img{
    height: 50%;
    width: auto;
    margin: 2em;
}

#pageacutelle {
    color: #292C2E;
}

#pokemonscartes {
    margin-top: -2em;
    padding: 5em 10em 0 10em;
    background-image: url(../../imageSite/fondPokedex.png);
    width: auto;
    height: 80vh;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(41, 44, 46, 0.65);
    backdrop-filter: blur(15px);
    color: white;
    border-radius: 20px;
    padding: 20px;
    width: 60vw;
    height: 60vh;
    z-index: 9999;
    display: none;
}

#popup-content {
    margin-top: calc(32% - 30vh);
}


#popup-content .pokemon-image {
    width: 60%; 
    height: auto; 
    
    margin: 1em 0;
    transition: transform 0.3s ease;
}

#popup-content .pokemon-image:hover {
    transform: scale(1.2);
}

#popup-content .idpokemon {
    color: white; 
}

#popup-nom-pokemon {
    margin-bottom: 1.5em;
    font-weight: normal;

    font-size: 20px;
}

.left-info {
    float: left;
    width: 40%; 


    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.right-info {
    float: right;
    width: 50%;
}

.generation-container {
    display: flex;
    align-items: center;
}

.generation-label {
    margin-right: 10px;
}

.ligne {
    flex: 0 0 auto;
    width: 70%;
    height: 2px; 
    background-color: white; 
    margin-left: 10px;
}


#stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.attaque, .defense, .stamina {
    margin-top: 2em;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    width: 7em;
    height: 2em;
    line-height: 2em;
    text-align: center;
    background-color: white;
    box-shadow: inset rgba(0, 0, 0, 0.63) 0px 2px 5px 0px; 
}

.attaque {
    color: #8d3f3f;
}
.defense {
    color: #5e5e5e;
}
.stamina {
    color: #629dbd;
}

.grasdetail {
    font-weight: bold;
}

#closeButton {
    position: absolute;
    background-color: white;
    border: none;
    padding: 0.5em 1em 0.25em 1em;
    border-radius: 20px;
    top: 1em;
    right: 1em;
}

#attak {
    margin: 2em 1em;
}

#attak-detail {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    
}

#choix_attak {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

select{
    padding: 1em;
    width: 45%;
}

.fast-moves-dropdown-bis, .charged-moves-dropdown-bis{
    height: 10em;
    width: 40%;
    background-color: white;
    margin-top: 1em;
    border-radius: 5px;

    padding: 0.5em;
    line-height: 140%;
}

#closeButton:hover {
    background-color: #1074A9;
}

.hidden {
    display: none;
}


.Bug{
    background: linear-gradient(white, #B9C944);
}

.Dark{
    background: linear-gradient(white, #5E5047);
}

.Dragon{
    background: linear-gradient(white, #634BF3);
}

.Electric{
    background: linear-gradient(white, #FAD950);
}

.Fairy{
    background: linear-gradient(white, #F5AAE0);
}

.Fighting{    
    background: linear-gradient(white, #B65450);
}

.Fire{
    background: linear-gradient(white, #E29155);
}

.Flying{
    background: linear-gradient(white, #95AFD7);
}

.Ghost{
    background: linear-gradient(white, #67597A);
}

.Grass{
    background: linear-gradient(white, #87BE66);
}

.Ground{
    background: linear-gradient(white, #DBBF76);
}

.Ice{
    background: linear-gradient(white, #A8D8D6);
}

.Normal{
    background: linear-gradient(white, #AEAE98);
}

.Poison{
    background: linear-gradient(white, #A95BA7);
}

.Psychic{
    background: linear-gradient(white, #F86592);
}

.Rock{
    background: linear-gradient(white, #AE9F52);
}

.Steel{
    background: linear-gradient(white, #80ABAB); 
}

.Water{
    background: linear-gradient(white, #5B9CE8);
}

.type .Normal{
    background: #AEAE98 ;
}
.type .Fire{
    background: #E29155 ;
}
.type .Water{
    background: #5B9CE8 ;
}
.type .Electric{
    background: #FAD950 ;
}
.type .Grass{
    background: #87BE66 ;
}
.type .Ice{
    background: #A8D8D6 ;
}
.type .Fighting{
    background: #B65450 ;
}
.type .Poison{
    background: #A95BA7 ;
}
.type .Ground{
    background: #DBBF76 ;
}
.type .Flying{
    background: #95AFD7 ;
}
.type .Psychic{
    background: #F86592 ;
}
.type .Bug{
    background: #B9C944 ;
}
.type .Rock{
    background: #AE9F52 ;
}
.type .Ghost{
    background: #67597A ;
}
.type .Dragon{
    background: #634BF3 ;
}
.type .Dark{
    background: #5E5047 ;
}
.type .Steel{
    background: #80ABAB ;
}
.type .Fairy{
    background: #F5AAE0 ;
}


.carte1 {

    width: 12vw;
    height: 30vh;

    border-radius: 25px;
    border: 1px solid white;

    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
}

.carte1 img{
    width: auto;
    height: 55%;
    margin-top: 0.5em;
    margin-bottom: 0.25em;
}

.idpokemon {
    color: #5C6850;
    font-weight: bolder;
    margin-top: 0.5em;
}

.nompokemon {
    margin-bottom: 0.15em;
    color: white;

    font-weight: bolder;
}

.hover {
    margin-top: 0.25em;
    background-color: white;
    color: #5C6850;
    font-weight: bolder;
    padding: 0.2em 0.8em;
    border-radius: 10px;
}


.type{
    display: flex;
    flex-direction: row;
}

.type div{
    border: 1px solid white;
    margin: 5px;
    padding: 2px 10px;
    border-radius: 25px;
    color: white;
}

.type_plante {
    background-color: #65CF83;
    height: 15px;
    width: 40px;
    border-radius: 10px;
    margin: 0 0.5em;
}

.type_poison {
    background-color: #A878B0;
    height: 15px;
    width: 40px;
    border-radius: 10px;
    margin: 0 0.5em;
}


/***************************************** sectionTrois ******/

#sectionTrois {
    margin-top: 15em;
    height: 95vh;
    width: 100%;
    background-image: url(../../imageSite/fondSimulateur.png);
    background-size: cover;
    background-repeat: no-repeat;
}

#sectionTrois img {
    height: 35%;
    width: auto;
}

#pokeallie{
    transform: scaleX(-1);
    position: relative;
    top: 30em;
    left: 15em;
}

#pokeenemi {
    position: relative;
    top: 10em;
    left: 30em;
}


@media screen and (min-width: 0px) and (max-width: 1250px) {
    #textPresent {
        width: 35vw;
    }

    #separation {
        margin-top: 0.8em;
    }
}


#attak{
    color: black;
}


#tri, #reset {
    display: none;
}