:root {
    --bg-color: #f0f2f5;
    --container-bg-color: #fff;
    --text-color: #333;
    --number-bg-color: #4CAF50;
    --button-bg-color: #008CBA;
    --button-hover-bg-color: #005f7a;
    --number-text-color: #fff;
    --box-shadow-color: rgba(0, 0, 0, 0.1);
    --number-box-shadow-color: rgba(0, 0, 0, 0.2);
}

.dark-mode {
    --bg-color: #2c3e50;
    --container-bg-color: #34495e;
    --text-color: #ecf0f1;
    --number-bg-color: #e67e22;
    --button-bg-color: #f39c12;
    --button-hover-bg-color: #e67e22;
    --number-text-color: #fff;
    --box-shadow-color: rgba(0, 0, 0, 0.3);
    --number-box-shadow-color: rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column; /* Stack children vertically */
    justify-content: center;
    align-items: center; /* Center horizontally */
    min-height: 100vh; /* Use min-height to allow content to extend beyond viewport */
    margin: 0;
    transition: background-color 0.3s ease;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Allow this wrapper to take up available space */
}

.form-container {
    margin-top: auto; /* Pushes the form to the bottom */
    margin-bottom: 20px; /* Add some space from the bottom */
    padding: 30px;
    max-width: 500px;
    width: 90%; /* Adjust width for better responsiveness */
}

.container {
    text-align: center;
    background-color: var(--container-bg-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--box-shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

h1 {
    color: var(--text-color);
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

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

.number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: var(--number-bg-color);
    color: var(--number-text-color);
    font-size: 24px;
    font-weight: bold;
    margin: 0 10px;
    box-shadow: 0 2px 4px var(--number-box-shadow-color);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

#generate-btn {
    background-color: var(--button-bg-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

#generate-btn:hover {
    background-color: var(--button-hover-bg-color);
}

.theme-toggle {
    background-color: #555;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: #777;
}

/* Form Styles */
.form-container {
    margin-top: 40px;
    padding: 30px;
    max-width: 500px;
}

.form-container h2 {
    color: var(--text-color);
    margin-bottom: 25px;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-container label {
    text-align: left;
    color: var(--text-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: var(--container-bg-color);
    color: var(--text-color);
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.form-container input[type="text"]:focus,
.form-container input[type="email"]:focus,
.form-container textarea:focus {
    border-color: var(--button-bg-color);
    outline: none;
}

.form-container button[type="submit"] {
    background-color: var(--button-bg-color);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.form-container button[type="submit"]:hover {
    background-color: var(--button-hover-bg-color);
}

/* Disqus comments styling */
#disqus_thread {
    width: 100%;
    max-width: 800px; /* Adjust as needed */
    margin: 40px auto; /* Center it and add vertical spacing */
    background-color: var(--container-bg-color); /* Use existing theme variable */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--box-shadow-color);
    min-height: 300px; /* Ensure enough space for the comments to load */
}
