* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gowun Dodum', sans-serif;
    background-color: #FFF8E1; /* Warm cream background */
    color: #5D4037; /* Warm brown text */
    line-height: 1.8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 0;
}

.container {
    width: 95%;
    max-width: 1600px;
    background: #FFFFFF; /* White container */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #FFE0B2;
}

header {
    background: #FFCC80; /* Light orange header */
    padding: 2.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid #FFB74D; /* Deeper orange border */
    color: #795548;
}

header h1 {
    font-family: 'Noto Serif KR', serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: #BF360C; /* Deep orange title */
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.main-expert {
    font-size: 2.6rem;
    color: #A1330A;
}

.sub-experts {
    font-size: 1.6rem;
    font-weight: 400;
    color: #795548;
}

header p {
    font-size: 1.1rem;
    color: #795548;
}

main {
    padding: 2.5rem;
}

.main-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 2.5rem 3rem;
}

.form-section,
.result-section {
    width: 100%;
}

.result-section {
    border-left: none;
    border-top: 1px solid #FFE0B2;
    padding-top: 2rem;
    padding-left: 0;
}

#dream-form h2 {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.8rem;
    color: #BF360C; /* Deep orange heading */
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid #FFCC80;
    padding-bottom: 1rem;
}

.guide {
    text-align: center;
    margin-bottom: 2rem;
    color: #795548;
    font-size: 1.05rem;
    background-color: #FFF8E1;
    padding: 0.5rem;
    border-radius: 8px;
}

.question-group {
    margin-bottom: 1.5rem;
}

.question-group label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    font-weight: 400;
    color: #5D4037;
}

.choices-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: flex-start;
}

.choice-group-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.choice-block, .choice-block-trigger {
    padding: 0.6rem 1.2rem;
    border: 1px solid #FFE0B2;
    border-radius: 20px;
    background-color: #FFFDF8;
    color: #5D4037;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
    font-size: 0.95rem;
    text-align: center;
}

.choice-block-trigger {
    width: fit-content;
}

.choice-block-trigger.active {
    background-color: #FFE0B2;
    border-color: #FFB74D;
}

.sub-choices-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1rem;
    background-color: #fffaf0;
    border-radius: 10px;
    border: 1px solid #FFE0B2;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.sub-choices-container.hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: none;
    overflow: hidden;
}

.choice-block:hover, .choice-block-trigger:hover {
    background-color: #FFE0B2;
    border-color: #FFB74D;
    transform: translateY(-2px);
}

.choice-block.selected {
    background-color: #FF7043; /* Bright coral for selected */
    color: #FFFFFF;
    border-color: #FF7043;
    font-weight: bold;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #0f3460;
    border-radius: 8px;
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-family: 'Gowun Dodum', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #f0c43c;
    box-shadow: 0 0 10px rgba(240, 196, 60, 0.2);
}

button#submit-btn {
    display: block;
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #FF8A50 0%, #FF7043 50%, #F4511E 100%);
    color: #ffffff;
    font-family: 'Noto Serif KR', serif;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: transform 0.25s, box-shadow 0.25s;
    margin-top: 0;
}

button#submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.2);
}

#interpretation-result {
    margin-top: 3rem;
    padding: 2rem;
    background-color: transparent;
    border: none;
}

#interpretation-result.hidden {
    display: none !important;
}

#interpretation-result.visible {
    display: block !important;
}

.comparison-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.8rem;
    color: #BF360C;
    text-align: center;
    margin-bottom: 1.5rem;
}

.analysis-container {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.analysis-card {
    flex: 1;
    background-color: #FFF8E1;
    border: 1px solid #FFE0B2;
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.analysis-card h4 {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.analysis-card#kim-analysis h4 {
    color: #0277BD; /* Cool Blue for Modern Analyst */
    border-bottom: 2px solid #81D4FA;
}

.analysis-card#freud-analysis h4 {
    color: #8D6E63; /* Classic Brown for Freud */
    border-bottom: 2px solid #BCAAA4;
}

.analysis-card#walker-analysis h4 {
    color: #2E7D32; /* Deep Green for Neuroscience */
    border-bottom: 2px solid #A5D6A7;
}

.analysis-card h5 {
    font-family: 'Gowun Dodum', sans-serif;
    font-weight: bold;
    color: #5D4037;
    font-size: 0.95rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.analysis-card p {
    margin-bottom: 1rem;
    white-space: pre-wrap;
    text-align: justify;
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .main-dashboard {
        flex-direction: column;
    }
    .form-section, .result-section {
        max-height: none;
        overflow-y: visible;
        border: none;
        padding: 0;
    }
}

#interpretation-result h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.5rem;
    color: #BF360C;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #FFCC80;
}

#interpretation-result h4 {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.2rem;
    color: #F4511E;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#interpretation-result p {
    margin-bottom: 1rem;
    white-space: pre-wrap;
    text-align: justify;
}

footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: #795548;
    background-color: #FFF8E1;
    border-top: 1px solid #FFE0B2;
}

/* 공통 숨김 클래스 */
.hidden {
    display: none !important;
}

/* Reset button upgrade */
.reset-button{
    background: linear-gradient(90deg, #FF6F6F 0%, #FF3D3D 50%, #D50000 100%);
    color:#fff;
    font-size:1.3rem;
    padding:1.1rem 1.5rem;
    border:none;
    border-radius:12px;
    font-family:'Noto Serif KR',serif;
    font-weight:700;
    box-shadow:0 4px 14px rgba(0,0,0,0.15);
    transition:transform 0.25s, box-shadow 0.25s;
}
.reset-button:hover{
    transform:translateY(-4px);
    box-shadow:0 6px 18px rgba(0,0,0,0.25);
} 