/* BASIC css start */
@import url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff');
@import url('https://webfontworld.github.io/andromeda/AndromedaGothic.css');

@font-face {
    font-family: 'SBAggroB';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
#footer{border-top:1px solid #ccc !important; }

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: white;
    color: #4a3f35;
    line-height: 1.6;
}

/* 타이틀 폰트 적용 */
.main-title,
.sub-title,
.result-title,
.result-keyword,
.child-name,
.question-text,
.coupon-text{
    font-family: 'SBAggroB';
    transform: rotate(0.04deg);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.test-container {
    background-color: #f9f5f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(74, 63, 53, 0.1);
    min-height: 800px;
    display: flex;
    flex-direction: column;
    margin: 20px 0;
}

.intro-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.intro-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.sub-title {
    font-size: 24px;
    color: #8b7355;
    margin-bottom: 20px;
}

.main-title {
    font-size: 36px;
    color: #4a3f35;
    margin-bottom: 10px;
    font-weight: 700;
}


.intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.name-input-container {
    margin: 30px 0;
}

#childName {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0d6c8;
    border-radius: 12px;
    font-size: 18px;
    text-align: center;
    transition: all 0.3s ease;
}

#childName:focus {
    outline: none;
    border-color: #8b7355;
}

.start-button {
    width: 100%;
    padding: 15px;
    background-color: #8b7355;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-button:hover {
    background-color: #6b5a45;
}

.progress-bar {
    height: 6px;
    background-color: #e0d6c8;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #8b7355;
    width: 0%;
    transition: width 0.3s ease;
}

.question-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
}

.question-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
}

.question-title {
    font-size: 20px;
    color: #4a3f35;
    margin-bottom: 10px;
}

.question-text {
    font-size: 28px;
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.option {
    background-color: white;
    padding: 15px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.option:hover {
    color: white;
    background-color: #6b5a45;
}

.option.selected {
    color: white;
    background-color: #8b7355;
}

.result-container {
    text-align: center;
    padding: 30px 0;
}

.result-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(74, 63, 53, 0.1);
}

.child-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

.result-title {
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.result-keyword {
    display: block;
    font-size: 24px;
    color: #8b7355;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.result-image {
    text-align: center;
}

.result-description {
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: left;
    word-break: keep-all;
    word-wrap: break-word;
    line-height: 1.8;
    letter-spacing: -0.3px;
}

/* 특징 그래프 스타일 */
.result-traits {
    margin-bottom: 30px;
    padding: 0;
}

.result-traits h3 {
    font-size: 24px;
    color: #4a3f35;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.traits-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.traits-list li {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}

.trait-label {
    flex: 0 0 70px;
    text-align: left;
}

.trait-bar-container {
    flex: 1;
    height: 12px;
    background: #f0e6d9;
    border-radius: 6px;
    overflow: hidden;
}

.trait-bar {
    height: 100%;
    background: #8b7355;
    border-radius: 6px;
    transition: width 0.8s ease;
}

/* 성향별 타이틀 색상 */
.result-card[data-type="A"] .result-title {
    color: #6d9f53;
}

.result-card[data-type="B"] .result-title {
    color: #e06944;
}

.result-card[data-type="C"] .result-title {
    color: #ff8c00;
}

.result-card[data-type="D"] .result-title {
    color: #e78053;
}


.coupon-text {
    font-size: 22px;
    font-weight: 500;
    color: #333;
}

.coupon-button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.coupon-button:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

/* 버튼 스타일 */
.btn-view-items {
    width: 100%;
    padding: 15px;
    background: #8b7355;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-view-items:hover {
    background: #6b5a45;
}

.btn-retake {
    width: 100%;
    padding: 15px;
    background: white;
    color: #8b7355;
    border: 2px solid #8b7355;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-retake:hover {
    background: #f9f5f0;
}

/* 공유 버튼 스타일 */
.share-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-share-icon {
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-share-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-width: 50px;
    max-height: 50px;
}

/* 추천 섹션 스타일 */
.recommendation-section {
    margin-top: 40px;
    border-top: 1px solid #e0d6c8;
    padding-top: 40px;
}

.action-buttons {
    margin-top: 40px;
    border-top: 1px solid #e0d6c8;
    padding-top: 40px;
}

.coupon-text {
    font-size: 22px;
    font-weight: 500;
    color: #4a3f35;
}

.coupon-image {
    max-width: 100%;
    height: auto;
    padding: 15px;
    
}

/* 모바일 대응을 위한 미디어 쿼리 추가 */
@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        padding: 10px;
        margin: 0;
    }

    .test-container {
        padding: 20px;
        margin: 10px 0;
        min-height: auto;
        border-radius: 15px;
    }

    .intro-container {
        padding: 20px 10px;
    }

    .main-title {
        font-size: 28px;
        word-break: keep-all;
        line-height: 1.3;
    }

    .sub-title {
        font-size: 20px;
        word-break: keep-all;
    }

    .question-text {
        font-size: 24px;
        word-break: keep-all;
        line-height: 1.4;
        padding: 0 10px;
    }

    .intro-image img {
        width: 100%;
        max-width: 300px;
    }

    .name-input-container {
        margin: 20px 0;
        width: 100%;
    }

    #childName {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    .start-button {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    .question-container {
        padding: 15px 0;
    }

    .question-content {
        padding: 20px 0;
        gap: 25px;
    }

    .options {
        gap: 12px;
        padding: 0 10px;
    }

    .option {
        padding: 12px;
        font-size: 15px;
        word-break: keep-all;
        line-height: 1.4;
    }

    .result-card {
        padding: 25px 15px;
    }

    .result-title {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .result-keyword {
        font-size: 20px;
        margin-bottom: 15px;
    }

  .result-description {
        font-size: 14px;
        word-break: keep-all;
        word-wrap: break-word;
        line-height: 1.8;
        letter-spacing: -0.3px;
        padding: 0 10px;
        text-align: left;
    }

    /* result-card 내부 여백 조정 */
    .result-card {
        padding: 25px 20px;
    }

    /* 결과 설명 영역의 좌우 여백 최적화 */
    .result-content {
        padding: 0 5px;
    }
}
    .traits-list {
        padding: 15px 10px;
    }

    .traits-list li {
        margin-bottom: 15px;
        font-size: 14px;
    }

    .recommendation-section {
        margin-top: 30px;
        padding-top: 30px;
    }

    .coupon-text {
        font-size: 18px;
    }

    .btn-view-items,
    .btn-retake {
        font-size: 15px;
        padding: 12px;
    }

    .action-buttons {
        margin-top: 30px;
        padding-top: 30px;
    }

    .share-icons {
        gap: 12px;
        margin-top: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .btn-share-icon {
        width: 45px;
        height: 45px;
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-share-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
}

    /* 모바일에서 터치 영역 최적화 */
    .option,
    .start-button,
    .btn-view-items,
    .btn-retake,
    .btn-share-icon {
        min-height: 44px; /* 터치 영역 최소 크기 확보 */
    }
}

/* 매우 작은 화면 대응 (iPhone SE 등) */
@media screen and (max-width: 320px) {
    .main-title {
        font-size: 24px;
    }

    .sub-title {
        font-size: 18px;
    }

    .question-text {
        font-size: 20px;
    }

    .result-title {
        font-size: 28px;
    }

    .result-keyword {
        font-size: 18px;
    }

    .option {
        font-size: 14px;
    }
}
    .result-description {
        font-size: 13px;
        line-height: 1.7;
        padding: 0 8px;
    }
}
.share-icons {
        gap: 10px;
    }

    .btn-share-icon {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }
}
/* BASIC css end */

