:root {
    --background-color: #f0f0f0;
    --container-background: #ffffff;
    --primary-color: #ff7f50;
    --secondary-color: #4CAF50;
    --text-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --background-color: #333;
    --container-background: #444;
    --text-color: #f0f0f0;
    --shadow-color: rgba(0, 0, 0, 0.4);
}


body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s ease;
}

main {
    width: 100%;
    max-width: 550px; /* Give a consistent max-width */
    margin: 2rem auto; /* Center the main container */
    padding: 0 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem; /* Add space between the containers */
}

.lotto-machine {
    background-color: var(--container-background);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px var(--shadow-color);
    text-align: center;
    transition: background-color 0.3s ease;
    width: 100%;
}

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

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

.lotto-ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: bounce-in 0.5s ease;
}

@keyframes bounce-in {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    80% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#draw-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#draw-button:hover {
    background-color: #ff6347;
    transform: translateY(-2px);
}

#draw-button:active {
    transform: translateY(0);
}

.theme-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10; /* Ensure it's above other elements */
}

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

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

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

/* Contact Form Styles */
.contact-form-container {
    background-color: var(--container-background);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px var(--shadow-color);
    text-align: center;
    width: 100%;
    transition: background-color 0.3s ease;
}

#disqus_thread {
    background-color: var(--container-background);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px var(--shadow-color);
    width: 100%;
}


.contact-form-container h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.contact-form button[type="submit"]:hover {
    background-color: #ff6347;
    transform: translateY(-2px);
}

.contact-form button[type="submit"]:active {
    transform: translateY(0);
}