/*
 * The two speed sliders in the settings panel.
 *
 * js/three/settings-panel.js builds the rows and js/ship-speed.js owns the
 * numbers. White on dark throughout, one flat fill colour, no gradient and no
 * coloured border.
 *
 * docs/notes/css/ship-speed.css.md
 */

.pp-speed-row {
    margin-bottom: 14px;
}

.pp-speed-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.pp-speed-name {
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
}

/* The figure, which is the whole point of a slider you cannot read off. */
.pp-speed-value {
    color: rgba(255, 255, 255, 0.62);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.pp-speed-slider {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 18px;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

.pp-speed-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 2px;
}

.pp-speed-slider::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 2px;
}

.pp-speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -5px;
    background: #66a3d1;
    border: none;
    border-radius: 50%;
}

.pp-speed-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #66a3d1;
    border: none;
    border-radius: 50%;
}

.pp-speed-slider:focus {
    outline: none;
}

.pp-speed-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(102, 163, 209, 0.28);
}

/* What the two ends are worth, so the travel is readable before it is used. */
.pp-speed-ends {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.38);
    font-family: Arial, sans-serif;
    font-size: 10px;
}

.pp-speed-reset {
    margin-top: 2px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-family: Arial, sans-serif;
    font-size: 12px;
    cursor: pointer;
}

.pp-speed-reset:hover {
    background: rgba(255, 255, 255, 0.12);
}
