@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #0a0a0a;
  font-family: "VT323", monospace;
  color: #e0e0e0;
}

.emulator-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  background-color: #1e1e1e; /* Cor do "console" */
  border-radius: 12px;
  border: 1px solid #333;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

canvas {
  background-color: #036145;
  box-shadow: 0 0 15px rgba(3, 97, 69, 0.5);
  border-radius: 4px;
}

.controls-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 200px;
}

h2 {
  font-size: 1.8rem;
  color: #00ff99;
  border-bottom: 2px solid #333;
  padding-bottom: 4px;
}

select,
button {
  width: 100%;
  padding: 0.75rem;
  background-color: #333;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 6px;
  font-family: "VT323", monospace;
  font-size: 1.2rem;
  outline: none;
}

button {
  cursor: pointer;
  background-color: #00ff99;
  color: #121212;
  font-weight: bold;
  border-color: #00ff99;
  transition: background-color 0.2s, transform 0.1s;
}

button:hover {
  background-color: #33ffab;
}

button:active {
  transform: scale(0.98);
}

.keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.keys span {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  background-color: #333;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 1.5rem;

  transition: all 0.1s ease;
}

.keys span.active {
  background-color: #00ff99;
  color: #1e1e1e;
  transform: scale(1.1);
  box-shadow: 0 0 10px #00ff99;
}
