:root {
    --bg-color: #f0f2f5;
    --container-bg: #fff;
    --text-color: #333;
    --shadow-color: rgba(0,0,0,0.1);
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #f0f2f5;
    --shadow-color: rgba(0,0,0,0.5);
}

body {
    font-family: '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, color 0.3s;
}

.lotto-container {
    position: relative;
    text-align: center;
    background-color: var(--container-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px var(--shadow-color);
    transition: background-color 0.3s, box-shadow 0.3s;
}

h1 {
    margin-bottom: 30px;
    color: var(--text-color);
}

#theme-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

#generate-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
}

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

#lotto-numbers {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

lotto-ball {
    --ball-color: #ddd;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--ball-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 10px;
    animation: appear 0.5s ease-in-out forwards;
    transform: scale(0);
}

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