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

body {
    font-family: 'Noto Sans KR', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transition: background-image 0.5s ease-in-out;
}

body.loading {
    animation: loading 1s infinite;
}

@keyframes loading {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.container {
    width: 100%;
    max-width: 1200px;
    height: 432px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.qr-code {
    width: 240px;
    height: 240px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.qr-text {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.question-text {
    font-size: 4rem;
    color: #333;
    text-align: center;
    line-height: 1.2;
    padding: 20px;
    max-width: 90%;
    margin: 0 auto;
    word-break: keep-all;
    white-space: pre-wrap;
    transition: opacity 0.3s ease;
}

.hidden {
    display: none;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.confirm-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    z-index: 1000;
    animation: fadeInOut 2s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -60%); }
    10% { opacity: 1; transform: translate(-50%, -50%); }
    90% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -40%); }
}

@media (max-width: 768px) {
    .container {
        height: 80vh;
        margin: 20px;
    }

    .qr-code {
        width: 200px;
        height: 200px;
    }

    .qr-text {
        font-size: 1.2rem;
    }

    .question-text {
        font-size: 3rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        height: 70vh;
        margin: 10px;
    }

    .qr-code {
        width: 180px;
        height: 180px;
    }

    .qr-text {
        font-size: 1rem;
    }

    .question-text {
        font-size: 2.5rem;
        padding: 10px;
    }
} 