*{
    font-family: 'Courier New', Courier, monospace;
}

body{
    height: 100vh;
    padding: 0;
}

.wrapper{
    height: 100vh;
    padding: 30px;
    margin-left: 175px;
    margin-right: 175px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-template-rows: 1fr 5fr 2fr;
    grid-template-areas: 
    'title menu'
    'combat dashboard'
    'attack dashboard';

    gap: 30px;
}


.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{
    border: 1px solid black;
    padding: 30px;
}

.title h1{
    margin: 0;
}

.menu{
    border: 1px solid red;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.combat{
    border: 1px solid blue;
    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.combat-info{
    width: 100%;
    
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.flotte{
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.flotte:last-child{
    justify-content: end;
    flex-direction: column-reverse;

}

.flotte:first-child{
    text-align: end;
}

.nom-flotte{
    margin: 0;
}

.flotte-liste{
    display: flex;
    justify-content: end;
    gap: 40px;
}

.flotte-liste .vaisseau{
    width: 150px;
}

.attack{
    border: 1px solid indigo;
    padding: 30px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;

    gap: 20px;
}

.moves{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.moves-list{
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-wrap: wrap;
    height: 150px;
}

.choices{
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 20px;
}

.choice-list{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.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{
    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(38, 0, 255);
    border-radius: 0px;
}

.btn-normal:hover{
    border: 1px solid black;
    background-color: black;
    color: white;
}

.btn-rouge{
    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 red;
    border-radius: 0px;
}

.btn-rouge:hover{
    background-color: black;
    border: 1px solid black;
    color: white;
}

.btn-attaque{
    display: flex;
    justify-content: start;
    align-items: center;

    width: fit-content;
    width: 150px;
    height: 30px;
    padding: 8px;
    background-color: white;
    color: black;
    font-weight: 700;
    border: 1px solid rgb(104, 10, 107);
    border-radius: 0px;
}

.btn-attaque:hover{
    background-color: black;
    border: 1px solid black;
    color: white;
}


.dashboard{
    grid-area: dashboard;
    border: 1px solid black;
    padding: 20px;

    overflow-y: auto;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.text{
    border-bottom: 1px solid black;
    padding: 10px;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 25px;
}

.text p{
    margin: 0;
}

.text:nth-last-child(2){
    border: none;
}

.text:last-child{
    border: 1px solid black;
}

.text-start{
    margin: 0;
    font-weight: bold;
    border: 1px solid blue;
    background-color: rgb(255, 255, 255);
    padding: 10px;
    color: rgb(0, 0, 0);
}

.victory{
    font-weight: bold;
    background-color: rgb(50, 145, 50);
    padding: 10px;
    color: white;
    margin: 0;
}

.lose{
    font-weight: bold;
    background-color: rgb(145, 50, 50);
    padding: 10px;
    color: white;
    margin: 0;
}




/*! 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;
}
