* {
  box-sizing: border-box;
  text-align: center;
  font-family: inconsolata;
  font-size: 12px;
  margin: 0px;
  padding: 0px;
}
body {
  color: seashell;
  background-color: steelblue;
  width: 1424px;
  min-height: 720px;
  min-width: 1424px;
  cursor: default;
}


a {
    color: lightgray;
    font-weight: normal;
    font-size: 16px;
    text-decoration: none;
}
a:hover {
  color: blue;
}



#animationMission {
  user-select: none;
  display: none;
  z-index: 5;
  position: fixed;
  font-size: 12px;
  width: calc(1ch + 4px);
  height: 16px;
  padding: 2px;
  background: darkred;
  border-radius: 2px;
  color: floralwhite;
  cursor: default;
}
#animationAdresse {
  display: none;
  z-index: 5;
  position: fixed;
  font-size: 14px;
  width: calc(2ch + 8px);
  height: 22px;
  padding: 2px;
  background: #444444;
  border: 2px solid darkgoldenrod;
  color: gold;
  cursor: default;
}
#animationValeur, #animationValeur2 {
  display: none;
  z-index: 4;
  position: fixed;
  font-size: 14px;
  width: calc(4ch + 8px);
  height: 22px;
  padding: 2px;
  background: #444444;
  border: 2px solid green;
  color: lime;
  cursor: default;
}



#titrePage {
  position: absolute;
  left: 8px;
  top: 0px;
  height: 32px;
  width: 1468px;
  padding: 8px;
  font-size: 16px;
  color: seashell;
  border-bottom: 1px solid seashell;
  cursor: default;
}



#nomProgramme {
  user-select: none;
  position: absolute;
  left: 8px;
  top: 32px;
  width: 240px;
  height: 30px;
  padding: 8px;
  font-size: 14px;
  cursor: default;
}
#programme {
  position: absolute;
  left: 8px;
  top: 62px;
  width: 240px;
  height: 566px;
  padding: 6px;
  resize: none;
  color: midnightblue;
  background: white;
  border: 1px solid darkgray;
  text-align: left;
}



#boutonAssembler {
  user-select: none;
  position: absolute;
  left: 8px;
  height: 48px;
  width: 240px;
  font-size: 14px;
  padding: 8px;
  border-radius: 8px;
}
.boutonBleu {
  top: 642px;
  border: 1px solid mediumslateblue;
  background-color: darkslateblue;
  color: floralwhite;
  cursor: pointer;
}
.boutonBleu:hover { background-color: slateblue; }
.boutonBleu:active { top: 644px; }
.boutonBleuInactif {
  top: 642px;
  border: 1px solid gray;
  background-color: dimgray;
  color: silver;
  cursor: default;
}
#boutonInstructions {
  user-select: none;
  position: absolute;
  left: 8px;
  top: 696px;
  height: 32px;
  width: 240px;
  font-size: 14px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid mediumslateblue;
  background-color: darkslateblue;
  color: floralwhite;
  cursor: pointer;
}
#boutonInstructions:hover { background-color: slateblue; }
#boutonInstructions:active { top: 698px; }


#nomCPU {
  user-select: none;
  position: absolute;
  left: 260px;
  top: 32px;
  width: 448px;
  height: 30px;
  padding: 8px;
  font-size: 14px;
  cursor: default;
}
#CPU {
  position: absolute;
  top: 62px;
  left: 260px;
  width : 448px;
  height: 416px;
  font-size: 16px;
  padding: 12px;
  background: black;
  border: 1px solid darkgray;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


#cablage {
  z-index: 2;
  position: absolute;
  left: 0px;
  top: 0px;
  width: 446px;
  height: 414px;
  z-index: 2;
}


