:root {
  --background-color: #f0f0f0;
  --text-color: #333;
  --button-bg-color: #e0e0e0;
  --button-text-color: #333;
  --ball-bg-color: #e0e0e0;
}

body {
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
  --background-color: #333;
  --text-color: #f0f0f0;
  --button-bg-color: #555;
  --button-text-color: #f0f0f0;
  --ball-bg-color: #555;
}

main {
  text-align: center;
}

#generator-btn {
  padding: 10px 20px;
  font-size: 1.2rem;
  cursor: pointer;
  margin-bottom: 20px;
  background-color: var(--button-bg-color);
  color: var(--button-text-color);
  border: 1px solid var(--text-color);
}

.lotto-set {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.lotto-ball {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--ball-bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  font-weight: bold;
}

/* The switch - the box around the slider */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  position: absolute;
  top: 20px;
  right: 20px;
}

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

/* Hide default HTML checkbox */
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

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

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

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

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

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

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

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