* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 600px;
    width: 100%;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

h2 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.ethics-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.ethics-content ul {
    margin: 15px 0;
    padding-left: 25px;
    color: #666;
    line-height: 1.8;
}

.ethics-content li {
    margin-bottom: 8px;
}

.ethics-content a {
    color: #667eea;
    text-decoration: none;
}

.ethics-content a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

#trial-info {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

#stimulus-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin-bottom: 30px;
    position: relative;
}

#fixation-cross {
    position: absolute;
    font-size: 48px;
    color: #333;
    font-weight: bold;
    user-select: none;
    z-index: 10;
}

#stimulus-image {
    max-width: 100%;
    max-height: 300px;
    opacity: 0;
    transition: opacity 0.1s;
    position: relative;
    z-index: 5;
}

#stimulus-image.show {
    opacity: 1;
}

#answer-button-container {
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 10;
}

#answer-btn {
    width: auto;
    max-width: none;
    min-width: 100px;
}

#response-container {
    text-align: center;
}

#response-container p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.button-group {
    display: flex;
    gap: 100px;
    justify-content: center;
}

.response-btn {
    width: 130px;
    flex: none;
}

.hidden {
    display: none !important;
}

#results-summary {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

#results-summary p {
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

/* Questionnaire Styles */
.question-scale {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.question-scale span {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

.question-group {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.question-text {
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.5;
}

.radio-group-horizontal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group-horizontal label {
    font-weight: normal;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
}

.radio-group-horizontal label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.radio-group-horizontal input[type="radio"] {
    margin-right: 5px;
    cursor: pointer;
}

.radio-group-horizontal input[type="radio"]:checked + label,
.radio-group-horizontal label:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea22 0%, #764ba222 100%);
    font-weight: bold;
}

#questionnaire-screen {
    max-height: 80vh;
    overflow-y: auto;
}

#questionnaire-form {
    padding-right: 10px;
}
