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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 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: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 75%;
    width: 100%;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.screen.active {
    display: block;
}

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

h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5em;
    text-align: center;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
}

p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.byline {
    font-size: 0.9em;
    color: #888;
    margin-top: -10px;
    margin-bottom: 30px;
    font-style: italic;
    text-align: center;
}

.input-group {
    margin: 30px 0;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 1.1em;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s;
    background: white;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
}

.test-link {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

.copy-link-text {
    color: #667eea;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s;
}

.copy-link-text:hover {
    color: #764ba2;
}

.color-boxes {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
    justify-content: space-between;
}

.color-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    flex: 1;
    min-width: 0;
}

.color-box:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.color-box.selected {
    border-color: #333;
    border-width: 3px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.color-box-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.red-color {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.blue-color {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.yellow-color {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.green-color {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.color-box-label {
    font-weight: 600;
    font-size: 0.9em;
    color: #333;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.question-container {
    text-align: center;
}

#question-number {
    color: #667eea;
    font-size: 1.2em;
    margin-bottom: 10px;
}

#question-text {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 30px;
    font-weight: 500;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-size: 1.1em;
}

.option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(5px);
}

.option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.color-result {
    text-align: center;
    margin-bottom: 40px;
}

.color-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

#color-title {
    font-size: 2em;
    margin-bottom: 10px;
}

#color-description {
    font-size: 1.1em;
    color: #666;
}

.script-container {
    margin-top: 30px;
}

.script-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    line-height: 1.8;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 20px;
    text-align: left !important;
}

.script-content * {
    text-align: left !important;
}

.script-content p,
.script-content h2,
.script-content h3,
.script-content h1,
.script-content div,
.script-content span,
.script-content a,
.script-content em,
.script-content strong,
.script-content button,
.script-content [dir="ltr"] {
    text-align: left !important;
}

.script-content.color-red {
    border-left-color: #ff6b6b;
}

.script-content.color-blue {
    border-left-color: #4a90e2;
}

.script-content.color-yellow {
    border-left-color: #ffd700;
}

.script-content.color-green {
    border-left-color: #2ecc71;
}

.script-content a {
    color: #667eea;
    text-decoration: underline;
    font-weight: 600;
}

.script-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.section-header {
    color: #999;
    font-weight: bold;
    font-style: italic;
    font-size: 1.5em;
}

/* Accordion Styles */
.accordion {
    margin: 15px 0;
}

.accordion-toggle {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    transition: background 0.3s;
}

.accordion-toggle:hover {
    background: #764ba2;
}

.accordion-toggle:after {
    content: ' ▼';
    float: right;
    transition: transform 0.3s;
}

.accordion-toggle.active:after {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 15px 20px;
    background: #f0f0f0;
    border-radius: 0 0 5px 5px;
    margin-top: -5px;
}

.accordion-content.active {
    display: block;
}

.play-video-link {
    color: #667eea;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.play-video-link:hover {
    color: #764ba2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-top: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Color-specific styles */
.color-red .color-circle {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.color-blue .color-circle {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.color-yellow .color-circle {
    background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
}

.color-green .color-circle {
    background: linear-gradient(135deg, #48d1cc 0%, #20b2aa 100%);
}

.color-red #color-title {
    color: #ff6b6b;
}

.color-blue #color-title {
    color: #4ecdc4;
}

.color-yellow #color-title {
    color: #feca57;
}

.color-green #color-title {
    color: #48d1cc;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
        max-width: 95%;
    }
    
    h1 {
        font-size: 2em;
    }
    
    #question-text {
        font-size: 1.1em;
    }
}

