
:root {
    --bg-color: #f0f0f0;
    --container-bg: white;
    --text-color: #333;
    --number-bg: #4CAF50;
    --button-bg: #008CBA;
    --button-hover-bg: #005f7a;
}

body.dark-mode {
    --bg-color: #222;
    --container-bg: #333;
    --text-color: #eee;
    --number-bg: #6a0dad; /* A darker, purple-ish tone for night mode */
    --button-bg: #8A2BE2; /* A purple tone for night mode */
    --button-hover-bg: #6A0DAD;
}

body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    margin: 0;
    transition: background-color 0.3s ease; /* Smooth transition for theme change */
}

.container {
    text-align: center;
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

h1 {
    color: var(--text-color);
    transition: color 0.3s ease; /* Smooth transition */
}

#numbers-display {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--number-bg);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background-color 0.3s ease; /* Smooth transition */
}

#generate-button, #theme-toggle {
    background-color: var(--button-bg);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin: 0.5rem; /* Add some space around buttons */
}

#generate-button:hover, #theme-toggle:hover, .feedback-section button[type="submit"]:hover {
    background-color: var(--button-hover-bg);
}

/* Feedback Form Styles */
.feedback-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--text-color); /* A subtle separator */
}

.feedback-section h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feedback-section form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.feedback-section label {
    color: var(--text-color);
    font-weight: bold;
}

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

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

.feedback-section button[type="submit"] {
    background-color: var(--button-bg);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

