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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.image-wrapper {
    position: relative;
    animation: fadeInUp 1.5s ease-out;
}

.portrait-image {
    max-width: 70vh;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    filter: grayscale(20%) contrast(1.1);
    transition: transform 0.3s ease;
}

.portrait-image:hover {
    transform: scale(1.02);
}

#questions-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.question {
    position: absolute;
    font-size: 1.32rem;
    font-weight: 300;
    white-space: normal;
    pointer-events: none;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 90vw;
    max-height: 90vh;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8),
                 0 0 4px rgba(0, 0, 0, 0.6),
                 -1px -1px 4px rgba(0, 0, 0, 0.6),
                 1px -1px 4px rgba(0, 0, 0, 0.6),
                 -1px 1px 4px rgba(0, 0, 0, 0.6);
}

.question.visible {
    animation: breatheIn 1.5s ease-out forwards, breathe 6s ease-in-out 1.5s infinite;
}

.question.fade-out {
    animation: breatheOut 1.5s ease-in forwards;
}

.question {
    color: rgba(255, 255, 255, 0.95);
}

@keyframes breatheIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes breathe {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    40% {
        transform: translate(-50%, -50%) scale(1.03);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.03);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes breatheOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 768px) {
    .portrait-image {
        max-width: 85vw;
        max-height: 80vh;
    }
    
    .question {
        font-size: 1.1rem;
        max-width: 95vw;
    }
}