body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1 {
    color: #0056b3;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

#lotto-numbers {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    border: 2px solid #0056b3;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.lotto-number {
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
    background-color: #28a745;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#generate-button, #theme-toggle-button, .contact-form button[type="submit"] {
    padding: 15px 30px;
    font-size: 1.2em;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 5px; /* Added margin for spacing between buttons */
}

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

.contact-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    width: 100%;
    max-width: 500px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form h2 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 25px;
    transition: color 0.3s ease;
}

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

.contact-form label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    outline: none;
}

#form-status-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}


/* Dark mode styles */
body.dark-mode {
    background-color: #282c36;
    color: #f0f0f0;
}

body.dark-mode h1 {
    color: #92bce6;
}

body.dark-mode #lotto-numbers {
    border: 2px solid #92bce6;
    background-color: #3a3f4b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .lotto-number {
    background-color: #4CAF50; /* A slightly different green for dark mode */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

body.dark-mode .button-group button {
    background-color: #61afef;
}

body.dark-mode .button-group button:hover {
    background-color: #528cbb;
}

body.dark-mode .contact-form {
    background-color: #3a3f4b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .contact-form h2 {
    color: #92bce6;
}

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

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

body.dark-mode .contact-form input[type="text"]:focus,
body.dark-mode .contact-form input[type="email"]:focus,
body.dark-mode .contact-form textarea:focus {
    border-color: #61afef;
}

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

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

body.dark-mode #form-status-message {
    color: #f0f0f0; /* Default text color for messages in dark mode */
}
