:root {
    --bg-gradient-start: #6a11cb;
    --bg-gradient-end: #2575fc;
    --text-color: white;
    --container-bg: rgba(255, 255, 255, 0.1);
    --container-border: rgba(255, 255, 255, 0.3);
    --button-bg: #ffde00;
    --button-text: #333;
    --lotto-ball-bg: #fff;
    --lotto-ball-text: #333;
}

body.dark-mode {
    --bg-gradient-start: #1a1a2e;
    --bg-gradient-end: #16213e;
    --text-color: #e0e0e0;
    --container-bg: rgba(0, 0, 0, 0.3);
    --container-border: rgba(255, 255, 255, 0.1);
    --button-bg: #e94560;
    --button-text: #e0e0e0;
    --lotto-ball-bg: #0f3460;
    --lotto-ball-text: #e0e0e0;
}

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

body {
    background: linear-gradient(to right, var(--bg-gradient-start), var(--bg-gradient-end));
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    text-align: center;
    background: var(--container-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--container-border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

#generator-btn {
    padding: 15px 30px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background-color: var(--button-bg);
    color: var(--button-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s ease, color 0.3s ease;
}

#generator-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#numbers-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.lotto-ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--lotto-ball-bg);
    color: var(--lotto-ball-text);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: appear 0.5s ease-out forwards;
    transition: background-color 0.3s ease, color 0.3s ease;
}

@keyframes appear {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Theme Toggle Button Styling */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

