:root {
    --background-color: #f0f0f0;
    --text-color: #333;
    --container-bg-color: #fff;
    --button-bg-color: #4CAF50;
    --button-text-color: white;
    --ball-color: #ddd;
}

[data-theme="dark"] {
    --background-color: #333;
    --text-color: #f0f0f0;
    --container-bg-color: #444;
    --button-bg-color: #5cb85c;
    --button-text-color: white;
    --ball-color: #555;
}

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

.container {
    background-color: var(--container-bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    margin-bottom: 1.5rem;
}

.theme-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

#lotto-machine {
    margin-bottom: 1.5rem;
}

.ball-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ball-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.lotto-ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: var(--ball-color);
}

#generate-btn {
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#generate-btn:hover {
    opacity: 0.9;
}
