*{
    font-family: "Hanken Grotesk", sans-serif;
}

p{
    margin: 0;
}

strong{
    font-weight: 900;
}


.albert-sans{
    font-family: "Albert Sans", sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 1.2rem;
}

.section-title{
    padding: 24px;
    background-color: #4C4EC0;
    padding: 8px 24px;
    color: white;

}

.left{
    border-radius: 0 50px 0 0;
    padding-right: 50px;
}

.right{
    border-radius: 50px 0 0 0;
    padding-left: 400px;
    color: white;
}

.red{
    background-color: #F70000;
}

.tour{
    background-color: #FFD400;
    outline: 2px solid black;
    color: black;

}

.fl-joueur{
    position: relative;
    bottom: 40px;
    margin-top: -40px;
    padding-right: 400px;
    width: fit-content;
}

.deroule{
    width: 100%;
    background-color: #009491;
    text-align: end;
}

.attaquant-actuel{
    position: relative;
    top: 60px;
    margin-top: -45px;
    width: fit-content;
    background-color: #00C02D;
}

.atkact{
    color: black;
    text-transform: uppercase;
}

body{
    height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
}

.wrapper{
    height: 100vh;
    width: 100%;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 10fr 50px 4fr;
    grid-template-areas: 
    'combat1 bar2 menu';

    background-color: #D0FDFD;
}

.bar{
    z-index: 1000;
    width: 50px;
    height: 100vh;
    background: linear-gradient(to right, 
    #5d62bd 0%,  #5d62bd 18%,  /* Bleu-violet */
    #4a90e2 18%, #4a90e2 36%,  /* Bleu vif */
    #2ecc71 36%, #2ecc71 52%,  /* Vert émeraude */
    #000000 52%, #000000 64%,  /* Noir */
    #1abc9c 64%, #1abc9c 78%,  /* Turquoise */
    #ffffff 78%, #ffffff 90%,  /* Blanc */
    #2c3e50 90%, #2c3e50 100%  /* Bleu nuit */
);

}

.bar2{
    width: 50px;
    height: 100vh;
    background: linear-gradient(to right, 
    #5d62bd 0%,  #5d62bd 18%,  /* Bleu-violet */
    #4a90e2 18%, #4a90e2 36%,  /* Bleu vif */
    #2ecc71 36%, #2ecc71 52%,  /* Vert émeraude */
    #000000 52%, #000000 64%,  /* Noir */
    #1abc9c 64%, #1abc9c 78%,  /* Turquoise */
    #ffffff 78%, #ffffff 90%,  /* Blanc */
    #2c3e50 90%, #2c3e50 100%  /* Bleu nuit */
);

}

.bar3{
    z-index: 999;
    position: relative;
    width: 100%;
    height: 35px;
    background: linear-gradient(to top, 
    #5d62bd 0%,  #5d62bd 18%,  /* Bleu-violet */
    #4a90e2 18%, #4a90e2 36%,  /* Bleu vif */
    #2ecc71 36%, #2ecc71 52%,  /* Vert émeraude */
    #000000 52%, #000000 64%,  /* Noir */
    #1abc9c 64%, #1abc9c 78%,  /* Turquoise */
    #ffffff 78%, #ffffff 90%,  /* Blanc */
    #2c3e50 90%, #2c3e50 100%  /* Bleu nuit */
);
}


.overlay {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay-content {
    background-color: white;
    display: flex;
    gap: 10px;
    padding: 20px;
    text-align: center;
    width: 300px;
}

.overlay p {
    text-align: start;
    margin: 0;
    font-size: 16px;
    color: #333;
}

#close-overlay {
    border: 1px solid #007bff;
    color: rgb(0, 0, 0);
    padding: 10px;
    cursor: pointer;
}

#close-overlay:hover {
    background-color: #00070e;
    color: white;
}

.title{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding:  30px 0 60px 0 ;
}

.menu{
    max-height: 100vh;
    overflow: auto;

    display: flex;
    padding-top: 35px;
    flex-direction: column;
    align-items: end;
    gap: 20px;
    background-color: #fff;
}

.menu-buttons{
    display: flex;
    flex-direction: column;
    width: 80%;
    align-items: end;
    gap: 6px;
}

