:root {
    --background-color-light: #f0f2f5;
    --text-color-light: #333;
    --card-background-light: #ffffff;
    --button-background-light: #4CAF50;
    --button-text-light: #ffffff;

    --background-color-dark: #121212;
    --text-color-dark: #e0e0e0;
    --card-background-dark: #1e1e1e;
    --button-background-dark: #66bb6a;
    --button-text-dark: #121212;

    --background-color: var(--background-color-light);
    --text-color: var(--text-color-light);
    --card-background: var(--card-background-light);
    --button-background: var(--button-background-light);
    --button-text: var(--button-text-light);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
    margin: 0;
    padding: 20px; 
    transition: background-color 0.3s, color 0.3s;
}


body.dark-mode {
    --background-color: var(--background-color-dark);
    --text-color: var(--text-color-dark);
    --card-background: var(--card-background-dark);
    --button-background: var(--button-background-dark);
    --button-text: var(--button-text-dark);
}

main {
    text-align: center;
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    margin-bottom: 40px;
}

h1 {
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 600;
}

#lotto-numbers-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

#generate-btn {
    background-color: var(--button-background);
    color: var(--button-text);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#generate-btn:hover {
    transform: translateY(-2px);
}

.theme-switcher-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

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

.theme-switcher 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: #2196F3;
}

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

.disqus-section {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    margin-bottom: 40px;
    text-align: center;
}

.disqus-section h2 {
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 600;
}

.contact-section {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: 600;
}

.contact-section p {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

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

.contact-section button {
    background-color: var(--button-background);
    color: var(--button-text);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.contact-section button:hover {
    transform: translateY(-2px);
}
