:root {
    --background-color: #f0f2f5;
    --text-color: #333;
    --container-bg: white;
    --header-color: #ff6b6b;
    --button-bg: #ff6b6b;
    --button-text: white;
    --gradient-start: #ff9a9e;
    --gradient-end: #fad0c4;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-image: linear-gradient(45deg, var(--gradient-start) 0%, var(--gradient-end) 99%, var(--gradient-end) 100%);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    --background-color: #1a1a2e;
    --text-color: #e0e0e0;
    --container-bg: #16213e;
    --header-color: #e94560;
    --button-bg: #e94560;
    --gradient-start: #16213e;
    --gradient-end: #0f3460;
}

.container {
    text-align: center;
    background: var(--container-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
}

.theme-switch-wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


h1 {
    color: var(--header-color);
    margin-bottom: 2rem;
}

.lotto-numbers-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.lotto-ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    animation: pop-in 0.5s ease-out forwards;
}

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

#generate-btn {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#generate-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

#generate-btn:active {
    transform: translateY(1px);
}