body {
    margin: 0;
    overflow: hidden; /* Prevent scrollbars */
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Arial', sans-serif;
}

#container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#ui {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    background: rgba(40, 40, 40, 0.85);
    padding: 20px;
    border-radius: 8px;
    max-width: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#ui h2, #ui h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #00aaff; /* Highlight color */
}

#ui hr {
    border: none;
    border-top: 1px solid #555;
    margin: 15px 0;
}

#ui label {
    display: inline-block; /* Changed to inline-block */
    margin-bottom: 5px;
    margin-right: 5px; /* Add some space */
    font-weight: bold;
    width: 80px; /* Align labels */
}

#ui select, #ui input[type="number"], #ui button {
    width: calc(100% - 95px); /* Adjust width based on label */
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #555;
    background-color: #333;
    color: #e0e0e0;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width */
}
#ui select {
     width: calc(100% - 95px); /* Ensure select takes remaining width */
}


#ui input[type="number"] {
     width: calc(100% - 145px); /* Ensure input takes remaining width */
     text-align: center;
}

#ui button {
    width: 100%; /* Button takes full width */
    background-color: #0077cc;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#ui button:hover {
    background-color: #005fa3;
}

#paramsContainer > div { /* Style parameter rows */
    margin-bottom: 10px;
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Vertically align items */
}

#metrics span {
    font-weight: bold;
    color: #ffffff;
}
#metrics small {
    display: block;
    margin-top: 15px;
    color: #aaa;
}