
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: #f0f2f5;
    background-image: linear-gradient(to top, #d2d2d2, #f0f2f5);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background: #121212;
    background-image: linear-gradient(to top, #000000, #121212);
    color: #ffffff;
}

.lotto-machine {
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: background-color 0.3s, box-shadow 0.3s;
    position: relative;
}

body.dark-mode .lotto-machine {
    background: #1e1e1e;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
}

h1 {
    margin-bottom: 30px;
    color: #333;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

body.dark-mode h1 {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.1);
}

#generate-btn {
    padding: 15px 30px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background-color: #4CAF50;
    color: white;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

#generate-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

#generate-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}


.numbers-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

.game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.bonus-ball::before {
    content: '+';
    margin-right: 5px;
    font-size: 1.2em; /* Increase font size of the plus sign */
    font-weight: bold;
}

.number-ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f1c40f;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: pop-in 0.5s ease-out forwards;
    transform: scale(0);
}


@keyframes pop-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

.number-ball:nth-child(1) { background-color: #e74c3c; animation-delay: 0.1s; }
.number-ball:nth-child(2) { background-color: #3498db; animation-delay: 0.2s; }
.number-ball:nth-child(3) { background-color: #9b59b6; animation-delay: 0.3s; }
.number-ball:nth-child(4) { background-color: #2ecc71; animation-delay: 0.4s; }
.number-ball:nth-child(5) { background-color: #f39c12; animation-delay: 0.5s; }
.number-ball:nth-child(6) { background-color: #1abc9c; animation-delay: 0.6s; }

.bonus-ball {
    background-color: #ff5722 !important; /* A more vibrant color for bonus ball */
}

#theme-toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 1.5em;
    border: none;
    background: none;
    color: #333;
}

body.dark-mode #theme-toggle-btn {
    color: #fff;
}