#barreBoutons {
  z-index: 3;
  position: absolute;
  top: 16px;
  left: 16px;
  width: 412px;
  height: 28px;
  background: black;
}
.boutonRouge {
  user-select: none;
  position: absolute;
  font-size: 14px;
  top: 0px;
  width: 96px;
  height: 28px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid firebrick;
	background-color: crimson;
	color: floralwhite;
  font-weight: bold;
  cursor: pointer;
}
.boutonRouge:hover { background-color: indianred; }
.boutonRouge:active { top: 1px; }
.boutonRougeInactif {
  user-select: none;
  position: absolute;
  font-size: 14px;
  top: 0px;
  width: 96px;
  height: 28px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid gray;
	background-color: dimgray;
	color: silver;
  cursor: default;
}
#boutonStep { left: 34px; }
#boutonRun { left: 160px; }
#boutonReset { left: 286px; }


#CUConteneur {
  z-index: 3;
  position: absolute;
  top: 58px;
  left: 16px;
  width: 412px;
  height: 80px;
  background: transparent;
  border: 1px solid floralwhite;
}
#CUName {
  user-select: none;
  position: absolute;
  top: 6px;
  left: 8px;
  width: 396px;
  height: 14px;
  font-size: 14px;
}
.voyant {
  position: absolute;
  top: 26px;
  width: 116px;
  height: 36px;
  border: 1px solid floralwhite;
  padding: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}
#voyantFetch { left: 16px; }
#voyantDecode { left: 148px; }
#voyantExecute { left: 280px; }
.voyantResultat {
  color: firebrick;
  font-size: 14px;
  font-weight: bold;
  width: 4ch;
}
#adresseDecode {
  color: gold;
  width: 2ch;
}

#registresConteneur {
  z-index: 3;
  position: absolute;
  top: 148px;
  left: 16px;
  width: 412px;
  height: 104px;
}
.registre {
  position: absolute;
  display:inline-flex;
  flex-direction:row;
  align-items: center;
  justify-content: space-between;
  width: 13ch;
  height: 20px;
}
.registre2 {
  position: absolute;
  display:inline-flex;
  flex-direction:row;
  align-items: center;
  justify-content: space-between;
  width: 12ch;
  height: 20px;
}
.nomRegistre {
  width: 6ch;
  font-size: 14px;
  text-align: left;
}
#nomRegistreMAR { margin-top: -12px; }
#nomRegistreMBR { margin-top: 12px; }
.valeurRegistre {
  width: 7ch;
  font-size: 14px;
  text-align: right;
}
.valeurRegistre2 {
  width: 6ch;
  font-size: 14px;
  text-align: right;
}
#registrePCConteneur {
  top: 0px;
  left: 8px;
}
#incrementPC {
  visibility: hidden;
  position: absolute;
  top: 0px;
  left: calc(6ch + 4px);
  width: calc(2ch + 4px);
  height: 18px;
  padding: 2px;
  background-color: floralwhite;
  color: firebrick;
  border-radius: 4px;
}
#registreMARConteneur {
  top: 0px;
  right: 8px;
}
#registreCIRConteneur {
  top: 24px;
  left: 8px;
}
#registreMBRConteneur {
  top: 24px;
  right: 8px;
}
#registreAccConteneur {
  top: 48px;
  left: 8px;
}
#registreSRConteneur {
  top: 72px;
  left: 150px;
}
.iAdresse {
  font-size: 14px;
  width: calc(2ch + 6px);
  height: 20px;
  padding: 2px;
  background: black;
  border: 1px solid darkgoldenrod;
  color: gold;
}
#registreCIRO {
  border: 1px solid darkred;
  color: firebrick;
}
.iValeur {
  font-size: 14px;
  width: calc(4ch + 6px);
  height: 20px;
  padding: 2px;
  background: black;
  border: 1px solid green;
  color: lime;
}
#StatusRegister {
  display: inline-flex;
  flex-direction: row;
  align-items: center
}
.drapeau {
  display:inline-flex;
  flex-direction:column;
  align-items: center;
  justify-content: center;
}
.nomDrapeau {
  font-size: 14px;
  width: calc(1ch + 6px);
  height: 16px;
}
.iDrapeau {
  font-size: 14px;
  width: calc(1ch + 6px);
  height: 20px;
  padding: 2px;
  background: black;
  border: 1px solid darkred;
  color: firebrick;
}
#registreMAR, #registreCIRO, #registreCIRA, #registreMAR { cursor: default; }
#drapeauC, #drapeauV, #drapeauZ, #drapeauN { cursor: default; }

