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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffeef5 0%, #fff5e6 100%);
    min-height: 100vh;
    padding: 20px;
    color: #5a5a5a;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

.content-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

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

h2 {
    color: #c98b7f;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.subtitle {
    text-align: center;
    color: #8b7f7f;
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 버튼 스타일 */
.btn-primary {
    background: linear-gradient(135deg, #f4a6b8 0%, #d4a574 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 166, 184, 0.3);
    display: block;
    margin: 20px auto;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 166, 184, 0.4);
}

.btn-primary:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #f5e6d3;
    color: #8b7f7f;
    border: 2px solid #d4a574;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
}

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

/* 진행 바 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #f5e6d3;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f4a6b8 0%, #d4a574 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 5%;
}

/* 질문 카드 */
.question-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

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

.question-number {
    color: #c98b7f;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-align: center;
}

.question-text {
    color: #5a5a5a;
    font-size: 1.5em;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
    min-height: 80px;
}

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

.option-btn {
    background: #fff;
    border: 2px solid #f5e6d3;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    color: #5a5a5a;
    text-align: center;
}

.option-btn:hover {
    border-color: #f4a6b8;
    background: #fff5f5;
    transform: translateX(5px);
}

.option-btn.selected {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0e6 100%);
    border-color: #f4a6b8;
    box-shadow: 0 4px 15px rgba(244, 166, 184, 0.2);
}

.option-btn span {
    display: block;
    font-size: 0.85em;
    color: #8b7f7f;
    margin-top: 5px;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* 결과 화면 */
.result-card {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0e6 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.result-type {
    font-size: 2em;
    font-weight: bold;
    color: #d4a574;
    margin-bottom: 15px;
}

.result-score {
    font-size: 1.3em;
    color: #c98b7f;
    margin-bottom: 20px;
}

.result-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #5a5a5a;
    margin-bottom: 20px;
}

.solution-box {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    text-align: left;
}

.solution-box h3 {
    color: #c98b7f;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.solution-box ul {
    list-style: none;
    padding-left: 0;
}

.solution-box li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    color: #5a5a5a;
}

.solution-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f4a6b8;
    font-weight: bold;
    font-size: 1.2em;
}

/* 선언문 */
.declaration-box {
    background: #fff5f5;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid #f4a6b8;
}

.declaration-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #d4a574;
}

.declaration-text {
    line-height: 2;
    font-size: 1.1em;
    color: #5a5a5a;
}

.declaration-text p {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.declaration-text p:before {
    content: "❤";
    position: absolute;
    left: 0;
    color: #f4a6b8;
}

/* 일기 섹션 */
.diary-section {
    margin: 30px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
}

.diary-section h2 {
    margin-bottom: 20px;
    text-align: center;
}

#diary-input {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid #f5e6d3;
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

#diary-input:focus {
    outline: none;
    border-color: #f4a6b8;
}

.diary-list {
    margin-top: 20px;
}

.diary-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #f4a6b8;
}

.diary-date {
    color: #c98b7f;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.diary-content {
    color: #5a5a5a;
    line-height: 1.6;
    white-space: pre-wrap;
}

.action-buttons {
    text-align: center;
    margin-top: 30px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .content-box {
        padding: 25px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    .question-text {
        font-size: 1.2em;
        min-height: 60px;
    }

    .option-btn {
        padding: 15px;
        font-size: 0.9em;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        margin: 10px 0;
    }

    .declaration-text {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    .question-card {
        padding: 25px;
    }

    .question-text {
        font-size: 1.1em;
    }

    .result-type {
        font-size: 1.5em;
    }
}

