:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --bg-color: #f9f9fb;
    --text-color: #2d3436;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Pretendard', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: var(--white);
    max-width: 500px;
    width: 100%;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hidden {
    display: none;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

p {
    font-size: 1rem;
    line-height: 1.5;
    color: #636e72;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.primary-btn:hover {
    background-color: #5b4bc4;
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.secondary-btn {
    flex: 1;
    background-color: #dfe6e9;
    color: var(--text-color);
    border: none;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.secondary-btn:hover {
    background-color: #b2bec3;
}

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

#share-btn:hover {
    background-color: var(--primary-color);
}

/* Question Progress Bar */
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* Options Grid */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.option-btn {
    background-color: var(--white);
    border: 2px solid #eee;
    padding: 15px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background-color: #f3f0ff;
}

/* Result Screen */
.result-box {
    background-color: #f3f0ff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

#result-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.matching-juniors {
    margin-top: 20px;
    text-align: left;
}

.junior-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.junior-card {
    background-color: #f9f9fb;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.junior-card .emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
}

.junior-card h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.junior-card p {
    font-size: 0.8rem;
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}
