
:root {
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --primary-color: #4caf50;
    --secondary-color: #ff9800;
    --ball-background: #333;
    --ball-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --button-glow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
}

body.light-mode {
    --background-color: #f0f0f0;
    --text-color: #333333;
    --ball-background: #ffffff;
    --ball-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.15);
}

.lang-switch-container {
    text-align: right;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.lang-switch-container a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.7;
}

.lang-switch-container a:hover {
    opacity: 1;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

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

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

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

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

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

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

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

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

main {
    text-align: center;
    padding: 2rem;
    background: rgba(0,0,0,0.2);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

#lotto-numbers-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

#generate-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--ball-shadow);
}

#generate-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--button-glow);
}

lotto-ball {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ball-background);
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--ball-shadow);
    transition: transform 0.3s ease;
}

lotto-ball:hover {
    transform: scale(1.1);
}
