
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --bg-color: #f8f9fa;
    --container-bg: #ffffff;
    --text-color: #343a40;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --grid-color: rgba(0, 0, 0, 0.05);
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #f8f9fa;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --grid-color: rgba(255, 255, 255, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    margin: 0;
    background-color: var(--bg-color);
    background-image: linear-gradient(45deg, var(--grid-color) 25%, transparent 25%),
                      linear-gradient(-45deg, var(--grid-color) 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, var(--grid-color) 75%),
                      linear-gradient(-45deg, transparent 75%, var(--grid-color) 75%);
    background-size: 20px 20px;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    position: relative;
    text-align: center;
    padding: 3rem 2rem 2rem;
    width: 100%;
    max-width: 500px;
    background-color: var(--container-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.theme-toggle:hover {
    background-color: var(--grid-color);
}

h1 {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.lotto-numbers-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.generate-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

.divider {
    border: none;
    height: 1px;
    background-color: var(--grid-color);
    margin: 3rem 0;
}

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

.contact-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--grid-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    opacity: 0.9;
}

lotto-ball {
    width: 60px;
    height: 60px;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .lotto-numbers-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    lotto-ball {
        width: 45px;
        height: 45px;
    }
}
