
:root {
    --bg-color: #f0f2f5;
    --text-color: #333;
    --machine-bg: rgba(255, 255, 255, 0.9);
    --ball-bg: #eee;
    --btn-bg: #007bff;
    --btn-hover: #0056b3;
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #f0f2f5;
    --machine-bg: rgba(45, 45, 45, 0.9);
    --ball-bg: #444;
    --btn-bg: #375a7f;
    --btn-hover: #2b4764;
}

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

#falling-coins-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background-color: var(--btn-bg);
    color: white;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
    z-index: 10;
}

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

.lotto-machine {
    text-align: center;
    background: var(--machine-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
}

h1 {
    margin-bottom: 30px;
}

.animation-container {
    height: 100px; /* Reduced height as image is gone */
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.lotto-ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--ball-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease, background-color 0.3s ease, color 0.3s ease;
}

#generate-btn {
    padding: 15px 30px;
    font-size: 18px;
    color: #fff;
    background-color: var(--btn-bg);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s active;
}

#generate-btn:hover {
    background-color: var(--btn-hover);
}

#generate-btn:active {
    transform: scale(0.98);
}
