
:root {
    --bg-color: #222;
    --text-color: #fff;
    --btn-bg: #007bff;
    --btn-text: #fff;
    --ball-text: #222;
    --noise-opacity: 0.05;
}

[data-theme="light"] {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --btn-bg: #0069d9;
    --btn-text: #fff;
    --ball-text: #222;
    --noise-opacity: 0.02;
}

body {
    font-family: sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='var(--noise-opacity)'/%3E%3C/svg%3E");
}

main {
    text-align: center;
    position: relative;
}

.theme-toggle {
    position: absolute;
    top: -60px;
    right: 0;
}

#theme-btn {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#theme-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

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

#generate-btn {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5), 0 0 20px rgba(0, 123, 255, 0.3);
}

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

lotto-ball {
    --ball-color: #eee;
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--ball-color);
    color: var(--ball-text);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.4);
}

#partnership-section {
    margin-top: 4rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

#partnership-section hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

[data-theme="light"] #partnership-section hr {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#partnership-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-family: inherit;
    box-sizing: border-box;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(0, 0, 0, 0.02);
}

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

#submit-btn {
    width: 100%;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#submit-btn:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

#comments-section {
    margin-top: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 4rem;
}

#comments-section hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

[data-theme="light"] #comments-section hr {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
