@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

html,body{
	width:100%;
	height: 100%;
	margin: 0px;
	padding: 0px;

	background-color: #ffffff;;

	font-family: "Raleway", sans-serif;
	font-optical-sizing: auto;
	font-weight: normal;
	font-style: normal;
	font-size:16px;
}


a {
  text-decoration: none;
  color:#a01b1b;
  font-weight: 500;
}
a:hover {
  text-decoration: underline;
}
.center{
  text-align: center;
}
#main{
  width: 100%;
  height: 100%;
}
.container{
  text-align:center;
}
.container img{
  max-width: 90%;
  max-height: 300px;
}


#content {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);

  background: rgba(255, 255, 255, 0.9);
  padding:30px;
  border:1px solid #000;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;

  min-width: 300px;
  min-height: 300px;

max-height: 90%;           /* Ajustez la hauteur selon vos besoins */
overflow-y: auto;        /* Apparaît seulement si le contenu dépasse */
}

#contentEnd {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);


}
.temprestant{
  font-size:120px;
  color:#a01b1b;
  background: rgba(29, 29, 29, 0.9);
  width:160px;
  border:none;
  margin-bottom:20px;
  padding:15px;
  float:left;
}
.terminal{
  clear: both;
  background: rgba(29, 29, 29, 0.9);
  padding:30px;
  border:1px solid #000;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;

  min-width: 300px;
  min-height: 150px;

  color:#fff;
}

.terminalgreen{
  color:#536b3e;
  font-weight: bold;
}
.terminalblue{
  color:#404baf;
}
.endcode{
  background: rgba(29, 29, 29, 0.9);
  color:#fff;
  border:none !important;
}


/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  text-align: justify;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


.btn{
  text-align:center;
  font-size:14px;
  font-weight: 600;
  padding:5px;
  background-color: #c1b3e1;
  
  border:1px solid #5a3ca1;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  position: absolute;
  right: 15px;
  bottom: 15px;
}

.hide{
  display: none;
}
.codebox{
  clear: both;
  margin-top:30px;
  margin-bottom:30px;
  width:300px;
  min-height: 150px;
  margin:0 auto;
  background-color: #d2e6c0;

  border:1px solid #5a3ca1;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;

  text-align: center;
  position: relative;
}

.bgimg{
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center bottom;
  background-attachment: fixed;
}
.bgfullscreen{
  background-repeat: no-repeat;
    /* Largeur 100%, Hauteur automatique */
    background-size: 100% auto; 
    /* On centre l'image horizontalement */
    background-position: top center; 
    
    width: 100%;
    /* Définissez une hauteur minimum pour voir l'image */
    min-height: 500px;
    background-attachment: fixed;
    min-height: 100vh;
    /* SCROLL : On fixe une hauteur et on active le défilement */
    max-height: 100%;           /* Ajustez la hauteur selon vos besoins */
    overflow-y: auto;        /* Apparaît seulement si le contenu dépasse */
}
.end{
  background-image: url(images/end.jpg);
}
.step1{
  background-image: url(images/intro.png);
}
.step2{
  background-image: url(images/step2.png);
}
.step3{
  background-image: url(images/step3.png);
}
.step4{
  background-image: url(images/step4.png);
}
.step5{
  background-image: url(images/step5.png);
}

/* form*/
.criteria {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Espacement entre les lignes */
  max-width: 450px;
  font-family: sans-serif;
  padding: 15px;
}

.criterion {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.criterion:hover {
  background-color: #f0f7ff;
  border-color: #d0e3ff;
}

/* Espacement pour la checkbox classique */
.criterion input[type="checkbox"] {
  margin-right: 12px;
  width: 18px; /* Un peu plus grand pour le confort */
  height: 18px;
  cursor: pointer;
}

/* Texte à côté de la checkbox */
.text {
  flex-grow: 1;
  color: #333;
  font-size: 14px;
}

/* Style pour la lettre (data-letter) */
.letter {
  font-weight: bold;
  font-family: monospace;
  color: #0066cc;
  margin-left: 8px;
}

/* Séparateur visuel */
.separator {
  height: 1px;
  background: #ddd;
  margin: 10px 0;
}

/* Optionnel : mettre en gras le texte quand c'est coché */
.criterion input:checked + .text {
  font-weight: bold;
  color: #000;
}
.game-input {
  width: 100%;
  max-width: 450px;
  padding: 12px 20px;
  font-size: 16px;
  font-family: 'Segoe UI', sans-serif;
  
  /* Couleurs et bordures */
  background-color: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  color: #1f2937;
  
  /* Transition pour l'animation au clic */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none; /* On retire la bordure bleue moche par défaut */
  box-sizing: border-box; /* Pour que le padding ne dépasse pas de la largeur */
}

.game-input-small {
    padding: 5px 5px;
    font-size: 22px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    text-align: center;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #1f2937;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-sizing: border-box;
    max-width: 50px;
}

/* État quand l'utilisateur clique dedans */
.game-input:focus {
  border-color: #2563eb;
  background-color: #f8faff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); /* Effet de halo doux */
}

/* Style du texte indicatif (placeholder) */
.game-input::placeholder {
  color: #9ca3af;
  font-style: italic;
}

/* Petit bonus : conteneur pour ajouter de l'espace */
.input-wrapper {
  margin: 20px 0;
  padding: 0 15px;
}
