body {
    font-family: sans-serif;
    display: block; /* Change to block for multiple containers */
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    padding: 2rem; /* Add some padding to the body */
}

.container,
.contact-form-container { /* Apply centering to both containers */
    margin-left: auto;
    margin-right: auto;
    max-width: 800px; /* Limit width for better readability */
    margin-bottom: 2rem; /* Space between containers */
}

.container {
    text-align: center;
    padding: 2rem;
    background-color: #fff; /* Add background to container too */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.lotto-numbers {
    display: flex;
    flex-direction: column; /* Arrange rows vertically */
    align-items: center; /* Center the rows */
    gap: 1rem;
    margin: 2rem 0;
}

.lotto-row {
    display: flex;
    gap: 1rem;
}

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

.generate-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
}

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

#theme-toggle-btn {
    padding: 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Light Mode */
body.light-mode {
    background-color: #f0f0f0;
    color: #333;
}

.light-mode .lotto-number {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.light-mode .generate-btn, .light-mode #theme-toggle-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}

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


/* Dark Mode */
body.dark-mode {
    background-color: #333;
    color: #f0f0f0;
}

.dark-mode .lotto-number {
    background-color: #555;
    color: #f0f0f0;
    border: 1px solid #777;
}

.dark-mode .generate-btn, .dark-mode #theme-toggle-btn {
    background-color: #666;
    color: #f0f0f0;
    border: 1px solid #888;
    border-radius: 5px;
}

.dark-mode .generate-btn:hover {
    background-color: #555;
}

.contact-form-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2rem; /* Add some space from the lotto generator */
    width: 100%;
    max-width: 500px;
}

.contact-form-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
}

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

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container textarea {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form-container input[type="text"]:focus,
.contact-form-container input[type="email"]:focus,
.contact-form-container textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.contact-form-container button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-form-container button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Dark mode adjustments for the form */
body.dark-mode .contact-form-container {
    background-color: #444;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .contact-form-container h2 {
    color: #f0f0f0;
}

body.dark-mode .contact-form-container label {
    color: #ccc;
}

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

body.dark-mode .contact-form-container input[type="text"]:focus,
body.dark-mode .contact-form-container input[type="email"]:focus,
body.dark-mode .contact-form-container textarea:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

body.dark-mode .contact-form-container button[type="submit"] {
    background-color: #0056b3;
}

body.dark-mode .contact-form-container button[type="submit"]:hover {
    background-color: #004085;
}