body {
  margin: 0;
  padding: 20px 0;
  background-color: #222;
  color: #eee;
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-y: auto;
}

#canvas-container {
  width: 700px; 
  height: 520px;
  background-color: #111;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: #333;
  padding: 20px;
  border-radius: 8px;
  width: 800px;
  box-sizing: border-box;
  border: 1px solid #444;
  flex-shrink: 0;
}

.control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.button-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

label {
  font-size: 12px;
  margin-bottom: 8px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button {
  background: #eee;
  color: #333;
  border: none;
  padding: 10px 0; /* Adjusted padding for fit */
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  width: 100%;
  text-transform: uppercase;
  font-size: 14px;
}

button:hover {
  filter: brightness(1.1);
}

button:active {
  transform: translateY(1px);
}

button.active {
  background: #ff4d4d !important;
  color: white !important;
}

/* Specific Button Colors */
#btn-toggle { background-color: #eee; }
#btn-clear { background-color: #555; color: white; }

#btn-random { 
  background-color: #0070dd; 
  color: white; 
}

#btn-arp { 
  background-color: #444; 
  color: #fff; 
  border: 1px solid #666;
}

#btn-arp.active-arp {
  background-color: #ff9900 !important;
  color: white !important;
  border-color: #ff9900;
  box-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
}

input[type=range] {
  width: 100%;
  accent-color: #0070dd;
  cursor: pointer;
  margin: 5px 0;
}