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

body {
  background: #000;
  color: #0f0;
  font-family: "Courier New", monospace;
  overflow: hidden;
}

#simulator-canvas {
  display: block;
  width: 100%;
  height: 100vh;
  background: #000;
}

.controls-panel {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #0f0;
  padding: 20px;
  z-index: 1000;
  max-width: 300px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.home-button {
  display: inline-block;
  background: rgba(0, 0, 0, 0.8);
  color: #0f0;
  border: 2px solid #0f0;
  padding: 10px 20px;
  text-decoration: none;
  margin-bottom: 20px;
  text-align: center;
  transition: all 0.3s;
  width: 100%;
}

.home-button:hover {
  background: rgba(0, 255, 0, 0.1);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.control-section {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #0f0;
  font-size: 0.9rem;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

select,
input[type="range"] {
  width: 100%;
  background: #000;
  color: #0f0;
  border: 1px solid #0f0;
  padding: 5px;
  font-family: "Courier New", monospace;
}

input[type="range"] {
  cursor: pointer;
}

.action-button {
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: #0f0;
  border: 2px solid #0f0;
  padding: 10px;
  margin-top: 10px;
  cursor: pointer;
  font-family: "Courier New", monospace;
  transition: all 0.3s;
}

.action-button:hover {
  background: rgba(0, 255, 0, 0.1);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

@media (max-width: 768px) {
  .controls-panel {
    max-width: 250px;
    padding: 15px;
    font-size: 0.85rem;
  }

  .home-button {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .control-section {
    margin-bottom: 12px;
  }

  label {
    font-size: 0.8rem;
  }

  .action-button {
    padding: 8px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .controls-panel {
    max-width: 200px;
    padding: 10px;
    font-size: 0.75rem;
    top: 10px;
    left: 10px;
  }

  .controls-panel.minimized {
    max-width: 50px;
    padding: 10px;
  }

  .controls-panel.minimized .control-section,
  .controls-panel.minimized .action-button,
  .controls-panel.minimized .home-button {
    display: none;
  }

  .controls-panel.minimized .toggle-controls {
    display: block;
  }

  .home-button {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  label {
    font-size: 0.7rem;
  }

  .action-button {
    padding: 6px;
    font-size: 0.75rem;
    margin-top: 8px;
  }
}

.toggle-controls {
  background: rgba(0, 0, 0, 0.8);
  color: #0f0;
  border: 2px solid #0f0;
  padding: 10px;
  cursor: pointer;
  font-family: "Courier New", monospace;
  transition: all 0.3s;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.toggle-controls:hover {
  background: rgba(0, 255, 0, 0.1);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}
