/* --------------- GLOBAL --------------- */
body {
  font-family: "Courier New", monospace;
  background: #1b1b1b url('textures/metal.jpg');
  color: #f5f5f5;
  margin: 0;
  padding: 0;
}
#whellshead {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}
#wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

a {
	color: #8888fa;
}
a:visited {
	color: #97a7c7;
}
a:hover {
	color: #aafefe;
}
a:active {
	color: #fffebb;
}
/* ------------ HEADER & FOOTER ------------ */
header, footer {
  text-align: center;
  background: linear-gradient(#222, #111);
  color: #eee;
  padding: 15px;
  border-bottom: 2px solid #444;
}
footer {
  border-top: 2px solid #444;
  font-size: 0.9em;
  color: #aaa;
}
/* --------------- TABLE GÉNÉRALE --------------- */
table {
  border-collapse: collapse;
  margin: 10px auto;
  width: auto;
}
th, td {
  padding: 6px;
  text-align: center;
  vertical-align: middle;
  color: #fdb;
}
/* ----------- PLUGBOARD (Steckerbrett) ----------- */
#plugboard {
  background: #3b3b3b;
  border: 2px solid #555;
  border-radius: 8px;
  padding: 10px;
}
#plugboard input {
  width: 32px;
  height: 32px;
  text-align: center;
  font-weight: bold;
  border-radius: 4px;
  border: 1px solid #444;
  background: #111;
  color: #fff;
}
#plugboard input:focus {
  outline: none;
  border-color: #ff9800;
  box-shadow: 0 0 5px #ff9800;
}
/* ----------- LIGHTBOARD (lampes) ----------- */
#lightboard {
  margin-top: 15px;
}
#lightboard b {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  margin: 2px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
}
/* ------ lampes éteintes ------ */
.led_off {
  background: #333;
  color: #666;
  border: 1px solid #222;
}
/* ------ lampes allumées ------ */
.led_on {
  background: #ffeb3b;
  color: #000;
  border: 1px solid #999;
  box-shadow: 0 0 15px #ff0, inset 0 0 5px #fff;
}
/* animation clignotement */
@keyframes ledBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.led_on.blink {
  animation: ledBlink 1s infinite;
}
/* ----------- ZONE DE MESSAGERIE ----------- */
#keyboard textarea, textarea {
  background: #333;
  color: #fa4;
  border: 1px solid #111;
  border-radius: 5px;
  padding: 8px;
  font-family: "Courier New", monospace;
  font-size: 1em;
  resize: vertical;
}
#keyboard label {
  font-weight: bold;
}
/* ----------- BOUTONS ----------- */
input[type=button], .btn {
  background: #ee9F00;
  color: #310;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  padding: 8px 15px;
  cursor: pointer;
  margin: 5px;
}
input[type=button]:hover, .btn:hover {
  background: #43a047;
}
/* --- EFFET EXTRA "look machine"  and  ADD WheelsHead  idem --- */
#wheels, #bgboard {
  border: 2px solid #555;
  border-radius: 8px;
  background: #2b2b2b;
  padding: 10px;
}