
@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap');

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #FFE66D;
    --background-color: #f0f2f5;
    --text-color: #333;
    --subtitle-color: #666;
    --container-bg: #fff;
    --font-family: 'Nanum Gothic', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem 0;
}

.container {
    background-color: var(--container-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%;
    max-width: 500px; /* 너비 조정 */
}

section {
    margin: 0; /* 이제 섹션이 하나이므로 마진 불필요 */
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
    font-size: 2rem;
}

h1 i {
    margin-right: 0.7rem;
    animation: dice-roll-animation 2.5s infinite ease-in-out;
}

@keyframes dice-roll-animation {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-15deg) scale(1.1); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(15deg) scale(1.1); }
}

.subtitle {
    color: var(--subtitle-color);
    font-size: 1rem;
    margin-bottom: 2rem; /* 여백 조정 */
}

.number-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; /* 간격 조정 */
    margin-bottom: 2.5rem; /* 여백 조정 */
    flex-wrap: wrap;
    min-height: 50px;
}

.number-circle {
    width: 50px; /* 크기 조정 */
    height: 50px; /* 크기 조정 */
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem; /* 폰트 크기 조정 */
    font-weight: 700;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

#generate-btn {
    color: white;
    border: none;
    padding: 1rem 2rem; /* 패딩 조정 */
    font-size: 1.2rem; /* 폰트 크기 조정 */
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, var(--primary-color), #ff8e53);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

#generate-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

/* Mobile Responsiveness */
@media (max-width: 560px) {
    .container { padding: 2rem; }
    h1 { font-size: 1.8rem; }
    .number-circle { width: 42px; height: 42px; font-size: 1.3rem; }
    #generate-btn { padding: 0.9rem 1.8rem; font-size: 1.1rem; }
}
