body {
  font-family: sans-serif;
  display: flex;
  flex-direction: column; /* Changed to column to stack elements vertically */
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
  transition: background-color 0.3s, color 0.3s;
}

.dark-mode {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.container {
  text-align: center;
  padding: 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
  margin-bottom: 20px; /* Add margin to separate containers */
}

.dark-mode .container {
  background-color: #2c2c2c;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.lotto-numbers {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #eee;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

.dark-mode .number {
  background-color: #444;
  color: #f0f0f0;
}

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

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

.theme-switcher {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.theme-switcher input {
  display: none;
}

.slider {
  display: block;
  width: 50px;
  height: 25px;
  border-radius: 25px;
  background-color: #ccc;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s;
}

.slider::before {
  content: "";
  display: block;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.theme-switcher input:checked + .slider {
  background-color: #4CAF50;
}

.theme-switcher input:checked + .slider::before {
  transform: translateX(25px);
}

/* Contact Form Styles */
.contact-form-container {
  width: 100%;
  max-width: 500px;
  margin-top: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #f9f9f9;
  color: #333;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.dark-mode .contact-form input[type="text"],
.dark-mode .contact-form input[type="email"],
.dark-mode .contact-form textarea {
  background-color: #3a3a3a;
  border-color: #555;
  color: #f0f0f0;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 1rem;
}

.submit-btn:hover {
  background-color: #0056b3;
}
