
:root {
    --background-color: #121212;
    --text-color: #fff;
    --ball-background-color: #f0f0f0;
    --ball-text-color: #121212;
    --button-background-color: #4CAF50;
    --button-text-color: white;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
    --background-color: #f0f0f0;
    --text-color: #333;
    --ball-background-color: #333;
    --ball-text-color: #f0f0f0;
    --button-background-color: #4CAF50;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.container {
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.numbers {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.ball, .powerball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0.5rem;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.ball {
    background-color: var(--ball-background-color);
    color: var(--ball-text-color);
}

.powerball {
    background-color: #d92c2c;
    color: white;
}

#generator-btn {
    background-color: var(--button-background-color);
    color: var(--button-text-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow-color);
}

#generator-btn:hover {
    background-color: #45a049;
}

#theme-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: var(--button-background-color);
    color: var(--button-text-color);
    box-shadow: 0 2px 4px var(--shadow-color);
}
