:root {
    --primary-color: #4a90e2;
    --background-color: #f0f2f5;
    --text-color: #333;
    --white: #fff;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    width: 90%;
    max-width: 500px;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#lotto-numbers {
    /* This will now act as a container for all game sets */
    display: flex;
    flex-direction: column; /* Stack game sets vertically */
    gap: 20px; /* Space between each game set */
    margin: 2rem 0;
}

.lotto-game-set {
    background-color: var(--background-color); /* Use background color for each set */
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lotto-game-set h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.lotto-numbers-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap; /* Allow numbers to wrap to the next line if needed */
}

.number {
    background-color: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#generate-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#generate-btn:hover {
    background-color: #357abd;
}

/* Dark mode styles */
body.dark-mode {
    --background-color: #2c3e50; /* Darker background */
    --text-color: #ecf0f1;     /* Light text */
    --white: #34495e;          /* Darker white for containers */
    --primary-color: #8e44ad;  /* A new primary color for dark mode */
}

/* Theme Toggle Button Styles */
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    outline: none;
    color: var(--text-color); /* Use text color for the icon */
    transition: color 0.3s ease;
}

#theme-toggle:hover {
    opacity: 0.8;
}

.controls {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    justify-content: center;
}

.controls select {
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    background-color: var(--white);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Dark mode specific styles for controls */
body.dark-mode .controls select {
    border-color: #555;
    background-color: #3f51b5; /* Darker background for dropdowns */
    color: var(--text-color);
}

/* Form Styles */
.contact-form-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.contact-form-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--text-color);
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.inquiry-form button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: center; /* Center the button */
    margin-top: 1rem;
}

.inquiry-form button[type="submit"]:hover {
    background-color: #357abd;
}

.form-message {
    margin-top: 1rem;
    font-weight: bold;
    color: var(--primary-color); /* Use primary color for messages */
}

/* Dark mode specific form styles */
body.dark-mode .contact-form-section {
    background-color: var(--white); /* Darker container background */
}

body.dark-mode .form-group input[type="text"],
body.dark-mode .form-group input[type="email"],
body.dark-mode .form-group textarea {
    border-color: #555;
    background-color: #3f51b5; /* Darker input background */
    color: var(--text-color);
}

body.dark-mode .inquiry-form button[type="submit"] {
    background-color: #8e44ad; /* Dark mode primary color for button */
}

body.dark-mode .inquiry-form button[type="submit"]:hover {
    background-color: #9b59b6;
}