body {
  background: #1a1a1a;
  color: white;
  font-family: "Overpass", monospace;
  display: grid;
  place-items: center;
  margin: 0;
  height: 95vh;
}

.wrapper {
  text-align: center;
}

h1.title {
  font-weight: 400;
}

a.github {
  color: #ffd54f;
  font-size: 108%;
  line-height: 3em;
}

.resizable {
  resize: both;
  overflow: hidden;
  margin: 2em auto;
  width: min(80vw, 640px);
  height: 260px;
}

/* top of console window */
.console {
  position: relative;
  border-radius: 2px 2px 0 0;
  border-top: 2em solid #2a2a2a;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  width: 100%;
  height: calc(100% - 32px);
}

/* window control "buttons" */
.console:before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  position: absolute;
  top: -1.25em;
  right: 5.5em;
  border-radius: 50%;
  box-shadow: 1.5em 0 0 2px #ffd54f, 3em 0 0 2px #81c784,
    4.5em 0 0 2px #e57373;
}

.console:after {
  content: attr(aria-label);
  position: absolute;
  top: -1.65em;
  left: 1em;
  font-size: 92%;
}

.console > * {
  display: block;
}

input.tab {
  display: none;
}

input.tab + label:before {
  content: attr(aria-label);
  color: white;
  font-family: inherit;
  line-height: 2.5em;
  padding-right: 1em;
  position: absolute;
  top: -2.25em;
  left: 0.4em;
  width: 5em;
  height: 0em;
  border-bottom: 3em solid #222222;
  border-radius: 8px;
  z-index: 1;
  cursor: pointer;
  font-size: 83%;
  transition: 0.2s ease-in-out;
}

input.tab:nth-of-type(2) + label:before {
  position: absolute;
  left: 6.2em;
}

input.tab:checked + label:before {
  border-bottom: 3em solid black;
  z-index: 2;
}

input.tab:not(:checked) + label:hover:before {
  border-bottom: 3em solid #1a1a1a;
}

iframe {
  width: 100%;
  border: none;
  margin: 0;
  background: black;
  height: 100%;
  z-index: 99;
  position: relative;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 800px;
  margin: 1em auto 1em auto;
  padding: 1em;
}

button {
  border-radius: 6px;
  border: none;
  width: 1.8em;
  height: 1.8em;
  margin: 0.25em;
  font-family: monospace;
  font-size: 1.5em;
  cursor: pointer;
  background: #1a1a1a;
  transition: 0.2s ease-in-out;
  color: #ffd54f;
  outline: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

button.active,
button:hover {
  background: #2a2a2a;
}

/* tooltips */

/* bubble */
.buttons button:before {
  content: attr(aria-label);
  height: auto;
  width: auto;
  position: absolute;
  background: #4a4a4afa;
  border-radius: 4px;
  color: white;
  line-height: 30px;
  font-size: 0.8em;
  padding: 0 8px;
  transform: translate(0, -38px);
  transition: all 0.2s ease-out;
  pointer-events: none;
  opacity: 0;
}

/* triangle */
.buttons button:after {
  content: "";
  position: absolute;
  border-style: solid;
  border-color: #4a4a4afa transparent transparent transparent;
  transform: translate(0, -20px);
  transition: all 0.2s ease-out;
  pointer-events: none;
  opacity: 0;
}

.buttons button:hover:before,
.buttons button:hover:after {
  opacity: 1;
}
