@charset "UTF-8";

/* --- Global Settings --- */
:root {
    --bg-color: #ffffff;
    --text-main: #111;
    --text-sub: #555;
    --border: #ddd;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */
.jspsych-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.jspsych-content {
    background: #fff;
    max-width: 800px;
    width: 92%;
    padding: 60px;
    border: 1px solid var(--border);
    text-align: center;
}

/* --- Typography --- */
h1 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    display: inline-block;
}

p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-sub);
    margin-bottom: 1.5rem;
    text-align: left;
}

.text-center { text-align: center; }

/* --- Stimulus --- */
.stimulus-box {
    font-size: 8rem;
    font-weight: 500;
    font-family: "Roboto Mono", monospace;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

/* --- Instruction Diagram (Visual Aid) --- */
.diagram-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.diagram-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diagram-box {
    width: 50px;
    height: 50px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    background: #fafafa;
    color: #999;
}

.diagram-arrow {
    color: #ccc;
    margin-top: 15px;
    font-size: 1.2rem;
}

/* Highlight style for the diagram */
.diagram-target .diagram-box {
    border-color: #000;
    color: #000;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.diagram-label {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #000;
    font-weight: bold;
}

/* --- Buttons --- */
.jspsych-btn {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    padding: 12px 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    margin: 10px;
}
.jspsych-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}