html {
    color: #ffffff;
    font-family: Verdana;
    background-image: url('/static/ogflight/background1.png');
    background-size:cover;
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: 100%;
    margin:0px;
    padding:0px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    background-color:black;
}

body {
    display: flex;
    flex-direction: column;
    height:100%;
    max-height: 100%;
    box-sizing: border-box;
    margin: 0;
}

main {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    max-height:100%;
    padding: 20px;    
    width: 100%;
    box-sizing: border-box;
    gap: 20px;
    height: calc(100% - 100px);
    position: absolute;
    top: 65px;
    overflow-y: auto;
}


:root {
    --fonce: rgb(5, 0, 24);
}

h2, h1, table, p {
    text-align: center;
}

.cadre {
    vertical-align: top;
    display: list-block;
    background-color: rgba(0, 0, 0, 0.5);
    /*background-color: var(--fonce);*/
    /*opacity: 0.7;*/
    margin: 2px;
    margin-top: 0px;
    padding: 0px 5px 5px 5px;
    border: 1px solid #ffff;
    border-radius: 8px;
    width:85%;    
    overflow: auto;
    box-sizing: border-box;
}

@media (min-width: 1650px) {
    .cadre {
        width: 33%; 
        height: 100%;
    }
}

.cadre-col {
    display: block;
    background-color: rgb(5, 0, 24);
    margin-top: 0px;
    margin-bottom: 10px;
    padding: 5px 5px 5px 5px;
    border: solid;
}

.button-simu {
    text-align: center;
    border: 2px solid #00C62B;
}

.resultat {
    vertical-align: top;
    display: inline-block;
    background-color: rgb(5, 0, 24);
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px 10px 10px 10px;
    border: solid;
    width:100%;
}

li {
    list-style-type: none;
    margin: 10px 0;
}

.bilan {
    display: block;
    /*background-color: rgb(5, 0, 24);*/
    margin-top: 0px;
    padding: 10px 0px 10px 0px;
    width: 100%;
    box-sizing: border-box;
}

.victoire {
    display: block;
    background-color: rgb(5, 0, 24);
    margin: auto;
    width: 100%;
    padding: 20px 20px 20px 20px;
}


td.cadre {
    padding: 10px; /* Espacement interne */
}

a {
    font-size: 12px;
}

h1 {
    font-size: 1.2em; /* Taille de police pour le titre */
    margin-bottom: 0px; /* Marge en bas du titre */
}

button {
    margin-right: 5px; /* Marge à droite pour les boutons */
    padding: 5px 10px; /* Espacement interne pour les boutons */
    background-color: #1C2C56; /* Couleur de fond du bouton */
    color: white; /* Couleur du texte du bouton */
    border: none; /* Supprime la bordure du bouton */
    cursor: pointer; /* Curseur pointeur pour les boutons */
    border-radius: 12px;
}

table {
    width: 100%; /* Largeur de la table à 100% de la cellule */
    padding: 10px; /* Espacement interne pour les cellules de la table interne */
}



label {
    background: linear-gradient(to right, #040931, #2e2b2b); /*47464e 37344a */
    font-size: 11px;
    border: 1px solid rgb(5, 0, 24); /* Bordure pour les cellules d'en-tête */
    border-radius: 8px;
    display: block;  /* Utilisez 'block' au lieu de 'inline-block' pour occuper toute la largeur */
    padding: 5px;
} 


main h2 {
    font-size: 1.1em; /* Taille de police pour les sous-titres */
    margin-bottom: 5px; /* Marge en bas des sous-titres */
    background-color: #1C2C56;
    padding: 5px;
}

h3 {
    padding: 10px; /* Espacement interne pour les cellules de la table interne */
    font-size: 1.1em; /* Taille de police pour les sous-titres */
    margin-bottom: 5px; /* Marge en bas des sous-titres */
    background-color: #1C2C56;
    border-radius: 12px;
}

table, td {
    vertical-align: middle;
}


.th_empty {background-color: rgb(5, 0, 24)}

.pertes {
    color: #ff0000;
    margin-top: 10px;
}

.benef {
    color: #00cc00;
    margin-top: 10px;
}

.languages button {
    font-size: 12px;
}

.forms-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}


.forms-div {
    display: block;
    margin-top: 0px;
    width:100%;        
    overflow: auto;
    box-sizing: border-box;    
}

.tech-display {
    vertical-align: top;
    display: inline-block;
    width: 100%;
}

.nav-players-att, .nav-players-def, .nav-players {
    display: flex;
    flex-wrap: wrap;  /* Allow flex items to wrap to the next line */
    justify-content: center;
    align-items: center;
    width: 100%;  /* Adjust as needed */
    margin-top: 10px;
}

.playercontain {
    display: block;
}

.resume-player {
    height: 20px;
    margin:0px;
}

.input-api {
    display: inline-flex;
    align-items: center;
    width: 100%;
}

