/*
 * The top area contains our heading and intro text.
 */

#topArea {
  margin: 0 auto;
  max-width: 700px;
}

#topArea > h1 {
  margin-top: 0;
}

/*
 * The simulationm area contains our simulation and controls. It needs to
 * contain the remaining window space.
 */

#simulationArea {
  position: relative;
  text-align: center;
  overflow: hidden;
  background-color: black;
  border: solid 1px #CCCCCC;
}

#runButtons {
  display: flex;
  flex-direction: row;
  margin: 15px 0 0 0;
}

#runButtons > * {
  flex: 1 1;
}

#script {
  display: flex;
  flex-direction: column;
  width: 100%;
}

canvas {
  margin: 0 auto;
}

textarea {
  display: block;
}

#buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;

  flex-grow: 0;
  flex-shrink: 0;
}

button {
  flex-grow: 0;
  flex-shrink: 0;
  margin: 0 10px  0 10px;
  width: 5em;
}
