:root {
    --bg-color: #f0f2f5;
    --container-bg: white;
    --text-color: #333;
}

body.dark-mode {
    --bg-color: #121212;
    --container-bg: #1e1e1e;
    --text-color: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    background-image: url("data:image/svg+xml,%3csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3e%3cfilter id='noise' x='0' y='0'%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='0.05'/%3e%3c/svg%3e");
    transition: background-color 0.3s, color 0.3s;
}

.container {
    text-align: center;
    background-color: var(--container-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    position: relative;
}

h1 {
    font-size: 2.5em;
    color: var(--text-color);
    margin-bottom: 30px;
}

.numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.lotto-ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#generate-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

#generate-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

@media (max-width: 600px) {
    .lotto-ball {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }

    h1 {
        font-size: 2em;
    }

    #generate-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
}

.theme-toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.2s;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
}

.contact-section {
    margin-top: 40px;
    padding-top: 20px;
}

.contact-section hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin-bottom: 30px;
}

.contact-section h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--text-color);
}

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

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

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

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

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