body {
    font-family: Arial, Helvetica, sans-serif;
    font-size:12px;
}
canvas, #controls {
    border: 1px solid #000;
    display: block;
    margin: 2px ;
    image-rendering: pixelated; /* Pour des pixels nets */
    background-color: #efeae3;
}
button {cursor:pointer;}

#controls { width: 1004px; padding: 10px; margin-bottom: 4px; font-weight: bold;}

#controls input, #round, #board, #controls select, #speed { 
    margin: 0px 6px 0px 4px;
    background-color: #fff;
    font-weight: normal;
    border: none;
    padding: 4px;
    font-size: 12px;
    max-width: 44px;
    min-width: 20px;
    display:inline-block;
}
#round {min-width:36px;}
#controls #board { padding: 3px; }
#reset, #clear { margin-left: 10px; }
.actions {float:right }
#overlayCanvas {
    position: absolute; 
    background-color: transparent; 
    top: 0; 
    left: 0; 
    pointer-events: none;
    z-index: 10; 
}

#infoDiv {
    width: 200px;
    height: 1004px;
    display: none;
    margin: 2px;
    padding: 10px;
    border: 1px solid #000; 
    overflow: auto;
    vertical-align: top;
    background-color: #efeae3;
}		

#gameCanvas {
    display: inline-block;
}


.gene {
    margin: 2px 2px 2px 0px;
    padding: 5px;
    border: 1px solid #000;
    width: 10px;
    height: 4px;
    text-align: center;
    line-height: 6px;
    color: #000;
    font-family: sans-serif;
    display: inline-block;
    border-radius: 10px;
    font-size: 8px;
    font-weight: bold;

}

.gene-small {
  margin: 2px 0px;
  padding: 2px;
  border: 1px solid #000;
  width: 14px;
  height: 13px;
  text-align: center;
  line-height: 16px;
  color: #000;
  font-family: sans-serif;
  font-size: 11px;
  display: inline-block;
  margin-right: 5px;
}

.genome-title {
  font-weight: bold;
}
.survival {
    background-color: #93c2ff;
}
.birth {
    background-color: #ffa4f9;
}
.move {
    background-color: yellow;
}

#CellInfo, #genomeInfo {
    border: 1px solid #000;
    border-radius: 5px;
    background-color: #fff;
}

#genomeInfo {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.genomeInfoTitle, .CellInfoTitle{
    text-align: center;
    border-bottom: 1px solid #000;
    padding: 3px;
    background-color: #cec4b7;
    font-weight: bold;
}

.genomeInfoContent {
    padding: 10px;
}		
        
#cellProxy {
    font-weight: normal;
    border-top: solid 1px #e3ddd3;
    padding: 5px;		  
}

#graphCanvas {
    display:inline-block;
}

#copiedAreaDiv {
    display: inline-block;
    height: 180px;
    margin: 2px;
    padding: 10px;
    border: 1px solid #000;
    vertical-align: top;
    background-color: #f7f4ef;
    width: 200px;		
    image-rendering: pixelated;
}

#copiedAreaDiv img {
  border: 1px solid #000;
  margin: 1px;
  object-fit: contain;
}

#copiedAreaDiv img:hover {
  border: 2px solid #000;

}

#copiedAreaDiv img {
    cursor: pointer; /* Main pour indiquer qu'il s'agit d'un élément cliquable */
}

#copiedAreaDiv img:active {
    cursor: grabbing; /* Main fermée pendant le drag */
}



.modal {
    display: none; /* Masquée par défaut */
    position: fixed; /* Fixée à l'écran */
    z-index: 1000; /* Au-dessus des autres éléments */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fond sombre et semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;

}

/* Style du contenu de la modale */

.modal-content {
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    max-width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    line-height: 0px;
    border: 1px solid #ccc;
    background-color: #f3f3f3;
    margin: auto;
    margin-top: 80px;
}

/* Style du titre de la modale */
.modal-content h2 {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
}

/* Style du formulaire */
#resetForm {
    font-family: 'Arial', sans-serif;
    margin-bottom: 20px;
    text-align: left;
}

/* Style des labels et des options radio */
#resetForm label {
    font-size: 14px;
    color: #333;
    display: block;
    margin: 10px 0;
    cursor: pointer;
}

/* Style des boutons de la modale */
.modal-content button {
    border: 1px solid #c8c8c8;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px 15px;
    background-color: #e2e2e2;
}

.modal-content button:hover {
    background-color: #525252;
    color: #e2e2e2;
}


#cancelReset:hover {
    background-color: #525252;
    color: #e2e2e2;
}        
.gene.actionRule {
    border-radius: 10px 0px 0px 10px;
    margin-right: 0px;
    border-right: none;
}
.gene.tmp_move {
    border-radius: 0px 10px 10px 0px;
}
.gene {white-space: nowrap;}
.gene.actionRule.energy {
    background-color: #16c60c;
    color: #fff;
  }
  .gene.actionRule.cell {
    background-color: #e81224;
    color: #fff;
  } 
  .gene.action.move {
    background-color: white;
  }