/* Custom styling for budget allocation experiment */

.jspsych-content {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
}

/* Briefing styles */
.briefing-container {
    background: #ffffff;
    border: 2px solid #2c3e50;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    line-height: 1.8;
}

.briefing-header {
    background: #2c3e50;
    color: white;
    padding: 15px;
    margin: -30px -30px 20px -30px;
    border-radius: 6px 6px 0 0;
    font-size: 18px;
    font-weight: bold;
}

.briefing-source {
    color: #7f8c8d;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 15px;
}

.briefing-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px;
    margin: 15px 0;
    font-size: 14px;
}

/* Budget allocation slider styles */
.budget-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

.slider-row {
    margin: 25px 0;
    padding: 20px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slider-label {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
}

.slider-value {
    color: #3498db;
    font-size: 24px;
    font-weight: bold;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    margin: 15px 0;
}

input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
}

#total-display {
    font-size: 22px;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background: white;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
}

#total-display.valid {
    border-color: #27ae60;
    background: #d4edda;
}

#total-display.invalid {
    border-color: #e74c3c;
    background: #f8d7da;
}

/* Consequence screen styles */
.consequence-container {
    background: #fff3e0;
    border: 2px solid #ff9800;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
}

.consequence-header {
    font-size: 20px;
    font-weight: bold;
    color: #e65100;
    margin-bottom: 15px;
}

.projection-item {
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
}

/* Survey question styling */
.jspsych-survey-likert-statement {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.jspsych-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
}

.jspsych-btn:hover {
    background: #2980b9;
}

.jspsych-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}