#aluConteneur {
  z-index: 3;
  position: absolute;
  top: 260px;
  left: 44px;
  width : 384px;
  height: 88px;
  background: transparent;
}
#aluOperande1, #aluOperande2, #aluResultat {
  width: 128px;
  height: 10px;
  font-size: 10px;
  color: lime;
}
#aluOperation {
  color: firebrick;
  font-weight: bold;
  font-size: 14px;
  width: 3ch;
}
#celluleOperande1 {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 128px;
  height: 34px;
  border-top: 1px solid floralwhite;
  border-left: 1px solid floralwhite;
  border-right: 1px solid floralwhite;
  padding: 4px 2px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: black;
}
#celluleOperande2 {
  position: absolute;
  left: 256px;
  top: 0px;
  width: 128px;
  height: 34px;
  border-top: 1px solid floralwhite;
  border-left: 1px solid floralwhite;
  border-right: 1px solid floralwhite;
  padding: 4px 2px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: black;
}
#celluleALU {
  position: absolute;
  left: 128px;
  top: 34px;
  width: 128px;
  height: 20px;
  font-size: 14px;
  border-top: 1px solid floralwhite;
  padding: 3px;
  background-color: black;
}
#celluleGauche {
  position: absolute;
  top: 34px;
  left: 0px;
  width: 128px;
  height: 54px;
  background: linear-gradient(to top right, transparent, transparent calc(50% - 1px), floralwhite 50%, transparent calc(50% + 1px), transparent 100%);
  background-color: black;
}
#celluleResultat {
  position: absolute;
  left: 128px;
  top: 54px;
  width: 128px;
  height: 34px;
  border-bottom: 1px solid floralwhite;
  padding: 4px 2px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: black;
}
#celluleDroite {
  position: absolute;
  top: 34px;
  left: 256px;
  width: 128px;
  height: 54px;
  background: linear-gradient(to top left, transparent, transparent calc(50% - 1px), floralwhite 50%, transparent calc(50% + 1px), transparent 100%);
  background-color: black;
}


#horlogeConteneur {
  z-index: 3;
  position: absolute;
  left: 16px;
  bottom : 12px;
  width: 412px;
  display: inline-flex;
  flex-direction:row;
  align-items: center;
  justify-content: center;
  background: transparent;
}
#horlogeTitre { font-size: 14px; }
#vitesseHorloge {
  margin-left: 10px;
  -webkit-appearance: none;
  appearance: none;
  width: 160px;
  height: 6px;
  background: darkgray;
  outline: none;
  border-radius: 3px;
}
/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
#vitesseHorloge::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: dodgerblue;
  width: 14px;
  height: 14px;
  border: 1px solid blue;
  border-radius: 8px;
  cursor: pointer;
}
#vitesseHorloge::-moz-range-thumb {
  background: dodgerblue;
  width: 14px;
  height: 14px;
  border: 1px solid blue;
  border-radius: 8px;
  cursor: pointer;
}



#nomEntree {
  user-select: none;
  position: absolute;
  left: 260px;
  top: 490px;
  width: 420px;
  height: 30px;
  padding: 8px;
  font-size: 14px;
  cursor: default;
}
#entree {
  resize: none;
  position: absolute;
  left: 260px;
  top: 520px;
  width: 420px;
  height: 74px;
  background-color: black;
  border: 1px solid darkgray;
  padding: 4px;
  color: lime;
  font-weight: bold;
  cursor: default;
}
#portEntree {
  position: absolute;
  left: 680px;
  top: 520px;
  width: 28px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: gold;
  background-color: black;
  border: 1px solid darkgray;
  box-sizing: border-box;
}


