.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 3.4fr 0.8fr 0.8fr 0.8fr;
  gap: 25px 25px;
  grid-template-areas:
    "Code Call-stack WEB-APIs"
    "Console Event-Loop Event-Loop"
    "Console Micro-tasks Micro-tasks"
    "Console Task-Queue Task-Queue";
}
.Call-stack {
  grid-area: Call-stack;
}
.WEB-APIs {
  grid-area: WEB-APIs;
}
.Event-Loop {
  grid-area: Event-Loop;
  display: grid;
  place-items: center;
}
.Micro-tasks {
  grid-area: Micro-tasks;
}
.Task-Queue {
  grid-area: Task-Queue;
}
.Console {
  grid-area: Console;
}
.Code {
  grid-area: Code;
}

.Call-stack,
.Web-APIs,
.Task-Queue,
.Code,
.Micro-tasks,
.Console {
  background-color: #282c34;
  border-radius: 10px;
}

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

.Micro-tasks {
  border: solid 2px #e5c07b;
  display: flex;
  flex-direction: row-reverse;
}

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

.Task-Queue {
  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;
}

.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;
}

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

.micro > 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;
}