.combat1{
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.combat11{
    display: flex;
    flex-direction: column;
    height: 65%;
}

.combat{
    outline: 3px solid #FFD400;
    background-color: white;
    margin-left: 10%;
    padding: 50px 50px 130px 50px;
    height: 100%;
    border-radius: 50px 0 0 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vaisseau{
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 4px;
}

.pv{
    padding: 0px 20px;
    width: fit-content;
    color: #009434;
    border: 1px solid #009434;
    border-radius: 16px;
}

.pt{
    padding: 0px 20px;
    width: fit-content;
    color: #B100C5;
    border: 1px solid #B100C5;
    border-radius: 16px;
}

.combat-info{
    width: 100%;
    
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.flotte:nth-of-type(1){
    align-items: end;
}

.flotte{
    display: flex;
    width: 100%;
    gap: 20px;
    flex-direction: column;
    align-self: end;
}


.flotte:first-child{
    text-align: end;
}

.nom-flotte{
    margin: 0;
}

.flotte-liste{
    width: fit-content;
    display: flex;
    justify-content: end;
    gap: 40px;
}

.flotte-liste .vaisseau{
    width: 150px;
}

.attack{
    flex-grow: 1;
    outline: 3px solid #FFD400;
    background-color: white;
    margin-left: 5%;
    padding: 90px 50px 50px 50px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;

    gap: 20px;
}



.moves{
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.moves-list{
    width: 95%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-wrap: wrap;
    height: 150px;
}

.choices{
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 20px;
}

.choice-list{
    display: grid;
    justify-content: end;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 8px;

}

.vaisseau-choice{
    border: 1px solid black;
    padding: 5px 20px ;
    width: 100px;
    height: fit-content;

    display: flex;
    justify-content: center;
}

.vaisseau-choice p{
    margin: 0;
}

.btn-normal{
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;

    height: 30px;
    padding: 8px 48px;
    background-color: #8FDDE1;
    border: none;
    color: black;
    font-weight: 700;

    border-radius: 50px 0 0 50px;
}

.btn-normal:hover{
    background-color: #000000;
    color: rgb(255, 255, 255);
    width: 105%;
    transition: all 0.1s ease-out;

}

.btn-rouge{
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;

    height: 30px;
    padding: 8px 48px;
    background-color: #ed6868;
    border: none;
    color: rgb(255, 255, 255);
    font-weight: 700;

    border-radius: 50px 0 0 50px;
    transition: all 0.1s ease-out;
}


.btn-rouge:hover{
    background-color: #000000;
    color: rgb(255, 255, 255);
    width: 105%;
}

.btn-attaque{
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;

    height: 30px;
    padding: 8px 48px;
    border: 1px solid black;
    color: rgb(0, 0, 0);
    font-weight: 700;
    background-color: white;

    border-radius: 50px;
    transition: all 0.1s ease-out;

}

.btn-attaque:hover{
    width: 100%;
    margin-left: 10px;
    background-color: black;
    color: white;
}

.btn-choix{
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;

    height: 30px;
    padding: 8px 48px;
    border: 1px solid black;
    color: rgb(0, 0, 0);
    font-weight: 700;
    background-color: rgb(250, 198, 198);

    border-radius: 50px;
    transition: all 0.1s ease-out;

}

.btn-choix:hover{
    width: 100%;
    background-color: black;
    color: white;
}


.dashboard{
    width: 100%;
    grid-area: dashboard;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;

    overflow-y: auto;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.text{
    background-color: #fdfdfd;
    padding: 30px;
    margin: 0;
    border-radius: 16px;

    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: all 0.2s ease-out;
}

.text p{
    margin: 0;
}

.text:nth-last-child(2){
    border: none;
}

.text:last-child{
    background-color: #f5f5f5;
    border-radius: 16px;

}

.text-start{
    margin: 0;
    font-weight: bold;
    background-color: rgb(100, 255, 136);
    text-align: center;
    padding: 8px;
    color: rgb(0, 0, 0);
    border-radius: 50px;
}

.victory{
    font-weight: bold;
    background-color: rgb(100, 255, 136);
    padding: 20px;
    color: white;
    margin: 0;
    border-radius: 16px;
}

.lose{
    font-weight: bold;
    background-color: rgb(145, 50, 50);
    padding: 20px;
    color: white;
    margin: 0;
    border-radius: 16px;
}




/*! PAGE CHOIX DES VAISSEAUX */




.wrapper2{
    height: 100vh;
    padding: 30px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    grid-template-rows: 1fr 5fr 1fr;
    grid-template-areas: 
    'choix-menu         choix-title         choix-title'
    'affichage-flotte   liste-vaisseaux     detail-vaisseau'
    'affichage-flotte   liste-vaisseaux     detail-vaisseau';

    gap: 30px;
}

.choix-title{
    margin: 0;
    grid-area: choix-title;
    border: 1px solid black;
    padding: 30px;
}

.choix-menu{
    border: 1px solid black;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}


.affichage-flotte{
    display: flex;
    flex-direction: column;
    justify-content: start;
    grid-area: affichage-flotte;
    border: 1px solid black;
    padding: 20px;
    gap: 20px;
}

.vaisseau-ajoute{
    height: 20%;
    display: flex;
    flex-direction: row;
    border: 1px solid rgb(124, 113, 49);
    padding: 15px;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}


.detail-vaisseau{
    grid-area: detail-vaisseau;
    border: 1px solid black;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
}


.detail-vaisseau p{
    margin: 0;

}

.detail-vaisseau .vaisseau{
    padding: 20px;
    border-bottom: 1px solid black;
}

.detail-vaisseau .stats{
    padding: 20px;
}

.detail-vaisseau .moveset{
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}



.liste-vaisseaux{
    grid-area: liste-vaisseaux;
    border: 1px solid black;

    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;

    overflow-y: auto;
    padding: 30px;
}

.vaisseau-choix{
    border: 1px solid black;
    padding: 20px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.liste-vaisseaux-boutons{
    display: flex;
    gap: 10px;
}

.vaisseau-ajoute .liste-vaisseaux-boutons{
    display: flex;
    flex-direction: column;
    align-items: end;
}


.btn-vert{
    display: flex;
    justify-content: start;
    align-items: center;

    width: fit-content;
    height: 30px;
    padding: 8px;
    background-color: white;
    color: black;
    font-weight: 700;
    border: 1px solid rgb(26, 160, 26);
    border-radius: 0px;
}

.btn-vert:hover{
    background-color: black;
    border: 1px solid black;
    color: white;
}

.vaisseau p{
    margin: 0;
}

/*! ACCUEIL */

.wrapper3{
    height: 100vh;
    display: grid;
    margin-left: 200px;
    margin-right: 200px;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: 1fr 2fr 2fr;
    grid-template-areas: 
    'home-title home-title home-title home-menu'
    'home-flotte home-flotte home-flotte home-flotte'
    'lancer-combat lancer-combat choisir-flotte choisir-flotte'
    ;

    gap: 30px;
    padding: 30px;
    box-sizing: border-box;
}

.home-title{
    display: flex;
    align-items: center;

    padding: 30px;
    grid-area: home-title;
    border: 1px solid #000;
    gap: 40px;
}



.home-title h1{
    margin: 0;
    width: 30%;
}

.home-menu{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border: 1px solid #000;
}

.home-menu p{
    box-sizing: border-box;
    width: 100%;
    padding: 30px;
    margin: 0;
    border-bottom: 1px solid black;
}

.home-flotte{
    display: flex;
    flex-direction: column;
    padding: 30px;
    grid-area: home-flotte;
    border: 1px solid #000;
    gap: 20px;
}

.home-flotte h2{
    margin: 0;
}

.home-flotte-list{
    display: flex;
    gap: 30px;
}

.home-flotte-vaisseau{
    border: 1px solid #000;
    padding: 10px;
}

.lancer-combat{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 30px;
    grid-area: lancer-combat;
    border: 1px solid #000;
}

.choisir-flotte{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    padding: 30px;
    grid-area: choisir-flotte;
    border: 1px solid #000;
}

.wrapper4{
    height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-left: 200px;
    margin-right: 200px;
    gap: 20px;
}

.wrapper4 form{
    display: flex;
    flex-direction: column;
    width: 75%;
    gap: 20px;
}
