/* QuestionDisplay.css - Pure text background styling */
/* Creates floating text elements without containers */

.question-pure-text {
    position: absolute;
    max-width: 100vw;
    min-width: 20vw;
    padding: 0;
    background: none;
    
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    user-select: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    font-weight: 200;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    word-wrap: break-word;
    hyphens: auto;
}

/* Positioning - Pure text backdrop positioning */
.question-pure-text.top-right {
    top: 10%;
    right: 6%;
    text-align: right;
}

.question-pure-text.bottom-left {
    bottom: 12%;
    left: 6%;
    text-align: left;
}

/* Typing animation wrapper */
.typing-wrapper {
    display: inline;
    position: relative;
}

/* Revealed text (visible) */
.revealed-text {
    color: rgba(255, 255, 255, 0.6);
}

/* Hidden text (invisible) */
.hidden-text {
    color: transparent;
}

/* Moving typing cursor */
.typing-cursor {
    color: rgba(0, 204, 255, 0.9);
    font-weight: 200;
    animation: blink 1.2s infinite;
    margin: 0 1px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .question-pure-text {
        font-size: 18px;
    }
    
    .question-pure-text.top-right {
        top: 8%;
        right: 4%;
    }
    
    .question-pure-text.bottom-left {
        bottom: 8%;
        left: 4%;
    }
}

@media (max-width: 480px) {
    .question-pure-text {
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.3px;
    }
    
    .question-pure-text.top-right {
        top: 6%;
        right: 3%;
    }
    
    .question-pure-text.bottom-left {
        bottom: 6%;
        left: 3%;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .question-pure-text {
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
        font-weight: 400;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .question-pure-text {
        transition: opacity 0.3s ease;
    }
    
    .question-pure-text::after {
        animation: none;
        opacity: 1;
    }
}

/* Dark theme compatibility */
@media (prefers-color-scheme: dark) {
    .question-pure-text {
        color: rgba(255, 255, 255, 0.7);
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    }
}

/* Print styles - hide question displays */
@media print {
    .question-pure-text {
        display: none !important;
    }
}

/* Special styling for fallback/motivational content */
.question-pure-text.fallback {
    color: rgba(255, 215, 0, 0.8);
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}