
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --primary-color: #ff2e63;
    --secondary-color: #08d9d6;
    --background-color: #252a34;
    --text-color: #eaeaea;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column; /* Changed to column to allow footer to sit at bottom */
    justify-content: center; /* Adjust as needed with column flex */
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%23343a40' fill-opacity='0.1'%3E%3Crect x='0' y='0' width='100' height='100'/%3E%3C/g%3E%3C/svg%3E");
}

.container {
    text-align: center;
    flex-grow: 1; /* Allow container to grow and push footer down */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* Ensure container takes full width for responsive behavior */
    padding: 20px 0; /* Add some vertical padding */
    box-sizing: border-box; /* Include padding in width */
}

h1 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--background-color);
    font-size: 2rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    box-shadow: 0 10px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#generate-btn {
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    background-color: var(--primary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-color), 0 0 25px var(--primary-color);
    transition: all 0.3s ease;
}

#generate-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--primary-color), 0 0 30px var(--primary-color);
}

#generate-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 2px 10px var(--primary-color), 0 0 15px var(--primary-color);
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    .number {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    #generate-btn {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }
}

/* Light Mode */
body.light-mode {
    --background-color: #f0f2f5;
    --text-color: #1c1e21;
    --shadow-color: rgba(0, 0, 0, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%23e9ebee' fill-opacity='0.6'%3E%3Crect x='0' y='0' width='100' height='100'/%3E%3C/g%3E%3C/svg%3E");
}

body.light-mode .number {
    color: #f0f2f5;
}


/* Theme Toggle Button */
#theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px var(--secondary-color);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--secondary-color);
}

/* Partnership Form */
.partnership-form {
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
    max-width: 500px;
    width: 90%;
}

.partnership-form h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-shadow: 0 0 8px var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 10px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    background-color: #3b4252; /* A slightly different dark shade for input */
    color: var(--text-color);
    font-size: 1rem;
    box-sizing: border-box; /* Include padding in width */
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.5); /* Assuming primary-color-rgb is defined or calculate it */
}

/* Adjust for light mode inputs */
body.light-mode .form-group input[type="text"],
body.light-mode .form-group input[type="email"],
body.light-mode .form-group textarea {
    background-color: #ffffff; /* White background for light mode */
    color: var(--text-color);
    border: 1px solid #ccc;
}

body.light-mode .form-group input[type="text"]:focus,
body.light-mode .form-group input[type="email"]:focus,
body.light-mode .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 46, 99, 0.3); /* Using explicit rgba for focus shadow in light mode */
}


#submit-btn {
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    background-color: var(--primary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-color), 0 0 25px var(--primary-color);
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

#submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--primary-color), 0 0 30px var(--primary-color);
}

#submit-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 2px 10px var(--primary-color), 0 0 15px var(--primary-color);
}

/* Content Section Styles */
.content-section {
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
    max-width: 500px;
    width: 90%;
    margin-bottom: 2rem; /* Space between content and form */
    text-align: left;
}

.content-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 8px var(--primary-color);
    text-align: center; /* Override container's text-align */
}

.content-section h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-section ul {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin-bottom: 1rem;
}

.content-section li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.content-section li::before {
    content: '•'; /* Custom bullet point */
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Footer Styles */
footer {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure footer spans full width */
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    text-decoration: underline;
}
