@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

body {
    font-family: 'Jua', sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f7fa;
    transition: background-color 0.5s ease;
}

#app {
    text-align: center;
    background: white;
    padding: 2.5rem;
    border-radius: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

h1 { color: #333; font-size: 2rem; margin-bottom: 1.5rem; }

.category-select {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.cat-btn {
    font-family: 'Jua', sans-serif;
    padding: 8px 16px;
    border-radius: 20px;
    border: 3px solid #f1f3f5;
    background: #f8f9fa;
    color: #868e96;
    cursor: pointer;
    font-size: 1rem;
}

.cat-btn.active { background-color: #333; color: white; border-color: #333; }

.card {
    margin: 10px 0 25px 0;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 30px;
    border: 4px dashed #ffde59;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
}

/* ⭐ 대형 이모지 스타일 */
#fact-emoji {
    font-size: 4rem; /* 아주 크게! */
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

#fact-text {
    font-size: 1.4rem;
    color: #444;
    line-height: 1.5;
    word-break: keep-all;
    margin: 0;
}

#next-btn {
    font-family: 'Jua', sans-serif;
    background-color: #ffde59;
    color: #333;
    padding: 15px 45px;
    border-radius: 50px;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 0 #e6c84f;
}

#next-btn:active { transform: translateY(3px); box-shadow: none; }