.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 3.4fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr;
  gap: 25px 25px;
  grid-template-areas:
    "Code Call-stack Web-APIs"
    "Code Event-Loop Event-Loop"
    "Console Render Render"
    "Console DOM-Tasks DOM-Tasks"
    "Console UI-Tasks UI-Tasks"
    "Console Timer-Tasks Timer-Tasks";
}

.Call-stack {
  grid-area: Call-stack;
}

.Web-APIs {
  grid-area: Web-APIs;
}

.Code {
  grid-area: Code;
}

.Console {
  grid-area: Console;
}

.Event-Loop {
  grid-area: Event-Loop;
  display: grid;
  place-items: center;
}

.Render {
  grid-area: Render;
}

.DOM-Tasks {
  grid-area: DOM-Tasks;
}

.UI-Tasks {
  grid-area: UI-Tasks;
}

.Timer-Tasks {
  grid-area: Timer-Tasks;
}

.Call-stack,
.Web-APIs,
.UI-Tasks,
.Timer-Tasks,
.DOM-Tasks,
.Code,
.Render,
.Console {
  background-color: #282c34;
  border-radius: 10px;
}

.Web-APIs {
  border: solid 2px #c678dd;
}

.Render, .DOM-Tasks {
  border: solid 2px #e5c07b;
  display: flex;
  flex-direction: row-reverse;
}

.Call-stack {
  border: solid 2px #61afef;
}

.UI-Tasks, .Timer-Tasks {
  border: solid 2px #98c379;
  display: flex;
  flex-direction: row-reverse;
}

.Code {
  border: solid 2px #abb2bf;
  font-size: 40px;
}

.Console {
  border: solid 2px #e06c67;
}

.stack {
  height: 85%;
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
}

.stack > div {
  background-color: #61afef;
  margin-bottom: 15px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
}

.apis {
  height: 85%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.apis > div {
  background-color: #c678dd;
  margin-top: 15px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
}

.apis > div.inline {
  background-color: #282c34;
  display: flex;
  justify-content: center;
}

.apis > div.inline > div {
  background-color: #c678dd;
  width: 50%;
  border-radius: 10px;
  height: 89%;
}

.queue {
  height: 50%;
  width: 95%;
  margin: auto;
  display: flex;
  flex-direction: row-reverse;
}

.queue > div {
  background-color: #98c379;
  margin-right: 15px;
  width: 70px;
  height: 60px;
  border-radius: 10px;
}

.render {
  height: 50%;
  width: 95%;
  margin: auto;
  display: flex;
  flex-direction: row-reverse;
}

.render > div {
  background-color: #e5c07b;
  margin-right: 15px;
  width: 70px;
  height: 60px;
  border-radius: 10px;
}

.output {
  font-size: 32px;
  text-align: left;
  padding-left: 20px;
}

.output > p {
  margin: 0;
  color: #abb2bf;
}

.render, .queue {
  margin: 14px 0 0 0;
}
