@font-face {
  font-family: Hacking;
  src: url(../fonts/Open24DisplaySt.ttf) format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* === STYLES GÉNÉRAUX === */
body {
  margin: 0;
  background: black;
  color: #00ff00;
  /* Vert "Matrix" */
  font-family: Hacking;
  overflow: hidden;
  /* Empêche le défilement lors de l'animation "shake" */
}

/* === FOND BINAIRE (CANVAS) === */
#binaryBackground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: black;
}

/* === LAYOUT PRINCIPAL === */
#app {
  height: 100vh;
  display: flex;
  text-align: center;
  flex-direction: column;
  align-content: center;
  align-items: center;
  justify-content: center;
}

#content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  width: 30%;
  height: auto;
  padding: 2%;
  background-color: black;
  border: 2px solid;
  border-radius: 10px;
}

#logo {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 130px;
  height: 130px;
  border: 1px solid;
  border-radius: 100%;
  object-fit: contain;
  background-color: black;
}

/* === MINUTEUR === */
#timer {
  min-width: 500px;
  font-size: 5em;
  background-color: black;
  border: 2px solid #00ff00;
  display: inline-block;
  margin: 0 0 5%;
  padding: 0 40px 16px;
  border-radius: 10px;
  transition: color 0.5s, border-color 0.5s;
  font-family: Hacking, sans-serif;
  letter-spacing: 15px;
}

/* === TERMINAL (INPUT + BOUTON) === */
#terminal {
  display: flex;
  margin-top: 30px;
  width: 100%;
  justify-content: center;
  gap: 5px;
}

#output-console {
  font-family: Hacking;
  height: 110px;
  width: 100%;
  overflow-y: hidden;
  margin-top: 10px;
  scrollbar-width: none;
  text-align: start;
}

.bomb-gray-background {
  background-color: #1f3b4b;
  transition: background-color 1s ease-in-out;
}

#codeInput {
  width: 300px;
  padding: 10px;
  color: #00ff00;
  background: black;
  border: 1px solid #00ff00;
  outline: none;
  font-family: Hacking;
  font-size: 1em;
}

.invalid-code {
  color: red;
}

#feedback {
  margin: 20px 0;
  font-size: 1.2em;
  text-align: start;
  line-height: 1.2em;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* === BOUTONS (STYLE AMÉLIORÉ) === */
button {
  background: black;
  color: #00ff00;
  border: 1px solid #00ff00;
  padding: 10px 15px;
  font-family: Hacking;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

button:hover {
  background: #00ff00;
  color: black;
}

button:active {
  background: #009900;
}


/* === MENU ADMINISTRATEUR === */
#adminPanel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #00ff00;
  padding: 20px;
  color: white;
  width: 400px;
  z-index: 100;
}

#adminPanel h2 {
  margin-top: 0;
  text-align: center;
  color: #00ff00;
}

#adminPanel label {
  display: block;
  font-size: 0.9em;
  margin: 15px 0 0 0;
}

#adminPanel label input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
  padding: 5px;
  background: #111;
  border: 1px solid #00ff00;
  color: white;
}

#minuteur{
  margin: 0 0 15px 0;
} 

#adminHours, #adminMinutes, #adminSeconds {
  width: 50px;
  box-sizing: border-box;
  margin-top: 5px;
  padding: 5px;
  background: #111;
  border: 1px solid #00ff00;
  color: white;
}

#adminPanel .buttons {
  margin-top: 15px;
  text-align: center;
}

#adminPanel .buttons button {
  margin: 5px;
}

/* === CLASSES UTILITAIRES & ANIMATIONS === */
.hidden {
  display: none;
}

.shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-10px, 0);
  }

  50% {
    transform: translate(10px, 0);
  }

  75% {
    transform: translate(-10px, 0);
  }

  100% {
    transform: translate(0, 0);
  }
}