
:root {
    --bg-color: #f0f0f0;
    --container-bg: #ffffff;
    --text-color: #333;
    --button-gradient: linear-gradient(145deg, #6a11cb, #2575fc);
    --button-shadow: rgba(37, 117, 252, 0.4);
    --ball-shadow: rgba(0, 0, 0, 0.2);
    --container-shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #f0f0f0;
    --button-gradient: linear-gradient(145deg, #8e2de2, #4a00e0);
    --button-shadow: rgba(142, 45, 226, 0.4);
    --ball-shadow: rgba(0, 0, 0, 0.4);
    --container-shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    transition: background-color 0.3s ease;
}

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

h1 {
    margin-bottom: 30px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

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

.ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 8px var(--ball-shadow), inset 0 -3px 5px rgba(0,0,0,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.ball.bonus {
    background-color: #ff7272;
}

#generate {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: var(--button-gradient);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--button-shadow);
}

#generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--button-shadow);
}

#generate:active {
    transform: translateY(0);
}

/*
    Color legend:
    1-10: #fbc400 (Yellow)
    11-20: #69c8f2 (Blue)
    21-30: #ff7272 (Red)
    31-40: #aaa (Gray)
    41-45: #b0d840 (Green)
*/
