/* styles.css */
@font-face {
  font-family: Monocraft;
  src: url("./Monocraft-mzse7b67.ttf") format(truetype);
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html, body {
  color: #fff;
  overflow: hidden;
  display: flex;
  background: #000;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Monocraft, monospace;
}

#terminal {
  aspect-ratio: 4 / 3;
  background-color: #000;
  flex-shrink: 1;
  max-width: 90vw;
}

#buttons {
  display: none;
}

@media (max-width: 768px), (pointer: coarse) {
  #buttons {
    display: flex;
    background: #000000e6;
    gap: 20px;
    padding: 10px;
  }

  #terminal {
    max-height: 50vh;
  }
}

.button-column, .dpad-row, .button-grid-row {
  display: flex;
  gap: 8px;
}

.button-column {
  flex-direction: column;
}

.dpad-row:first-child {
  padding-left: 78px;
}

.virtual-btn {
  color: #fff;
  background: #222;
  border: 2px solid #666;
  width: 70px;
  height: 70px;
  font-family: Monocraft, monospace;
  font-size: 12px;
}

.virtual-btn:active, .virtual-btn.active {
  background: #444;
  border-color: #aaa;
}

.arrow-btn {
  font-size: 24px;
}
