
:root {
    --bg-color-start: #1e1e1e;
    --bg-color-end: #2d2d2d;
    --container-bg: rgba(0, 0, 0, 0.2);
    --text-color: #ffffff;
    --accent-color: #ff9800;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --number-bg-color: rgba(255, 255, 255, 0.1);
}

.light-mode {
    --bg-color-start: #f0f2f5;
    --bg-color-end: #e0e4e8;
    --container-bg: rgba(255, 255, 255, 0.8);
    --text-color: #333333;
    --accent-color: #ff9800;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --number-bg-color: rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 60px 20px;
    background-size: 200% 200%;
    animation: gradient-animation 10s ease infinite;
    transition: background 0.3s ease, color 0.3s ease;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    text-align: center;
    background: var(--container-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 30px var(--shadow-color);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
}

.contact-container {
    text-align: left;
}

.contact-container h2 {
    text-align: center;
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--text-color);
    background: var(--number-bg-color);
    color: var(--text-color);
    box-sizing: border-box;
    font-size: 1em;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #ffb74d;
    transform: translateY(-2px);
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px var(--shadow-color);
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.number-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.number-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--number-bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    color: #fff; /* Always white for circle text for better contrast with colored backgrounds */
    box-shadow: 0 8px 15px var(--shadow-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
    transform: scale(0);
    animation: pop-in 0.5s forwards;
}

@keyframes pop-in {
    to {
        transform: scale(1);
    }
}

#generate-btn {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#generate-btn:hover {
    background-color: #ffb74d;
    transform: translateY(-3px);
}

#generate-btn:active {
    transform: translateY(1px);
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
}

#theme-btn {
    background: var(--number-bg-color);
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

#theme-btn:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.color-1 { background: #F44336; } /* Red */
.color-2 { background: #FFC107; } /* Amber */
.color-3 { background: #4CAF50; } /* Green */
.color-4 { background: #2196F3; } /* Blue */
.color-5 { background: #9C27B0; } /* Purple */

@media (max-width: 480px) {
    .container {
        padding: 20px;
        width: 90%;
    }
    h1 {
        font-size: 2em;
    }
    .number-circle {
        width: 50px;
        height: 50px;
        font-size: 1.4em;
    }
}
