:root {
    --background-color: #f0f0f0;
    --container-background: #fff;
    --text-color: #333;
    --button-background: #007bff;
    --button-text: #fff;
    --lotto-number-background: #f8f9fa;
    --lotto-number-text: #333;
    --dot-color: #ffffff;
}

[data-theme="dark"] {
    --background-color: #121212;
    --container-background: #1e1e1e;
    --text-color: #f0f0f0;
    --button-background: #0d6efd;
    --button-text: #fff;
    --lotto-number-background: #333;
    --lotto-number-text: #f0f0f0;
    --dot-color: #444444;
}

body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background-color);
    background-image: radial-gradient(circle, var(--dot-color) 10%, transparent 11%),
                      radial-gradient(circle, var(--dot-color) 10%, transparent 11%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

h1 {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

#lotto-numbers-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.lotto-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--lotto-number-background);
    color: var(--lotto-number-text);
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#generate-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: var(--button-text);
    background-color: var(--button-background);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}

#generate-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

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

#theme-buttons {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

#dark-mode-btn, #light-mode-btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: var(--button-text);
    background-color: var(--button-background);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#dark-mode-btn:hover, #light-mode-btn:hover {
    background-color: #0056b3;
}