.axis-fov {
    font-weight: bold;
    min-width: 48px;
    font-family: inherit;
    font-size: inherit;
}
body {
    display: flex;
    justify-content: center;
}

.controls {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-left: 10px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 10px;
}

.canvas-stack {
    width: 640px;
}

.repo-link-row {
    width: 640px;
    font-family: sans-serif;
    font-size: 13px;
    text-align: center;
}

.view-tab-row {
    display: flex;
    flex-direction: row;
    gap: 0;
    justify-content: flex-start;
    border-bottom: 1px solid #bbb;
}

.view-tab-row button {
    min-width: 130px;
    height: 30px;
    border: 1px solid #bbb;
    border-bottom: none;
    background: #ececec;
    margin-bottom: -1px;
}

.view-tab-row button.active {
    font-weight: bold;
    background: #fff;
}

.extrinsic-header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chessboard-header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.extrinsic-mode-row {
    display: flex;
    flex-direction: row;
    gap: 0;
    border-bottom: 1px solid #bbb;
}

.extrinsic-mode-row button {
    min-width: 92px;
    height: 24px;
    font-size: 12px;
    border: 1px solid #bbb;
    border-bottom: none;
    background: #ececec;
    margin-bottom: -1px;
}

.extrinsic-mode-row button.active {
    font-weight: bold;
    background: #fff;
}

.center-mode-row {
    display: flex;
    flex-direction: row;
    gap: 0;
    border-bottom: 1px solid #bbb;
}

.center-mode-row button {
    min-width: 74px;
    height: 24px;
    font-size: 12px;
    border: 1px solid #bbb;
    border-bottom: none;
    background: #ececec;
    margin-bottom: -1px;
}

.center-mode-row button.active {
    font-weight: bold;
    background: #fff;
}

.curve-axis-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 640px;
}

.hidden {
    display: none;
}

.axis-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-family: sans-serif;
    font-size: 12px;
    background: #f5f5f5;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 6px;
}

.axis-group > span {
    font-weight: bold;
    min-width: 48px;
}

.axis-group label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
}

.axis-group label.disabled-option {
    color: #b5b5b5;
    border-color: #d7d7d7;
    cursor: not-allowed;
}

.axis-group input[type="radio"] {
    margin: 0;
}

.curve-direction-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    font-family: sans-serif;
    font-size: 12px;
    background: #f5f5f5;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 6px;
}

.curve-direction-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.curve-direction-angle-col {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.curve-direction-angle-row {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.curve-direction-inputs label {
    min-width: 0;
    font-weight: bold;
}

.curve-direction-inputs input[type="text"] {
    width: 50px;
    text-align: right;
}

.curve-direction-angle-col input[type="range"] {
    width: 220px;
}

.curve-direction-pad {
    display: grid;
    grid-template-columns: repeat(3, 36px);
    gap: 4px;
}

.curve-direction-pad button {
    width: 36px;
    height: 28px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #ececec;
    font-size: 11px;
    padding: 0;
    cursor: pointer;
}

.curve-direction-pad button:active {
    background: #d9d9d9;
}

.curve-direction-pad-hole {
    width: 36px;
    height: 28px;
    border: 1px dashed #bbb;
    border-radius: 4px;
    background: transparent;
}

.curve-direction-hint {
    color: #555;
}

.curve-direction-preview-wrap {
    flex: 0 0 auto;
}

#directionCanvas {
    background-color: white;
    border: 1px solid #000;
    width: 220px;
    height: 124px;
}

.controls label {
    display: inline-block;
    width: 15px;
    font-family: monospace;
}

.controls input[type="text"] {
    width: 40px;
    text-align: right;
}

.controls input[type="range"] {
    width: 210px;
}

.controls input[type="checkbox"] {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 0px;
}

.pixel-size-row label {
    width: 44px;
}

.pixel-size-row input[type="text"] {
    width: 52px;
}

canvas {
    border: 1px solid black;
    background-color: lightgray;
}

#curveCanvas {
    background-color: white;
    border: none;
    width: 640px;
    height: 480px;
}