:root {
    --bg-color: #f0f0f0;
    --container-bg: #ffffff;
    --text-color: #333333;
    --lotto-number-bg: #4CAF50;
    --button-bg: #007BFF;
    --button-hover-bg: #0056b3;
}

body.dark-mode {
    --bg-color: #121212;
    --container-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --lotto-number-bg: #388E3C;
    --button-bg: #1e88e5;
    --button-hover-bg: #1565c0;
}

body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

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

h1 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

#lotto-numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.lotto-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--lotto-number-bg);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    animation: appear 0.5s ease-in-out;
}

.controls {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

#theme-toggle:hover {
    background-color: rgba(128, 128, 128, 0.2);
}

#generate-btn {
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    background-color: var(--button-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.partnership-section {
    margin-top: 2rem;
    padding-top: 1rem;
}

.partnership-section hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin-bottom: 1.5rem;
}

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

.form-group {
    margin-bottom: 1rem;
}

.partnership-section input,
.partnership-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: var(--container-bg);
    color: var(--text-color);
    box-sizing: border-box;
}

.partnership-section textarea {
    height: 80px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #218838;
}

.comments-section {
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: left; /* Comments look better left-aligned */
}

.comments-section hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin-bottom: 1.5rem;
}

@keyframes appear {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}