:root {
    --primary-color: #5a67d8;
    --secondary-color: #f6ad55;
    --bg-color: #f7fafc;
    --text-color: #2d3748;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
}

#app-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 500px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
}

.screen {
    display: none;
    padding: 30px;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 25px;
}

.header h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 0 0 10px;
}

.header .subtitle {
    font-size: 16px;
    color: #718096;
}

.start-btn,
.option-btn,
.action-buttons button,
.details-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-sizing: border-box;
}

.start-btn {
    background-color: var(--primary-color);
    color: var(--white);
    margin-top: 30px;
}

.start-btn:hover {
    background-color: #4c51bf;
    transform: translateY(-2px);
}

.intro-content {
    text-align: center;
}

.emoji {
    font-size: 60px;
}

.intro-image {
    margin-bottom: 25px;
    text-align: center;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.selector-title {
    font-size: 18px;
    font-weight: 500;
    color: #4a5568;
    margin: 30px 0 15px;
}

.question-count-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.question-count-selector input[type="radio"] {
    display: none;
}

.question-count-selector label {
    padding: 10px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.question-count-selector input[type="radio"]:checked+label {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.question-count-selector label:hover {
    border-color: #a0aec0;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    background-color: var(--light-gray);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #63b3ed);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #718096;
}

.question-container {
    text-align: center;
}

.question-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.question-text {
    font-size: 22px;
    min-height: 60px;
    margin: 15px 0 30px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background-color: #f7fafc;
    color: var(--text-color);
    border: 2px solid var(--light-gray);
}

.option-btn:hover {
    background-color: #edf2f7;
    transform: translateY(-2px);
}

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

.result-emoji {
    font-size: 60px;
    margin-bottom: 15px;
}

.result-image {
    width: 50%;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

.result-title {
    font-size: 26px;
    color: var(--primary-color);
    margin: 0;
}

.result-subtitle {
    font-size: 18px;
    color: #4a5568;
    margin: 5px 0 20px;
}

.result-description {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    line-height: 1.8;
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.details-btn {
    background-color: #2b6cb0;
    color: var(--white);
}

.details-btn:hover {
    background-color: #2c5282;
}

.retry-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.share-btn {
    background-color: var(--secondary-color);
    color: var(--white);
}

.retry-btn:hover {
    background-color: #4c51bf;
}

.share-btn:hover {
    background-color: #dd6b20;
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: #f7fafc;
    color: #718096;
    font-size: 14px;
}

/* Detail Page Styles */
.detail-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: var(--white);
    border-radius: 16px;
}

.detail-emoji {
    /* font-size: 80px; */
    /* Removed or overridden by image size */
    margin-bottom: 15px;
}

.detail-image {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.detail-type {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0;
}

.detail-subtitle {
    font-size: 20px;
    opacity: 0.95;
}

.detail-section {
    background: var(--white);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 20px;
}

.detail-description {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

.strength-list,
.weakness-list,
.advice-list {
    list-style: none;
    padding: 0;
}

.strength-list li,
.weakness-list li,
.advice-list li {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.strength-list li {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
}

.weakness-list li {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
}

.advice-list li {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.strength-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    font-size: 18px;
}

.weakness-list li::before {
    content: "⚠";
    font-size: 18px;
}

.advice-list li::before {
    content: "💡";
    font-size: 16px;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.job-tag {
    background: var(--light-gray);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.compatibility-item {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.compatibility-good {
    background: #f0fdf4;
    border: 2px solid #10b981;
}

.compatibility-bad {
    background: #fef2f2;
    border: 2px solid #ef4444;
}

.compatibility-item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.famous-people {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.famous-tag {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 30px;
}

.back-button:hover {
    background-color: #4c51bf;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .detail-page {
        padding: 20px 15px;
    }

    .detail-header {
        padding: 20px;
    }

    .detail-type {
        font-size: 28px;
    }

    .detail-section {
        padding: 20px;
    }

    .compatibility-grid {
        grid-template-columns: 1fr;
    }
}