body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    background-image: linear-gradient(45deg, #f9f9f9 25%, transparent 25%),
                      linear-gradient(-45deg, #f9f9f9 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #f9f9f9 75%),
                      linear-gradient(-45deg, transparent 75%, #f9f9f9 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;

    /* Adjustments for container to prevent overflow when form is added */
    display: block; /* Change from flex to block to allow vertical stacking of containers */
    height: auto; /* Allow body to grow with content */
    min-height: 100vh; /* Ensure it takes at least full viewport height */
    padding: 20px 0; /* Add some padding to top/bottom */
    margin: 0;
}

.container {
    text-align: center;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    border: 1px solid #e0e0e0;
    /* Adjustments for container to prevent overflow when form is added */
    margin-bottom: 20px; /* Add some space between containers if there are multiple */
    margin-top: 20px; /* Add some space above containers */
    margin-left: auto;
    margin-right: auto;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.lotto-numbers-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    min-height: 70px;
}

#generate-btn {
    background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    outline: none;
}

#generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#generate-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Styling for the form separator */
hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 40px 0;
}

/* Form specific styles */
.container h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: bold;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between form elements */
    align-items: flex-start; /* Align labels and inputs to the left */
}

form label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

form input[type="text"],
form textarea {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input[type="text"]:focus,
form textarea:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.2);
    outline: none;
}

form p {
    font-weight: bold;
    color: #555;
    margin-top: 10px;
    margin-bottom: 5px;
}

form input[type="radio"] {
    margin-right: 8px;
}

form button[type="submit"] {
    background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    outline: none;
    margin-top: 20px;
    align-self: center; /* Center the button */
    width: auto;
}

form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

form button[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
