/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #fff; /* contain 사용 시 여백을 위한 배경색 (흰색) */
    background-size: contain; /* cover에서 contain으로 변경하여 이미지 전체 표시 */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* fixed에서 scroll로 변경 (모바일 최적화) */
    transition: background-image 0.3s ease;
}

/* 입력 컨테이너 스타일 */
.input-container {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input-container h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

/* 폼 스타일 */
#questionForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 텍스트 영역 스타일 */
#questionInput {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 20px;
    resize: none;
    box-sizing: border-box;
    min-height: 150px;
}

/* 제출 버튼 스타일 */
.submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #4a90e2;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #357abd;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 입력 확인 메시지 팝업 스타일 */
.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;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeInOut 2s ease-in-out;
}

.confirm-popup .icon {
    font-size: 2rem;
    color: #4CAF50;
}

.confirm-popup .message {
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.5;
}

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

/* 반응형 스타일 */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .input-container {
        padding: 20px;
    }

    .input-container h1 {
        font-size: 24px;
    }

    #questionInput {
        min-height: 120px;
        font-size: 16px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .input-container {
        padding: 15px;
    }

    .input-container h1 {
        font-size: 20px;
    }

    #questionInput {
        min-height: 100px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 10px;
        font-size: 14px;
    }
} 