body {
  margin: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

#controls {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  z-index: 100;
  display: flex;
  gap: 10px;
  align-items: center;
}
/* Add these new styles */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  height: 40px;
  width: auto;
}

.p5-logo {
  height: 30px;
  width: auto;
}

#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  z-index: 100;
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  width: 100%;
  font-size: 12px;
}

#save-btn {
  margin-left: auto;
  background: #4CAF50;
}

button {
  background: #444;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

button:hover {
  background: #666;
}

canvas {
  display: block;
  margin-top: 50px;
  margin-bottom: 50px;
  image-rendering: pixelated;
}

/* UI Structure */
#controls {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.9);
  padding: 10px;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

/* Buttons */
.control-btn, .mode-btn, .save-btn {
  background: #333;
  color: white;
  border: none;
  padding: 8px 12px;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.control-btn:hover, .mode-btn:hover {
  background: #555;
}

/* p5.js logo */
.p5-logo {
  height: 30px;
  width: auto;
}

/* Footer */
#footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.9);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.speed-slider {
  width: 150px;
}
