:root {
  --background-color: #f0f0f0;
  --text-color: #333;
  --container-bg-color: #fff;
  --box-shadow-color: rgba(0, 0, 0, 0.1);
  --toggle-background: #ccc;
  --toggle-slider-background: #fff;
}

[data-theme='dark'] {
  --background-color: #333;
  --text-color: #f0f0f0;
  --container-bg-color: #555;
  --box-shadow-color: rgba(255, 255, 255, 0.1);
  --toggle-background: #4CAF50;
  --toggle-slider-background: #fff;
}

body {
  background-color: var(--background-color);
  font-family: sans-serif;
  display: flex;
  flex-direction: column; /* Change to column to stack items vertically */
  justify-content: flex-start; /* Align items to the start of the column */
  align-items: center; /* Center items horizontally */
  min-height: 100vh; /* Allow content to push beyond 100vh */
  margin: 0;
  padding: 20px 0; /* Add some padding top and bottom */
  transition: background-color 0.3s ease;
}

.container {
  background-color: var(--container-bg-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px var(--box-shadow-color);
  text-align: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

h1 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

/* Theme Switch Styles */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.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: var(--toggle-background);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--toggle-slider-background);
  transition: .4s;
  border-radius: 50%;
}

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

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

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

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

#generator-btn {
  background-color: #4CAF50;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

#generator-btn:hover {
  background-color: #45a049;
}

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

.lotto-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

/* Affiliate Form Styles */
.affiliate-form-container {
  margin-top: 2rem;
  width: 100%;
  max-width: 500px;
}

.affiliate-form-container h2 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: var(--container-bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: #4CAF50;
  outline: none;
}

.submit-btn {
  background-color: #4CAF50;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
  width: 100%;
  margin-top: 1rem;
}

.submit-btn:hover {
  background-color: #45a049;
}

.disqus-container {
  margin-top: 2rem;
  width: 100%;
  max-width: 500px; /* Adjusted to match affiliate form */
}

.disqus-container h2 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}