/* Custom styles for Trust Game experiment */

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

#experiment-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    min-height: 500px;
}

#content {
    max-width: 100%;
}

h1, h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

h2 {
    font-size: 2em;
    margin-bottom: 25px;
}

.trust-scenario {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.monetary-display {
    font-size: 28px;
    font-weight: bold;
    color: #27ae60;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #d5f4e6;
    border-radius: 8px;
}

.btn {
    background-color: #3498db;
    border: none;
    color: white;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    text-decoration: none;
}

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

.btn:active {
    background-color: #21618c;
}

.btn-group {
    text-align: center;
    margin: 30px 0;
}

.results-display {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border: 2px solid #e9ecef;
}

.participant-info {
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.instructions {
    text-align: left;
    margin: 20px 0;
}

.instructions ul {
    padding-left: 20px;
}

.instructions li {
    margin: 10px 0;
}

.form-group {
    margin: 20px 0;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.progress {
    background-color: #ecf0f1;
    border-radius: 10px;
    padding: 3px;
    margin: 20px 0;
}

.progress-bar {
    background-color: #3498db;
    height: 20px;
    border-radius: 8px;
    transition: width 0.3s ease;
}

.hidden {
    display: none;
}

.navigation {
    text-align: center;
    margin: 30px 0;
}

.error {
    color: #e74c3c;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

.success {
    color: #27ae60;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

.success-message {
    background-color: #d5f4e6;
    color: #27ae60;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #27ae60;
    margin: 20px 0;
}

.warning-message {
    background-color: #fcf8e3;
    color: #8a6d3b;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #f0ad4e;
    margin: 20px 0;
}

.error-message {
    background-color: #f2dede;
    color: #a94442;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #d9534f;
    margin: 20px 0;
}

.data-copy-area {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.data-copy-area textarea {
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
}

.manual-submission-instructions {
    background-color: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin: 15px 0;
}

.manual-submission-instructions h4 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.submission-steps {
    margin: 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
    padding: 12px;
    background-color: #fffbf0;
    border-radius: 6px;
    border: 1px solid #ffd60a;
}

.step-number {
    background-color: #ffc107;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    color: #856404;
}

.step-content strong {
    display: block;
    margin-bottom: 4px;
    color: #664d03;
}

.step-content small {
    color: #6f5c00;
    font-style: italic;
}

.filename {
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d63384;
    border: 1px solid #dee2e6;
    cursor: pointer;
    display: inline-block;
    margin: 4px 0;
}

.filename:hover {
    background-color: #e9ecef;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background-color: #007bff;
    color: white;
}

.btn-sm:hover {
    background-color: #0056b3;
}

.manual-submission-instructions ol {
    margin: 0;
    padding-left: 20px;
    color: #856404;
}

.manual-submission-instructions li {
    margin: 8px 0;
}

.manual-submission-instructions code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

/* OSF DataPipe specific styles */
.osf-backup-instructions {
    background-color: #d1ecf1;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
    margin: 15px 0;
}

.osf-backup-instructions h4 {
    color: #0c5460;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.osf-backup-instructions .step {
    background-color: #f0f9fa;
    border: 1px solid #b8dadf;
}

.osf-backup-instructions .step-number {
    background-color: #17a2b8;
    color: white;
}

.osf-backup-instructions .step-content {
    color: #0c5460;
}

.osf-backup-instructions .step-content strong {
    color: #083c42;
}

.osf-details {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin: 10px 0;
}

.osf-details p {
    margin: 8px 0;
    color: #495057;
}

.osf-details code {
    background-color: #e9ecef;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #6f42c1;
    font-weight: bold;
}

.osf-details small {
    color: #6c757d;
    font-style: italic;
}

/* Success message improvements */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin: 20px 0;
}

.success-message p {
    margin: 10px 0;
}

.success-message strong {
    color: #0f4419;
}