body {
    font-family: sans-serif;
    text-align: center;
    background: #f0f8ff;
    margin: 20px;
  }
  
  /* Main track */
  #track {
    position: relative;
    width: 800px; /* 100 m represented as 800px (8px per meter) */
    height: 150px;
    margin: 20px auto;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
  }
  
  /* Markers for distances */
  #markers {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
  }
  .marker {
    position: absolute;
    font-size: 12px;
    color: black;
    transform: translateX(-50%);
  }
  
  /* Start line at the left (0 m) */
  #startLine {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-left: 2px dotted black;
  }
  
  /* Finish line at the right (100 m) */
  #finishLine {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border-right: 2px dotted black;
  }
  
  /* Runner emojis */
  .runner {
    position: absolute;
    font-size: 3rem;
    bottom: 0;
    z-index: 1;
    /* Runners face right (no flip) */
  }
  
  /* Controls styling */
  #controls {
    margin: 20px auto;
  }
  input {
    width: 250px;
    margin: 5px;
  }
  
  /* Legend styles */
  #legend {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 50px;
  }
  .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .legend-runner {
    font-size: 2rem;
  }
  
  /* Results panel on the right side */
  #results {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 200px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
  }
  #results h2 {
    margin-top: 0;
    font-size: 1.2em;
    text-align: center;
  }
  #resultsList {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  /* Make the most recent (first) result bigger */
  #resultsList li:first-child {
    font-size: 1.5em;
    font-weight: bold;
  }
  