:root {
    --bg-color: #f0f2f5;
    --container-bg: #ffffff;
    --text-color: #333;
    --button-bg: #4CAF50;
    --button-hover: #45a049;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --bg-color: #181818;
    --container-bg: #242424;
    --text-color: #ffffff;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

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

.container {
    text-align: center;
    padding: 40px;
    background-color: var(--container-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 600px;
    width: 90%;
    position: relative; /* For positioning the toggle */
}

/* Theme Toggle Button */
#theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

#theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

body.dark-mode #theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

h1 {
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 2.5em;
}

#generator-btn {
    background-color: var(--button-bg);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#generator-btn:hover {
    background-color: var(--button-hover);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#lotto-numbers-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.lotto-set {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.lotto-ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Color ranges */
.ball-range-1 { background-color: #fbc400; text-shadow: 0px 1px 2px rgba(0,0,0,0.3); } /* 1-10 Yellow */
.ball-range-2 { background-color: #69c8f2; } /* 11-20 Blue */
.ball-range-3 { background-color: #ff7272; } /* 21-30 Red */
.ball-range-4 { background-color: #aaaaaa; } /* 31-40 Gray */
.ball-range-5 { background-color: #b0d840; } /* 41-45 Green */
