.kbd {
    display: inline-block;
    padding: 0.15em 0.5em;
    border: 1px solid #555;
    border-radius: 4px;
    background: #f5f5f5;
    font-family: monospace;
    box-shadow: 0 2px 0 #aaa;
}

.btn-inline {
    display: inline-block;
    padding: 2px 6px;
    border: 1px solid #333;
    border-radius: 3px;
    font-weight: 500;
    font-size: 14px;
    background: #f5f5f5;
}


/* Base style shared by all number boxes */
.num-box {
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Demo number boxes (RNG demo, inline) */
.demo-num-box {
    width: 40px;
    height: 50px;
    position: static;
}

/* Robot number boxes (overlayed on image) */
.robot-num-box {
    font-family: "Orbitron", "Courier New", monospace;
    letter-spacing: 1.5px;
    font-weight: 600;
    width: 40px;
    height: 50px;
    position: absolute;
}

.gen-btn {
    width: 60px;
    height: 60px;
    background-color: #666;
    /* darker grey */
    border: none;
    border-radius: 50%;
    box-shadow:
        0 6px 0 #444,
        /* strong bottom edge */
        0 10px 14px rgba(0, 0, 0, 0.35);
    /* deeper shadow */

    cursor: pointer;
    transition:
        transform 0.1s ease,
        box-shadow 0.1s ease,
        background-color 0.1s ease;
}

.gen-btn:hover {
    background-color: #707070;
    /* slight lift on hover */
}

.gen-btn:active {
    transform: translateY(6px);
    box-shadow:
        0 2px 0 #444,
        0 4px 6px rgba(0, 0, 0, 0.3);
}

.robot-container {
    position: relative;
    width: 300px;
    margin: 20px auto;
}

.robot-container img {
    width: 100%;
    display: block;
}

.robot-container .robot-num-box {
    position: absolute;
}

/* robot torso panel positions */
.robot-container #box1 {
    top: 225px;
    left: 83px;
}

.robot-container #box2 {
    top: 225px;
    left: 130px;
}

.robot-container #box3 {
    top: 225px;
    left: 177px;
}

.robot-input {
    width: 120%;
    height: 120%;
    border: none;
    text-align: center;
    font-family: "Orbitron", sans-serif;
    font-size: 16px;
    background: transparent;
    outline: none;
    transform: translateY(-18px);
}

/* Container for each question */
.slider-question {
    margin: 30px auto;
    max-width: 700px;
    text-align: center;
}

/* The slider itself */
.confidence-slider {
    width: 100%;
    margin: 10px 0;
}

/* Label row under the slider */
.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #444;
    margin-top: 4px;
}

/* Inactive slider: hide thumb and mute track */
.confidence-slider.inactive {
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 120ms ease, box-shadow 120ms ease;
}

/* hover highlight (does NOT color the track or show thumb) */
.confidence-slider.inactive:hover {
    opacity: 0.6;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18);
    border-radius: 999px;
}

/* Hide the thumb initially */
.confidence-slider.inactive::-webkit-slider-thumb {
    opacity: 0;
}

.confidence-slider.inactive+.slider-value {
    opacity: 0;
}

.confidence-slider.inactive::-moz-range-thumb {
    opacity: 0;
}

.confidence-slider.inactive::-webkit-slider-runnable-track {
    background-color: #ccc;
}

.slider-container {
    position: relative;
    width: 100%;
}

.slider-value {
    position: absolute;
    top: -15px;
    transform: translateX(-50%);
    font-size: 14px;
    color: #000;
    pointer-events: none;
}


.jspsych-survey-likert-opts {
    border: none !important;
}

.narrow-likert .jspsych-survey-likert-opts {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.large-likert .jspsych-survey-likert-statement {
    font-size: 18px;
}

.jspsych-survey {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}