* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#study-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 850px;
    padding: 40px;
}

/* Participant form styling */
#participant-form {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin: 20px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

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

#start-study {
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

#start-study:hover {
    background-color: #3367d6;
}

#participant-info, #participant-info-instructions {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 6px;
    padding: 8px 12px;
    background-color: #f8f8f8;
    border-radius: 5px;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

#section-number {
    font-size: 1.3rem;
    margin: 0 auto 6px;
    padding: 5px 12px;
    display: block;
    text-align: center;
    font-weight: bold;
    color: #4285f4;
    background-color: #f0f7ff;
    border-radius: 6px;
    width: fit-content;
}

#section-label {
    font-size: 1.8rem;
    margin: 5px auto;
    padding: 5px;
    display: block;
    text-align: center;
}

/* Instructions screen styling */
.instructions-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}

.instruction-section {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4285f4;
}

.instruction-section h3 {
    color: #4285f4;
    margin-top: 0;
    margin-bottom: 15px;
}

.instruction-section p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.instruction-section ul, .instruction-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.instruction-section li {
    margin-bottom: 8px;
    line-height: 1.4;
}

#start-trials-button {
    background-color: #34a853;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

#start-trials-button:hover {
    background-color: #2d9448;
}

#header {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

#back-button {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 8px 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

#back-button:hover {
    background-color: #e0e0e0;
    color: #333;
}

#section-indicator {
    font-size: 1.2rem;
    color: #555;
    margin-top: 10px;
    padding: 5px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

#audio-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 35px 0;
}

#play-button {
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

#play-button:hover {
    background-color: #3367d6;
}

#play-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#audio-name {
    font-size: 0.9rem;
    color: #777;
}

#options-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.option-button {
    background-color: #f8f8f8;
    border: 3px solid #ddd;
    border-radius: 12px;
    padding: 25px 20px;
    width: 45%;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.option-button:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}

.option-button.selected {
    background-color: #e6f4ea;
    border-color: #34a853;
    border-width: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.word-display {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.emoji {
    font-size: 2.5rem;
}

/* Guided exposure styling */
#guided-exposure {
    margin: 15px 0 30px;
    text-align: center;
    background-color: #f8f9ff;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e0e4f5;
}

#guided-exposure h3 {
    margin-bottom: 20px;
    color: #4285f4;
    font-size: 1.4rem;
}

.word-pair-container {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
}

.word-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 45%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid #eee;
}

.word-item.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.word-item.clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #4285f4;
}

#haptic-explanation {
    font-size: 1.1rem;
    color: #4285f4;
    margin: 15px 0;
    line-height: 1.5;
    background-color: #f0f7ff;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
}

#guided-instruction {
    font-size: 1.1rem;
    color: #666;
    margin-top: 15px;
    font-style: italic;
    font-weight: 500;
}

.word-label {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #555;
}

.word-display-large {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.emoji-large {
    font-size: 3.5rem;
    margin: 10px 0;
}

#guided-instruction {
    font-size: 1.3rem;
    color: #666;
    margin-top: 20px;
    font-style: italic;
}

.emphasis {
    font-weight: bold;
    color: #4285f4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 110%;
}

#controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#next-section {
    background-color: #34a853;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    min-width: 120px;
}

#next-section:hover {
    background-color: #2d9448;
}

#next-section:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#section-break {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#section-break h2 {
    margin-bottom: 25px;
    color: #4285f4;
    font-size: 2rem;
}

#section-break p {
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-align: center;
    max-width: 85%;
    line-height: 1.5;
}

#continue-button {
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    min-width: 160px;
}

#continue-button:hover {
    background-color: #3367d6;
}

/* Post-block questions styling */
#post-block-questions {
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#post-block-questions h3 {
    margin-bottom: 20px;
    color: #4285f4;
    text-align: center;
}

.question-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.question-text {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.rating-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.scale-label {
    font-size: 0.9rem;
    color: #666;
    width: 120px;
    text-align: center;
}

.rating-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-grow: 1;
}

.rating-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
}

.rating-btn:hover {
    background-color: #e0e0e0;
    border-color: #bbb;
}

.rating-btn.selected {
    background-color: #4285f4;
    color: white;
    border-color: #4285f4;
}

.hidden {
    display: none !important;
}

/* Progress bar styling */
#study-progress-container {
    margin-top: 30px;
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.progress-label {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
}

.progress-bar-container {
    background-color: #f0f0f0;
    height: 12px;
    width: 70%;
    border-radius: 6px;
    overflow: hidden;
}

#study-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #4285f4;
    transition: width 0.5s ease-in-out;
}

#progress-percentage {
    font-size: 0.9rem;
    color: #666;
    width: 40px;
    text-align: right;
}