body {
    font-family: Arial, sans-serif;
}

h1 {
    text-align: center;
}

#rulerContainer {
    position: relative;
    width: 300px;
    margin: 40px auto;
}

#ruler {
    position: absolute;
    left: 150px; /* Centered in the container */
    width: 0;
    border-left: 2px solid black;
}

.interval {
    position: absolute;
    height: 1px;
}

/* EDO intervals */
.interval.edo {
    right: 150px; /* Start from the ruler and extend to the left */
    background-color: black;
}

/* JI intervals */
.interval.ji {
    left: 152px; /* Start from the ruler and extend to the right */
    /* Width will be set dynamically based on prime limit */
}

.label {
    position: absolute;
    font-size: 12px;
    transform: translateY(-50%);
    text-align: center;
    line-height: 1.2;
}

.label.ji, .label.edo {
    position: absolute;
    white-space: nowrap; /* Ensure the text does not wrap */
    /* Add other styles as needed */
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    box-sizing: border-box;
}

.input-group {
    display: flex;
    justify-content: space-between;
}

.input-group > div {
    flex: 1;
    margin-right: 10px;
}

.input-group > div:last-child {
    margin-right: 0;
}

.input-group input[type="number"] {
    width: calc(50% - 5px);
}