canvas {
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -o-crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
  }

  body {
    background-color: #121212; /* Dark gray instead of pure black */
    color: #e0e0e0; /* Soft white text for better readability */
    font-family: 'FreeMono';
    margin: 0;
    padding: 20px;
  }

  .element {
    position: relative;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    border-radius: 8px; /* Slightly rounded corners */
    margin-top: 20px;
    padding: 15px;
    background: #1e1e1e; /* Dark but not too harsh */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Soft shadow */
  }

  h1, h2, h3, h4, h5, h6, label, p {
    color: #f5f5f5; /* Softer white */
    margin-bottom: 10px;
  }

  a {
    color: #64b5f6; /* Soft blue */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
  }

  a:hover {
    color: #bbdefb; /* Lighter blue on hover */
  }

  .controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .control-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
  }

  .control-group span {
    font-weight: bold;
    margin-right: 10px;
    color: #e0e0e0;
  }

  .controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: background 0.3s;
  }

  .controls label:hover {
    background: #2a2a2a;
  }

  .controls input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #64b5f6; /* For browsers supporting accent-color */
    cursor: pointer;
  }


  #runLuaBtn {
    margin-top: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #333, #555); /* Gradient for modern look */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
  }
#runLuaBtn:disabled,
#runLuaBtn[disabled] {
      background: linear-gradient(135deg, #444, rgb(255,0,0)) !important;
}
  #runLuaBtn:hover {
    background: linear-gradient(135deg, #444, #666);
    transform: scale(1.05);
  }

  .luxemborg {
    font-family: "Micro 5", monospace;
    font-weight: bold;
  }
  @font-face {
    font-family: 'FreeMono';
    src: url('FreeMono.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }