
:root {
    --background-color: #f0f0f0;
    --text-color: #333;
    --lotto-generator-bg-color: white;
    --box-shadow-color: rgba(0, 0, 0, 0.1);
}

body.dark {
    --background-color: #333;
    --text-color: #f0f0f0;
    --lotto-generator-bg-color: #444;
    --box-shadow-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    position: relative;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

lotto-generator {
    display: block;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--lotto-generator-bg-color);
    box-shadow: 0 0 10px var(--box-shadow-color);
}

/* Theme Switch */
.theme-switch-wrapper {
    position: absolute;
    top: 15px;
    right: 15px;
    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: #fff;
    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%;
}