.cadre-resultat {
    display: block;
    width: 70vw;    
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    height: 100%;
    overflow: auto;
}

.obscur-popup {
    display: block;
    width: auto;
    height: 100%;    
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    overflow: auto;
}

.battleres {
    display: block;
    flex-direction: row;
    min-width: 70vw;    
}

.bilan {
    display: block;
}

.bilan table {
    width: 100%;
}

.bilan table td, .bilan table th {
    margin-right: 20px;
    padding: 5px;       
    white-space: nowrap; 
}

.bilan-table td {
    text-align: center;
    padding: 5px; /* Ajoutez un espacement intérieur aux cellules */
}

/* Styles for select-saisi */
.select-saisi {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px; /* Adjust the margin as needed */
    margin-top: 10px;
}


/* Styles for detail-nav buttons */
.detail-nav, .detail-nav-def {
    background-color: #1C2C56; /* Green background color */
    color: white; /* White text color */
    padding: 10px 20px; /* Padding for better visual appearance */
    border: none; /* No border */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
}

.cadre-options {
    text-align: center;
    display: flex; /* Set the container to be a block element */
    margin-top: 20px;
    padding: 0%;
}

.cadre-options div {
    flex: 1; /* Ajustez cela en fonction de vos besoins de mise en page */
}

.cadre-options button, .select-saisi button {
    font-size: 16px;
    display: inline-block; /* Set the buttons to be inline-block */
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 5px 5px; /* Add padding for better visual appearance */
    border-radius: 0;
    box-sizing: border-box; /* or content-box, based on your layout */
}

.options {
    padding: 5px;
}

.option-resume {
    display:block;
}

.simu-commands {
    display: block;
}

.simu-resume {
    display: block;
    width: 100%;
}

.resume-simu {
    display:flex;
    flex-direction: row;
    column-count: 4;
    width: 100%;
    padding:2px;
    margin-top: 10px;
}

.resume-item {
    display: inline-block;
    max-width:30%;
    min-width:20%;
}

.resume-lab {
    display: inline-block;
    padding:5px;
    text-align: center;
}

.resume-value {
    display:inline-block;
    margin-left: 5px;
}

.resume-value p {
    margin:0px;
}

.simu-resume button {
    text-align: center;
    margin-top: 10px;
    border: 1px solid #ffff;
    width: 100%;
}

.option-planet {
    display:block;
    width: 100%;
}

.defense {
    display: inline-block;
    max-width: 65%;
}

.ressources-def {
    display: inline-block;
    max-width: 30%;
}

.bilan[hidden] {
    display: none;
}

.button-simuler {
    padding: 10px;
    border: 2px solid #FF00F5;
    margin-left: 20px;
    margin-right: 20px;
}

.input-container {
    position: relative;
    width:30%;
}

.custom-input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 12px;
    margin-top: 10px;
}

.custom-label {
    position: absolute;
    width:90%;
    padding:5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    text-align: center;
    pointer-events: none;
    transition: transform 0.3s ease-out, font-size 0.3s ease-out, color 0.3s ease-out;
    border: 2px solid #1C2C56;
    height: 30px;
    margin-top: 10px;
}

.custom-label.focused {
    transform: translateY(-120%) scale(0.8);
    font-size: 12px;
    padding:5px;
    white-space: nowrap;
    height: auto;
    width:auto;
}

.flex-table {
    display: flex;
    flex-wrap: wrap;
    margin:0;
    padding:0;
    text-align: left;
}

.rounds-container {
    font-size: 12px;
}


.stat-item {
    border: solid 2px #ffffff;
    height: 100%;
}


.stat-item li {
    flex:1;
    margin: 5px;
}

.c-row {
    /*background-color: #1C2C56; /* 1C2C56 */
    /*border: 1px solid #000000; /* 00C62B */
    border-radius: 5px;
    width: 47%;
    display: inline-block;
    margin:2px;
}

.c-row-mip {
    background-color: #1C2C56; /* 1C2C56 */
    border: 1px solid #00C62B; /* 00C62B */
    border-radius: 5px;
    width: 95%;
    display: block;
    margin:2px;
}

.c-row-f {
    /*background-color: #1C2C56; /* 1C2C56 */
    /*border: 1px solid #FF00F5; /* 00C62B */
    border-radius: 5px;
    width: 47%;
    display: inline-block;
    margin:2px;
}

.c-row td {
    display:inline-block;
}

.c-row-f td {
    display:inline-block;
}

.c_label {
    background-color: inherit; /*37344a */
    font-size: 9px;
    border: 0px solid rgb(5, 0, 24); /* Bordure pour les cellules d'en-tête */
    border-radius: 5px;
    display: block;  /* Utilisez 'block' au lieu de 'inline-block' pour occuper toute la largeur */
    padding: 0px;
    margin:0px;
    white-space: nowrap;
    overflow: hidden;
} 

