
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --machine-bg: #f9f9f9;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #ffffff;
    --machine-bg: #1e1e1e;
}

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

#theme-toggle-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

#lotto-machine {
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    background-color: var(--machine-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 1em;
}

#numbers-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2em;
}

.ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#generate-button {
    background-color: #4CAF50;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 30px;
    border: none;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

#generate-button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

#generate-button:active {
    transform: scale(0.95);
}
