:root{
    --black: #202020;
    --green: rgb(96, 163, 96);
    --white: #FBEDBE;
    --orange: rgb(255, 81, 0);
}

@font-face {
    font-family: 'Enixe';
    src: url(../font/Enixe.ttf);
}


html{
    background-color: var(--black);

}

.stop{
    overflow: hidden;
}


body{
    margin: 0;
    overflow-x: hidden;
}


/* Header */
header .head{
    display: flex;
    position: absolute;
    width: 86%;
    justify-content: space-between;
    top: 0;
    left: 0;
    margin: 0 7%;


}

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.the_island{
    z-index: -1;
    background: linear-gradient(90deg, var(--black) 0%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 80%, var(--black) 100%), linear-gradient(180deg, var(--black) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, var(--black) 100%) ,url(../media/the_island.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 70%;
    height: 600px;
    margin-left: 0 auto;
}

header p{
    padding-left: 7%;
    font-family: 'Enixe';
    font-size: 60px;
    color: var(--white);
}


header a, header button{
    text-decoration: none;
    color: var(--white);
    cursor: pointer;
}

h1{
    font-family: 'Enixe';
    width: 50%;
}

header nav ul{
    display: flex;
}

header li{
    list-style-type: none;
    margin: 0 10px;
}

header a, header button{
    font-family: 'Enixe';
    font-size: 20px;
    color: var(--white);
}

header button{
    background-color: transparent;
    border: none;
}

.hover {
    position: relative;
    display: inline-block;
}
  
.hover::after,
.hover::before {
content: '';
position: absolute;
width: 100%;
height: 2px;
background: linear-gradient(to right, var(--green), var(--white));
bottom: -5px;
left: 0;
transform: scaleX(0);
transform-origin: right;
transition: transform 0.2s ease-out;
}

.hover::before {
top: -5px;
transform-origin: left;
}

.hover:hover::after,
.hover:hover::before {
transform: scaleX(1);
}

@media all and (0px < width < 1080px){
    header p{
        display: none;
    }

    .the_island{
        margin-top: 100px;
        width: 100%;
        height: auto;
        min-height: 300px;
    }

    header .head{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    header ul{
        padding-inline-start: 0px;
    }
}


/*Controles */

.controls{
    display: flex;
    justify-content: center;
}

.controls a, .controls button{
    display: inline-block;
    background-color: var(--green);
    text-decoration: none;
    font-family: 'Enixe';
    font-size: 20px;
    padding: 10px 20px;
    color: #202020;
    border: none;
    cursor: pointer;
    margin: 30px 20px;
    transition: 0.2s;
}

.controls a:hover, .controls button:hover{
    background-color: transparent;
    color: var(--white);
}

/* Choose */



.choose{
    top: 0;
    z-index: 10;
    position: fixed;
    height: 100vmax;
    width: 100%;
    backdrop-filter: blur(5px);
    opacity: 1;
    transition: 0.3s;
    
}

.hide{
    width: 0% !important;
    transition: 0.5s;
    opacity: 0 !important;
}

.choose_box{
    margin: 100px 10%;
    
}
.choose_box ul{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}


.choose .sc{
    border-radius: 10px;
    background-color: #222;
    align-items: center;
    text-align: letf;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    list-style-type: none;
    padding: 0;
    width: 20%;
    height: 150px;
}

.scImage{
    align-items: center;
    display: flex;
    justify-content: center;
    height: 90%;
    position: absolute;
    top: 0;
    left: 20%;
    top: 10px;
    filter: drop-shadow(1px 1px 5px black);
}

.scBG{
    background-size: cover;
    display: block;
    filter: blur(40px) saturate(1.8);
    left: -40%;
    right: -40%;
    top: -40%;
    bottom:-40%;
    position: absolute;
    background-position: center;
}

.scImg{
    max-width: 100%;
    max-height: 100%;
}

.scLabel{
    position: relative;
    font-family: 'Enixe';
    padding: 10px 15px;
    color: var(--white);
    
}

@media all and (0px < width < 1080px){

    .choose_box{
        margin: 50px 3%;
    }

    .choose_box ul{
        padding-inline-start: 0px;
    }

    .choose .sc{
        width: 45%;
    }
}


/* Show */

.show_card{
    margin: 50px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 100px;
}

.card{


    background-color: rgb(53, 53, 53);
    width: 25%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.562);
    color: var(--white);
    font-family: 'Enixe';
}

.top_card{
    display: flex;
    justify-content: end;
    align-items: center;
    position: relative;
}

.top_card img{
    position: absolute;
    width: 50%;
    top: -50px;
    left: -50px;
    filter: drop-shadow(2px 2px 5px black);
}

.lvl{
    padding: 10px;
    background-color: rgb(255, 81, 0);
    box-shadow: -1px 1px 3px black;
    margin: 0;
}

.name{
    margin: 0 20px;
    padding: 0;

    text-shadow: 2px 2px 3px black;
}

.body_card{
    position: relative;
    display: flex;
    justify-content: end;
    align-items: end;
    gap: 5%;
    overflow: hidden;
}

.left{
    width: 50%;
    padding-left: 5%;
}

.right{
    width: 50%;
    display: flex;
}


.stats{
    width: 50%;
}


.stats p{
    position: relative;
    font-size: 18px;
}

.stats p::before{
    content: '';
    display: block;
    background-size: cover;
    width: 10px;
    height: 10px;
    position: absolute;
    top: 4px;
    left: -20px;
}

.sante::before{
    background-image: url(../icon/sante.png);
}
.endurance::before{
    background-image: url(../icon/endurance.png);
}
.oxygene::before{
    background-image: url(../icon/oxygene.png);
}
.nourriture::before{
    background-image: url(../icon/nourriture.png);
}
.poids::before{
    background-image: url(../icon/poids.png);
}
.attaque::before{
    background-image: url(../icon/attaque.png);
}
.vitesse::before{
    background-image: url(../icon/vitesse.png);
}
.torpeur::before{
    background-image: url(../icon/torpeur.png);
}

.male{
    color: #c7c7ff;
}

.femelle{
    color: pink;
}

.big{
    color: gold;
}


@media all and (0px < width < 1080px){
    .show_card{
        gap: 20px;
    }

    .card{
        width: 90%;
    }

    .top_card img{
        top: 0;
        left: 0;
    }
}


/* Ajout */

.add_title{
    text-align: center;
    font-family: 'Enixe';
    color: var(--white);
    margin-top: 100px;
}
.add_banner{
    text-align: center;
}

.add_form{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.add_form .card{
    width: 40%;
    margin: 50px 0;
    padding-bottom: 30px;
}

.add_form .top_card img{
    width: 30%;
    
}

.add_form input{
    padding: 5px;
    background-color: var(--white);
    font-family: 'Enixe';
    text-shadow: none;
    border: none;
    font-size: 1.1rem;
}

.add_form #name{
    margin: 10px;
}

.add_form .muta{
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.add_form input[type="number"]{
    width: 50px;
    margin-left: 5px;
}

.add_form #lvl{
    background-color: var(--orange);
    width: 80px;
}

::placeholder{
    color: var(--black);
}

.add_form .stats p::before{
    content: '';
    display: block;
    background-size: cover;
    width: 18px;
    height: 18px;
    position: absolute;
    top: 6px;
    left: -30px;
}

.add_form .stats input[type="number"]{
    width: 100px;
}

#creature_name{
    margin-right: 50px;
    z-index: 5;
}

pre{
    color: var(--white);
}