#nomSortie {
  user-select: none;
  position: absolute;
  left: 260px;
  top: 598px;
  width: 420px;
  height: 22px;
  padding: 4px;
  font-size: 14px;
  cursor: default;
}
#sortie {
  resize: none;
  position: absolute;
  left: 260px;
  top: 624px;
  width: 420px;
  height: 112px;
  background-color: black;
  border: 1px solid darkgray;
  padding: 8px;
  color: lime;
  font-weight: bold;
  cursor: default;
}
#portSortie {
  position: absolute;
  left: 680px;
  top: 624px;
  width: 28px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: gold;
  background-color: black;
  border: 1px solid darkgray;
  box-sizing: border-box;
}



#nomBUSES {
  user-select: none;
  position: absolute;
  left: 708px;
  top: 32px;
  width: 64px;
  height: 30px;
  padding: 8px;
  font-size: 14px;
  cursor: default;
}
#BUSES {
  position: absolute;
  left: 708px;
  top: 62px;
  width : 64px;
  height: 672px;
  background-color: transparent;
}



#nomRAM {
  user-select: none;
  position: absolute;
  left: 772px;
  top: 32px;
  width: 704px;
  height: 30px;
  padding: 8px;
  font-size: 14px;
  cursor: default;
}
#RAM {
  position: absolute;
  top: 62px;
  left: 772px;
  border-collapse: collapse;
  background-color: black;
}
#RAM td {
  width: 44px;
  height: 42px;
  padding: 2px;
  color: gold;
  background-color: transparent;
  border: 1px solid darkgray;
}

#RAM input {
  display: inline-block;
  width: calc(4ch + 6px);
  height: 18px;
  padding: 2px;
  border: 1px solid green;
  background-color: black;
  color: lime;
}




#dialogueInstructions {
  display: none;
  z-index: 8;
  position: fixed;
  width: 75%;
  max-height: 75%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 14px;
  background-color: snow;
  color: darkslateblue;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  overflow: auto;
  cursor: default;
}
#dFermerInstructions {
  display: flex;
  flex-direction: row-reverse;
}
#fermerInstructions {
  cursor: pointer;
}
#titreInstructions {
  font-size: 14px;
  margin-bottom: 10px;
}
.jeuInstructions {
  margin-top: 10px;
  margin-bottom: 10px;
  border-collapse: collapse;
}
.jeuInstructions td {
  border: 1px solid darkslateblue;
  padding: 5px;
}
.explication { text-align: left; }

#dialogueEntree {
  display: none;
  z-index: 8;
  position: fixed;
  font-size: 16px;
  width: 40%;
  max-height: 75%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 14px;
  border: 1px solid lime;
  background-color: black;
  color: lime;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  overflow: auto;
  cursor: default;
}
#titreEntree {
  font-size: 14px;
  font-weight: bold;
}
#infoEntree {
  font-size: 12px;
  color: green;
  text-align: left;
  margin: 20px;
}
#infoEntree ul { text-align: left; }
#infoEntree li { text-align: left; }
#nombreEntree {
  font-size: 14px;
  margin-bottom: 10px;
}
#inputEntree {
  font-size: 14px;
  padding: 4px;
  background: transparent;
  color: lime;
}
#dialogueShader {
  display: none;
  z-index: 7;
  opacity: 0.33;
  background-color: black;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}




#dialogueAlerte {
  display: none;
  z-index: 10;
  position: fixed;
  width: 30%;
  max-height: 75%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 14px;
  background-color: lightgray;
  color: dimgray;
  border: solid 2px dimgray;
  border-radius: 6px;
  overflow: auto;
  cursor: default;
}
#titreAlerte {
  font-size: 14px;
  font-weight: bold;
}
#messageAlerte {
  font-size: 14px;
  font-weight: bold;
  margin: 14px 0px;
  text-align: left;
}
#boutonAlerte {
  display: inline-block;
  font-size: 14px;
  padding: 4px 8px;
  margin: 6px;
  width: 8ch;
  border-radius: 6px;
  border: 1px solid dimgray;
	background-color: gray;
	color: antiquewhite;
  cursor: pointer;
}
#boutonAlerte:hover {
	background-color: darkgray;
}
#boutonAlerte:active {
	position: relative;
  top: 1px;
}

#alerteShader {
  display: none;
  z-index: 9;
  opacity: 0.33;
  background-color: black;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}
