body {
  background-color: ivory;
  font-family: sans-serif;
}
#main {
  width:1200px; height:900px;
  margin:0 auto;
}
#head {
  width:100%;
  display:flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: .5%;
}
#head img {
  width:5%;
}
#head div {
  font-style: italic;
  color:blue;
}
#panel1 {
  display:flex;
  justify-content: space-around;
  align-items: center;
}
#simcom {
  width:70%;
}
#boxes {
  display:flex;
  justify-content: space-around;
  font-size:90%;
  margin-bottom: .5%;
}
#boxes div {
  display:flex;
  flex-direction: column;
  align-items: center;
  width:15%;
}
#boxes div div {
  margin-top:5%;
}
#boxes div p {
  outline:1px solid grey;
  padding:2% 0 1% 0;
  width:70%;
  margin:5% 0 10% 0;
  background-color:#dfd;
  text-align: center;
}
#pc0, #ac0, #sp0 {
  border:1px solid grey;
}
#out0 {
  border:2px solid grey;
}
#pc0 {background-color: lime;}
#ac0 {background-color: lightskyblue;}
#sp0 {background-color: pink;}
#out0 {background-color: orange;}
#top {
  width:95%;
  display:grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows:1fr;
  margin:0 0 0% auto;
  text-align: center;
}
#panel4 {
  display:flex;
}
#left {
  width:4.2%;
  display:flex;
  flex-direction: column;
  justify-content: space-evenly;
}
#memory {
  width:95.8%;
  display:grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
}
#memory div {
  outline:1px solid grey;
  background-color:#dfd;
  display:flex;
  justify-content: center;
  align-items: center;
  padding:5% 0;
}
#top, #left {
  color:brown;
}
#buttons {
  margin-top:1%;
  width:100%;
  display:flex;
  justify-content: space-around;
}
#buttons div {
  width:10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 70%;
}
#buttons div img{
  width:60%;
}
#stop {
  visibility: hidden;
}
#buttons #fast {
  display: none;
}
#kb {
  padding:.5%;
  background-color: lightyellow;
  border:4px groove peru;
  border-radius: 5%;
  width:25%; height:40%;
  xgrid-template-columns: repeat(3, 1fr);
  xgrid-template-rows: repeat(4, 1fr);
  display:none;
  flex-direction: column;
}
#instr {
  font-size: 60%;
  font-style: italic;
  color:blue;
}
#inp, #instr {
  width:100%;
  text-align: center;
  display:none;
}
.row {
  display:flex;
  justify-content: space-evenly;
}
.key {
  width:25%;
  border:4px groove peachpuff;
  border-radius: 10%;
  background-color:ivory;
  display:flex;
  justify-content: center;
  font-size: 120%;
  margin: 2% 0;
}
#help {
  width:100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-top: .5%
}
#help1 {
  text-align: center;
}
#help2 {
  display: flex;
}
pre {
  margin:0;
  padding:0;
  font-size:70%;
}
@media (orientation:portrait) {
  #panel1 {
    flex-direction: column;
  }
  #simcom {
    width:100%;
  }
  #kb {
    margin-top:2%;
  }
  #help1 {
    text-align: left;
  }
  #help2 {
    flex-direction: column;
  }
  pre {
    font-size: 84%;
  }
}
