@font-face {
  font-family: ChicagoFLF;
  src: url(ChicagoFLF.ttf) format("truetype");
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  font-family: "Helvetica Neue", Helvetica, sans-serif;
}

#ecran {
  position: absolute;
  left: 0;
  top: 0;
  width: 1024px;
  height: 684px;
}

#curseur {
  position: absolute;
  left: 0;
  top: 0;
  display: none;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#canvas, #toucher {
  cursor: none;
  touch-action: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100% !important;
}

#ecran-net {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}

#canvas {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
}

#pad {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 84px;
  display: none;
  background: #000;
  -webkit-touch-callout: none;
}

#pad canvas {
  display: block;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

html.tactile body.jeu #pad {
  display: block;
}

#palette button {
  -webkit-appearance: none;
  border: 2px solid #000;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-family: ChicagoFLF, Geneva, "Helvetica Neue", Helvetica, sans-serif;
  font-weight: normal;
  outline: none;
}

#fps {
  position: absolute;
  right: 8px;
  bottom: 4px;
  color: #666;
  font-size: 12px;
}

#saisie {
  position: absolute;
  left: -1000px;
  top: 0;
  width: 10px;
  height: 10px;
  opacity: 0;
}

#message {
  position: absolute;
  left: 0;
  top: 0;
  width: 1024px;
  height: 684px;
  display: none;
  color: #eee;
  font-size: 22px;
  text-align: center;
  line-height: 1.5;
  padding-top: 260px;
  box-sizing: border-box;
}

#palette {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

#palette.ouverte {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}

#palette-boite {
  width: 620px;
  padding: 18px;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 0 0 0 4px #fff, 0 0 0 10px #000;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

#palette button {
  width: 110px;
  height: 80px;
  margin: 5px;
  font-size: 15px;
}

#palette button b {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

#veille {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

#aide {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 760px;
  margin-left: -380px;
  display: none;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #000;
  font-family: ChicagoFLF, Geneva, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 15px;
  text-align: center;
  pointer-events: none;
}

.dialogue {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  font-family: ChicagoFLF, Geneva, "Helvetica Neue", Helvetica, sans-serif;
  color: #000;
}

.dialogue.ouverte {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}

.dialogue .boite {
  position: relative;
  width: 440px;
  padding: 20px 24px 18px;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 0 0 0 4px #fff, 0 0 0 10px #000;
  font-size: 16px;
  line-height: 1.35;
}

.dialogue .boite.fenetre {
  width: 620px;
  padding: 0 0 16px;
  box-shadow: 4px 4px 0 #000;
}

.dialogue p {
  margin: 0 0 12px;
}

.dialogue .titre-fenetre {
  margin: 0 0 12px;
  padding: 6px 4px;
  text-align: center;
  border-bottom: 2px solid #000;
  background: -webkit-repeating-linear-gradient(top, #fff 0, #fff 2px, #000 2px, #000 4px);
  background: repeating-linear-gradient(to bottom, #fff 0, #fff 2px, #000 2px, #000 4px);
  background-clip: content-box;
}

.dialogue .titre-fenetre span {
  background: #fff;
  padding: 0 10px;
}

.dialogue input[type=radio] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0 8px -2px 0;
  border: 2px solid #000;
  border-radius: 50%;
  background: #fff;
  vertical-align: baseline;
  outline: none;
}

.dialogue input[type=radio]:checked {
  background: #000;
  box-shadow: inset 0 0 0 3px #fff;
}

#sv-liste span, #ut-liste span {
  display: inline-block;
}

#sv-liste .date { width: 84px; }
#sv-liste .heure { width: 58px; }
#sv-liste .qui { width: 190px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
#sv-liste .ou { width: 130px; }
#sv-liste .taille { width: 60px; text-align: right; }
#ut-liste .nom { width: 200px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
#ut-liste .role { width: 90px; }
#ut-liste .etat { width: 230px; }

#nouvel, #changer {
  z-index: 5;
}

.dialogue .choix {
  display: block;
  margin: 4px 0 4px 18px;
}

.dialogue .champ {
  display: block;
  overflow: hidden;
  line-height: 30px;
  margin: 10px 0 0 18px;
}

.dialogue .champ input[type] {
  float: right;
  width: 170px;
}

.dialogue input[type=text],
.dialogue input[type=password] {
  -webkit-appearance: none;
  border: 2px solid #000;
  border-radius: 0;
  font-family: Geneva, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  padding: 3px 5px;
  width: 200px;
  margin-left: 8px;
  outline: none;
}


#c-erreur, #n-erreur, #nu-erreur, #ch-erreur {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 14px;
}

.dialogue .boutons {
  text-align: right;
  margin-top: 14px;
}

.dialogue .fenetre .boutons {
  padding: 0 16px;
}

.dialogue button {
  -webkit-appearance: none;
  min-width: 96px;
  height: 36px;
  margin-left: 12px;
  border: 2px solid #000;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-family: ChicagoFLF, Geneva, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  outline: none;
}

.dialogue button.defaut {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #000;
  margin-left: 18px;
}

.dialogue button:active,
.dialogue button.actif {
  background: #000;
  color: #fff;
}

.dialogue button:disabled {
  color: #999;
  border-color: #999;
}

#alerte .boite {
  padding-left: 100px;
  min-height: 72px;
}

#alerte-icone {
  position: absolute;
  left: 20px;
  top: 18px;
  width: 64px;
  height: 64px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: pixelated;
}

#alerte {
  z-index: 10;
}

#sv-liste, #ut-liste {
  height: 300px;
  margin: 0 16px;
  border: 2px solid #000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: Geneva, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 14px;
}

#sv-liste div, #ut-liste div {
  padding: 5px 8px;
  white-space: nowrap;
  cursor: default;
}

#sv-liste div.choisi, #ut-liste div.choisi {
  background: #000;
  color: #fff;
}

#alerte-texte {
  white-space: pre-line;
}

#macui {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 20;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  -webkit-tap-highlight-color: transparent;
}

#macui-champs {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 21;
  pointer-events: none;
}

#macui-champs input {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 16px;
  pointer-events: none;
}

#macui-champs input.macui-trousseau {
  pointer-events: auto;
}

#macui-clavier {
  position: fixed;
  touch-action: none;
  z-index: 25;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  -webkit-tap-highlight-color: transparent;
}
