
:root {
    --bg-color: #f0f2f5;
    --container-bg: #ffffff;
    --text-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --input-bg: #ffffff;
    --input-border: #ddd;
}

.dark-mode {
    --bg-color: #18191a;
    --container-bg: #242526;
    --text-color: #e4e6eb;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --input-bg: #3a3b3c;
    --input-border: #4e4f50;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    text-align: center;
    background-color: var(--container-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
    position: relative;
    transition: background-color 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 400px;
}

#theme-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: border-color 0.3s, color 0.3s;
}

h1 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 24px;
}

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

.lotto-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

#generate-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-bottom: 20px;
}

#generate-btn:hover {
    background-color: #0056b3;
}

.contact-section {
    margin-top: 30px;
    text-align: left;
}

hr {
    border: 0;
    border-top: 1px solid var(--input-border);
    margin: 20px 0;
}

h3 {
    text-align: center;
    margin-bottom: 15px;
}

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

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background-color: var(--input-bg);
    color: var(--text-color);
    box-sizing: border-box;
}

textarea {
    height: 80px;
    resize: vertical;
}

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

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

@media (max-width: 480px) {
    .container {
        padding: 20px;
        margin: 10px;
    }

    .lotto-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    #generate-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}
