body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #333;
    color: #f0f0f0;
}

.container {
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    margin-top: 2rem; /* Add margin to the top */
    margin-bottom: 2rem; /* Add margin to the bottom */
}

body.dark-mode .container {
    background-color: #444;
}

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

.number-placeholder {
    width: 50px;
    height: 50px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: border-color 0.3s;
}

body.dark-mode .number-placeholder {
    border-color: #666;
}

#generate-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 2rem;
}

.previous-numbers h2 {
    margin-top: 0;
}

#previous-list {
    list-style: none;
    padding: 0;
}

#previous-list li {
    margin-bottom: 0.5rem;
}

/* Theme switch styles */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Contact Form Styles */
.contact-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

body.dark-mode .contact-form {
    border-top-color: #555;
}

.contact-form h2 {
    margin-top: 0;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 0.5rem;
    width: 100%;
    box-sizing: border-box; /* To include padding in the width */
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background-color: #555;
    border-color: #777;
    color: #f0f0f0;
}

.contact-form button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
