
:root {
    --bg-color: rgba(26, 26, 26, 0.7); /* Adjusted for overlay on background image */
    --text-color: #fff;
    --container-bg-color: rgba(44, 44, 44, 0.8); /* Adjusted for blending */
    --h1-color: #fff;
    --number-bg-color: #fff;
    --number-text-color: #333;
    --powerball-bg-color: #ff4d4d;
    --powerball-text-color: #fff;
    --body-filter: grayscale(100%); /* Default to grayscale for dark mode */
}

body[data-theme="light"] {
    --bg-color: rgba(240, 240, 240, 0.7);
    --text-color: #333;
    --container-bg-color: rgba(255, 255, 255, 0.8);
    --h1-color: #333;
    --number-bg-color: #eee;
    --number-text-color: #333;
    --powerball-bg-color: #cc3333;
    --powerball-text-color: #fff;
    --body-filter: grayscale(0%); /* Full color for light mode */
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: transparent; /* Changed to transparent as image is the main background */
    color: var(--text-color);
    display: flex;
    flex-direction: column; /* Allow content to stack vertically */
    justify-content: flex-start; /* Align content to the top */
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: url('https://picsum.photos/1920/1080?image=1018'); /* Mountain scene */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Keep background fixed during scroll if content overflows */
    filter: var(--body-filter);
    transition: filter 0.5s ease; /* Smooth transition for grayscale */
}

#theme-switch-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    z-index: 10; /* Ensure switch is above background */
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

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

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

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

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

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

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

/* Contact Form Specific Styles */
#contact-form-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px; /* Space from the generator */
    margin-bottom: 40px;
}

.contact-container {
    width: 90%;
    max-width: 500px; /* Limit form width */
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    background: radial-gradient(circle at center, var(--container-bg-color) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-container h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--h1-color); /* Use h1-color for consistency */
}

.form-group {
    margin-bottom: 1rem;
    width: 100%;
    text-align: left;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: var(--number-bg-color); /* Use number-bg-color for input backgrounds */
    color: var(--number-text-color); /* Use number-text-color for input text */
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

#submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-top: 1.5rem;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0);
}

#submit-btn:hover {
    background-color: #45a049;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
}

/* Disqus Specific Styles */
#disqus-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px; /* Add some space at the bottom of the page */
}

.disqus-container {
    width: 90%;
    max-width: 800px; /* Wider container for comments */
    padding: 2rem;
    border-radius: 15px;
    /* text-align: center; */ /* Removed to prevent conflicts with Disqus internal alignment */
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    /* background: radial-gradient(circle at center, var(--container-bg-color) 60%, transparent 100%); */ /* Made transparent for better blending */
    background-color: transparent; /* Explicitly set transparent to let page background show */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.disqus-container h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--h1-color);
}
