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

:root {
    --font-family: 'Inter', sans-serif;
}

body {
    --primary-color: #4CAF50; /* Light mode green */
    --primary-dark-color: #388E3C;
    --bg-color: #e8f5e9;
    --surface-color: #ffffff;
    --text-color: #333333;
    --number-bg-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --primary-color: #66bb6a; /* Dark mode light green */
    --primary-dark-color: #4CAF50;
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --number-bg-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

body {
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--bg-color);
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#app {
    position: relative;
    text-align: center;
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 12px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#theme-toggle:hover {
    background-color: var(--primary-color);
    color: var(--surface-color);
}

h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

#numbers-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 2rem 0;
}

.number {
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--number-bg-color);
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.5s ease-out forwards;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Delay animation for each number */
.number:nth-child(1) { animation-delay: 0.1s; }
.number:nth-child(2) { animation-delay: 0.2s; }
.number:nth-child(3) { animation-delay: 0.3s; }
.number:nth-child(4) { animation-delay: 0.4s; }
.number:nth-child(5) { animation-delay: 0.5s; }
.number:nth-child(6) { animation-delay: 0.6s; }

#generate-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#generate-button:hover {
    background-color: var(--primary-dark-color);
    transform: translateY(-2px);
}

#generate-button:active {
    transform: translateY(0);
}

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