/* Robot Cook N-link arm RRT demo. Pat Virtue, Carnegie Mellon University. */

body {
    font: 14px helvetica neue, helvetica, arial, sans-serif;
    color: #333;
    margin: 12px 18px;
    background: #fafafa;
}

h2 {
    margin: 4px 0 6px 0;
}

p.intro {
    max-width: 1100px;
    line-height: 1.4;
}

#controls, #controls2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 8px 0;
}

#controls2 .hint {
    color: #666;
    font-size: 12.5px;
}

label {
    white-space: nowrap;
}

select, input[type=number] {
    font: inherit;
    padding: 2px 4px;
}

input[type=number] {
    width: 70px;
}

button {
    font: inherit;
    padding: 4px 10px;
    border: 1px solid #6d6e71;
    border-radius: 4px;
    background: #e8e8e8;
    cursor: pointer;
}

button:hover {
    background: #d8d8d8;
}

button.primary {
    background: #007bc0;
    border-color: #043673;
    color: white;
}

button.primary:hover {
    background: #0068a3;
}

#status {
    display: flex;
    justify-content: space-between;
    max-width: 1370px;
    margin: 6px 0;
    font-size: 15px;
}

#stateText {
    font-weight: bold;
}

#stateText.free { color: #009647; }
#stateText.blocked { color: #c41230; }

#panels {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.panel canvas {
    background: #e0e0e0;
    border: 1px solid #bbb;
    display: block;
    max-width: 100%;
}

#stats {
    margin: 8px 0;
    color: #444;
    font-family: menlo, consolas, monospace;
    font-size: 12.5px;
    white-space: pre-wrap;
}

#notes {
    max-width: 1100px;
    line-height: 1.4;
}

#notes li {
    margin-bottom: 4px;
}

p.fine {
    color: #666;
    font-size: 12.5px;
}

code {
    font-size: 12.5px;
}
