
:root {
    --background-color: #ffffff;
    --primary-color: #f0f0f0;
    --secondary-color: #e0e0e0;
    --text-color: #000000;
    --accent-color: #6200ee;
    --font-family: 'Roboto', sans-serif;
}

[data-theme="dark"] {
    --background-color: #121212;
    --primary-color: #1e1e1e;
    --secondary-color: #2e2e2e;
    --text-color: #ffffff;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    display: flex;
    flex-direction: column; /* Changed to column to stack main and form */
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Changed to min-height to allow content to grow */
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.app-container {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    margin-bottom: 2rem; /* Add some space below the app container */
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    position: fixed; /* Position relative to the viewport */
    top: 1rem; /* 1rem from the top */
    right: 1rem; /* 1rem from the right */
    z-index: 1000; /* Ensure it stays on top of other content */
}

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

#generate-btn:hover {
    background-color: #3700b3;
}

/* Contact Form Styles */
.contact-form-container {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    text-align: center;
    transition: background-color 0.3s ease;
}

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

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

.contact-form-container label {
    align-self: flex-start;
    color: var(--text-color);
    font-weight: bold;
}

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

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

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

.contact-form-container button[type="submit"]:hover {
    background-color: #3700b3;
}

#disqus_thread {
    width: 100% !important;
    max-width: 800px; /* Optional: to prevent it from becoming too wide on very large screens */
    margin-top: 2rem; /* Add some space above the disqus section */
}
