
:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5a623;
    --background-color: #f0f0f0;
    --card-background: #ffffff;
    --text-color: #333;
    --ball-size: 60px;
}

[data-theme="dark"] {
    --background-color: #1a1a1a;
    --card-background: #2d2d2d;
    --text-color: #f0f0f0;
    --primary-color: #64b5f6;
}

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

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

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

#theme-toggle {
    background: var(--card-background);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

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

.number-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

#generate-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#generate-btn:hover {
    background-color: #357abd;
}

@keyframes ball-animation {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

lotto-ball {
    width: var(--ball-size);
    height: var(--ball-size);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: ball-animation 0.5s ease-out forwards;
}
