body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.container h1 {
    text-align: center;
    color: #333;
}

.note {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.nomograph {
    margin: 20px 0;
    text-align: center;
}

canvas {
    max-width: 100%;
    border: 1px solid #ddd;
}

.nomograph-control {
    text-align: center;
    margin-bottom: 20px;
}

.nomograph-control label {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.nomograph-control input[type="range"] {
    width: 300px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 150px;
}

.input-group label {
    font-weight: bold;
    color: #333;
    text-align: center;
    white-space: nowrap; /* Prevent label wrapping */
}

.input-group input[type="range"],
.input-group input[type="number"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-group input[readonly] {
    background-color: #e9ecef; /* Greyed-out background for read-only */
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}