.custom-image {
    max-height: 50px;
    max-width: 50px;
    width: auto;
    display: block;
    margin: 0 auto;
    border-collapse: collapse;
}

.custom-cell-i {
    text-align: center;
    display:inline-block;
    border: 1px solid #fff;/**/
    border-radius: 5px;
}  

.custom-cell {
    width:65%;
    text-align: left;
    margin:0px;
    display:inline-block;
    vertical-align: top;
}

.custom-cell  input {
    display:block;
    width:90%;
    margin:2px;
    font-size: 10px;
    height:8px;
}

.custom-cell a {
    display:block;
    height:12px;
    font-size: 10px;
    margin-top: 2px;
}

.param-player {
    display:block;
}

h1.att-name-display, h1.def-name-display, .param-player button {
    display:inline-block;
    vertical-align: bottom;
    text-align: center;
    width: 45%;
}

.b-player-nav {
    display:flex;
    white-space: nowrap;
    margin-bottom: 5px;
    border: 2px solid #00C62B;
}

.b-splayer-nav {
    display:flex;
    white-space: nowrap;
    margin-bottom: 5px;
    border: 2px solid #FF00F5;
}

/* Cacher la checkbox par défaut */
input[type="checkbox"] {
    height: 15px;
}

/* Style de base pour la nouvelle apparence de la checkbox */
input[type="checkbox"] + label {
    position: relative;
    padding-left: 30px; /* Ajustez la valeur selon la taille de votre symbole */
    cursor: pointer;
}

/* Style du pseudo-élément pour afficher le symbole de coche */
input[type="checkbox"] + label::before {
    content: '\2713'; /* Code Unicode pour le symbole de coche */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px; /* Ajustez la taille selon vos préférences */
    color: #4CAF50; /* Couleur du symbole de coche */
}

/* Style lorsque la checkbox est cochée */
input[type="checkbox"]:checked + label::before {
    color: #fff; /* Couleur du symbole de coche lorsque coché */
    background-color: #4CAF50; /* Fond de la checkbox lorsque coché */
}

.custom-radio {
    display: none;
}

.custom-radio-img {
    width: auto;
    display:inline-block;
    margin: 0 auto;
    cursor: pointer;
    border: 2px solid transparent;
}

.classe-img {
    max-height: 20px;
    max-width: 20px;
}

.custom-radio:checked + .custom-radio-img {
    border-color: #FF00F5;  /* Couleur de la bordure pour la version cochée */
}

.petit_ressources {
    max-height: 25px;
    max-width: 35px;
    vertical-align: bottom;
}

.ent-res {
    padding: 2px;
    font-size: 1.1em;
    background-color: #1C2C56;
    border-radius: 12px;
    text-align: center;
}

.bilan-table {
    width:100%;
    padding:2px;
}

.popup-container {
    display: none;
    position:fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(5, 0, 24);
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    z-index: 99999;
    min-height:40%;
    min-width: 40px;
    max-height: 85%;
    max-width: 85%;
    overflow: auto;
  }
  
  .popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99998;
  }

  .fdv_form button {
    padding:20px;
  }

  .fdv_form thead {
    font-weight: bold;
  }

  .fdv_form th, .fdv_form td {
    padding: 5px;
  }

  .fdv_form th {
    white-space: nowrap;
  }

  .resultat-nav {
    display: block;
    width: 100%;
  }

  .restab {
    display: inline-block;
    width: 80%;
  }

  .restab-flex {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: left;
  }

.mip-container {
    display: flex;
    flex-direction: row;
    min-width: 70vw;
    max-width: 95vw;
}

.mip-form, .mip-cost {    
    width: 45%;
    vertical-align: top;
    padding: 10px;
}

.mip-cost {    
    display:flex;
    justify-content: right;
}

.mip-cost table {
    width: fit-content;
    min-width: 50%;
    align-items: end;
    justify-content: right;
}

.mip-def {
    display: block;
    width: fit-content;
    border: 1px solid #00C62B;
    border-radius: 12px;
    background: #1C2C56;
    justify-content: middle;
    padding: 5px;
    margin-top: 5px;
}

.mip-saisi {
    display: inline-block;
    width: 40%;
    text-align: center;
    align-items: center;
    padding: 2px;
}

.mip-saisi a {
    margin-top : 2px;
}

.mip-saisi * {
    display: block;
}

.mip-image {
    display: inline-block;
    min-width:5%;
    max-width: 10%;
    height: fit-content;
    border-radius: 12px;
}

.mip-input {
    max-width: 9em;
    display: block; 
    margin: 0 auto;
}


.table-importing {
    border-collapse: collapse;
    border-spacing: 20px;
    max-width: 70vw;
}

.table-importing td {
    overflow: wrap;
    max-width: 30%;
}

.table-importing button {
    margin: 5px;
}

.table-importing td {
    border-bottom: 1px solid #fff;
    padding:5px;
}