:root {
    --bg-color: #f0f2f5;
    --text-color: #333;
    --h1-color: #333;
    --container-bg: #ffffff;
    --number-ball-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

body.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #f0f2f5;
    --h1-color: #fff;
    --container-bg: #282c34;
    --number-ball-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 6px 6px rgba(0,0,0,0.3);
}

body {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiGAAAAA3NCSVQICAjb4U/gAAAAMFBMVEX////w8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PAe3pRxAAAAEHRSTlMAESIzRFVmd4iZqrvM3e7/dpUHhgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAJNJREFUeJzt0LENxDAQA0GjIey/d/1u/7c0QZIT6aSBBNJBC+mkgQTSwT4dJBC+EAgfCISPEMgHCGQDBLJRABDkAxDyAQY5AMMcgEEOQJCHEAgQyAcIZAMEslEAEOT/ROSd/CeB9CiBeBMS9p4/cR8S8fEj3xbIeYJAfEMgXyCQDRDIPg5A8XsoHw9QyP0A3wDVjQkAIy2kPAAAAABJRU5ErkJggg==');
    transition: background-color 0.3s ease, color 0.3s ease;
    color: var(--text-color);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--container-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--number-ball-shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

h1 {
    text-align: center;
    color: var(--h1-color);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.number-ball {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color); /* Changed to use text-color variable */
    box-shadow: var(--number-ball-shadow); /* Changed to use number-ball-shadow variable */
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.number-ball:hover {
    transform: translateY(-10px);
}

lotto-generator button {
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%);
    color: white;
    cursor: pointer;
    box-shadow: 0 3px 5px 2px rgba(255, 105, 135, .3);
    transition: all 0.3s ease;
}

lotto-generator button:hover {
    box-shadow: 0 5px 15px 5px rgba(255, 105, 135, .4), 0 0 0 8px rgba(255, 105, 135, 0.2);
}

#theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 24px;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    background-color: rgba(128, 128, 128, 0.2);
}
