body {
    font-family: 'Helvetica Neue', sans-serif;
    display: flex;
    flex-direction: column; /* Changed to column to stack lottery and form vertically */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1a1a1a;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    text-align: center;
    background-color: #2c2c2c;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s;
    margin-bottom: 30px; /* Add some space between lottery and form */
}

h1 {
    margin-bottom: 30px;
    font-size: 3em;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.7), 0 0 20px rgba(76, 175, 80, 0.5);
}

.lotto-numbers {
    display: flex;
    margin: 30px 0;
    justify-content: center;
    align-items: center;
}

.number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #3a3a3a;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    font-size: 2em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
}

.number:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.plus {
    font-size: 2em;
    margin: 0 10px;
}

.bonus {
    background-color: #2196F3; /* Blue for bonus number */
}

#generate-btn, #theme-toggle-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    background-color: #4CAF50;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    margin-top: 10px;
}

#generate-btn:hover, #theme-toggle-btn:hover {
    background-color: #45a049;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
}

#generate-btn:active, #theme-toggle-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.4);
}

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

body.light-mode .container {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode h1 {
    text-shadow: none;
}

body.light-mode .number {
    background-color: #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .number:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

body.light-mode #generate-btn, body.light-mode #theme-toggle-btn {
    background-color: #81c784;
    box-shadow: 0 5px 15px rgba(129, 199, 132, 0.4);
}

body.light-mode #generate-btn:hover, body.light-mode #theme-toggle-btn:hover {
    background-color: #66bb6a;
    box-shadow: 0 8px 25px rgba(102, 187, 106, 0.6);
}

/* Contact Form Styles */
.contact-form-container {
    background-color: #2c2c2c;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 500px;
    margin-top: 30px;
}

.contact-form-container h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #4CAF50;
    text-align: center;
}

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

.contact-form-container label {
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #ddd;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container textarea {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #3a3a3a;
    color: #fff;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

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

.contact-form-container button[type="submit"] {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    background-color: #4CAF50;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    align-self: center;
    width: 50%;
    margin-top: 10px;
}

.contact-form-container button[type="submit"]:hover {
    background-color: #45a049;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
}

.contact-form-container button[type="submit"]:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.4);
}

/* Light mode adjustments for form */
body.light-mode .contact-form-container {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .contact-form-container h2 {
    color: #4CAF50;
}

body.light-mode .contact-form-container label {
    color: #555;
}

body.light-mode .contact-form-container input[type="text"],
body.light-mode .contact-form-container input[type="email"],
body.light-mode .contact-form-container textarea {
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    color: #333;
}

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

body.light-mode .contact-form-container button[type="submit"] {
    background-color: #81c784;
    box-shadow: 0 5px 15px rgba(129, 199, 132, 0.4);
}

body.light-mode .contact-form-container button[type="submit"]:hover {
    background-color: #66bb6a;
    box-shadow: 0 8px 25px rgba(102, 187, 106, 0.6);
}
