
body {
    font-family: sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 20px;
  }

  .back-button {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #000000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: white;
}

.back-button:hover {
  background-color: #aaa;
}

  
  /* This wrapper keeps everything nicely aligned */
  .wrapper {
    width: 640px;
    margin: 0 auto;
    text-align: center;
  }
  
  h1 {
    margin-bottom: 20px;
  }
  
  #inputs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  #inputs label {
    font-size: 1.2em;
  }
  
  #inputs input {
    width: 60px;
    text-align: center;
    margin-left: 5px;
  }
  
  #counters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 1.5em;
  }
  
  .icon {
    width: 40px;
    height: 40px;
  }
  
  canvas {
    width: 600px;
    height: 400px;
    border: 2px solid black;
    background-color: white;
  }
  
  
  

  .selector-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    max-width: 600px;
    margin: 0 auto 20px auto;
  }
  
  .selector-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .selector-row select {
    font-size: 1em;
    padding: 5px;
  }
  
  .selector-row img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    image-rendering: pixelated;
  }

  #inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }
  
  #inputs p {
    font-size: 1.1em;
    margin-bottom: 10px;
  }
  
  .input-row {
    margin-bottom: 10px;
  }
  
  .input-row label {
    font-size: 1.2em;
  }

  .input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .input-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    image-rendering: pixelated;
  }

  
  
  #timer-display {
    font-size: 1.2em;
    margin-bottom: 20px;
  }

  .graph-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 30px;
  }
  #controls button {
    background-color: #6366F1;  /* 👈 Choose your new base color */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    margin: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  #controls button:hover {
    background-color: #4F46E5;  /* 👈 Hover color */
    transform: translateY(-2px);
  }
  
  
  #controls button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  #controls {
    margin-top: 20px;
  }
  input:disabled {
    background-color: #e5e7eb;
    cursor: not-allowed;
  }

  input[type="range"] {
    width: 100%;
  }
  .sim-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;  /* ⬅ prevents stretching/collapsing */
    gap: 60px;
    margin-bottom: 30px;
  }
  
  
  #parameters {
    width: 250px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .parameter-group {
    margin-bottom: 20px;
  }
  
  .parameter-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  input[type="range"] {
    width: 100%;
  }
  