:root {
    --bg-color: #f0f0f0;
    --text-color: #333;
    --container-bg-color: white;
    --ball-color-1: #fbc400;
    --ball-color-2: #69c8f2;
    --ball-color-3: #ff7272;
    --ball-color-4: #aaa;
    --ball-color-5: #b0d840;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --bg-color: #2c2c2c;
    --text-color: #f0f0f0;
    --container-bg-color: #3b3b3b;
    --shadow-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/%3E%3C/svg%3E');
    transition: background-color 0.3s, color 0.3s;
}

.container {
    text-align: center;
    padding: 2rem;
    background-color: var(--container-bg-color);
    border-radius: 1rem;
    box-shadow: 0 10px 25px var(--shadow-color);
    transition: background-color 0.3s;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

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

.lotto-ball {
    width: 60px;
    height: 60px;
    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 var(--shadow-color);
    transition: transform 0.2s;
}

.lotto-ball:hover {
    transform: translateY(-5px);
}

#generate-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background-color: #4a90e2;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: background-color 0.2s, transform 0.2s;
}

#generate-btn:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
}

#generate-btn:active {
    transform: translateY(0);
}

/* Contact Form */
#contact-section {
    margin-top: 2rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
}

#contact-form button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background-color: #4a90e2;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: background-color 0.2s, transform 0.2s;
}

#contact-form button:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
}

#form-status {
    margin-top: 1rem;
    font-weight: bold;
}

#disqus_thread {
    margin-top: 2rem;
}

/* Theme Switch */
.theme-switch-wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
}

.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%;
}
