
:root {
    --text-color: #132a3a;
    --bg-start: #f8fcff;
    --bg-mid: #d8e9f3;
    --bg-end: #bfd6e4;
    --container-bg: rgba(255, 255, 255, 0.78);
    --container-border: rgba(19, 42, 58, 0.12);
    --container-shadow: 0 0.5rem 1rem rgba(19, 42, 58, 0.18);
    --heading-color: #0f2a3f;
    --subheading-color: #1e3f56;
    --muted-label: #324f61;
    --button-bg: #0a7ea4;
    --button-bg-hover: #086686;
    --number-bg: #ffffff;
    --number-text: #142c3d;
    --number-border: #c4d7e2;
    --special-bg: #d92a2a;
    --special-border: #b82222;
    --link-color: #0a7ea4;
    --radio-bg: #eef5f9;
    --radio-border: #7a9bae;
    --radio-active: #0a7ea4;
    --power-play-color: #9b5f00;
    --divider: rgba(19, 42, 58, 0.15);
}

:root[data-theme="dark"] {
    --text-color: #ffffff;
    --bg-start: #0f2027;
    --bg-mid: #203a43;
    --bg-end: #2c5364;
    --container-bg: rgba(0, 0, 0, 0.2);
    --container-border: rgba(255, 255, 255, 0.1);
    --container-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
    --heading-color: #ffffff;
    --subheading-color: #ffffff;
    --muted-label: #eeeeee;
    --button-bg: #007bff;
    --button-bg-hover: #0056b3;
    --number-bg: #ffffff;
    --number-text: #000000;
    --number-border: #dddddd;
    --special-bg: #d92a2a;
    --special-border: #b82222;
    --link-color: #17a2b8;
    --radio-bg: #333333;
    --radio-border: #aaaaaa;
    --radio-active: #007bff;
    --power-play-color: #ffc107;
    --divider: rgba(255, 255, 255, 0.2);
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(to right, var(--bg-start), var(--bg-mid), var(--bg-end));
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background 0.25s ease, color 0.25s ease;
}

.container {
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--container-shadow);
    text-align: center;
    max-width: 90%;
    border: 1px solid var(--container-border);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.site-nav a {
    font-size: 0.95rem;
    padding: 0.25rem 0.45rem;
    border-radius: 0.35rem;
    text-decoration: none;
    border: 1px solid var(--container-border);
}

.site-nav a:hover {
    text-decoration: none;
    background-color: var(--button-bg);
    color: #fff;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
}

.theme-toggle {
    border: 1px solid var(--container-border);
    background: transparent;
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
    background-color: var(--button-bg);
    color: #fff;
    border-color: var(--button-bg);
}

h1 {
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.lottery-selection, .powerball-options {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.lottery-selection label, .powerball-options label {
    margin: 0 0.75rem;
    cursor: pointer;
    color: var(--muted-label);
}

.lottery-selection {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

#generate-btn {
    background-color: var(--button-bg);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
}

#generate-btn:hover {
    background-color: var(--button-bg-hover);
    transform: translateY(-2px);
}

.numbers-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.number {
    background-color: var(--number-bg);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--number-text);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 3px solid var(--number-border);
}

.number.special {
    background-color: var(--special-bg); /* Red for Powerball */
    color: #fff;
    border-color: var(--special-border);
}

.power-play-container {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--power-play-color);
}

.double-play-container {
    display: none;
    margin-top: 2rem;
    border-top: 1px solid var(--divider);
    padding-top: 2rem;
}

h2 {
    margin-bottom: 1rem;
    color: var(--subheading-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Custom Radio Buttons */
input[type="radio"] {
    display: none;
}
input[type="radio"] + label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    min-height: 132px;
    margin: 0;
}
input[type="radio"] + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--radio-border);
    border-radius: 100%;
    background: var(--radio-bg);
}
input[type="radio"]:checked + label:before {
    border-color: var(--radio-active);
    background: var(--radio-active);
}
input[type="radio"]:checked + label:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 100%;
    background: #fff;
}

.powerball-options {
    display: none;
}

.lottery-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.mega-millions-logo {
    height: 64px;
}

.powerball-logo {
    height: 128px;
}

.partnership-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider);
    text-align: left;
}

.business-inquiry-trigger {
    margin-top: 2rem;
    margin-bottom: 0;
}

.business-inquiry-toggle {
    background: none;
    border: none;
    color: var(--link-color);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.business-inquiry-toggle:hover {
    color: var(--button-bg-hover);
}

.is-hidden {
    display: none;
}

.partnership-section h2 {
    margin-bottom: 0.8rem;
}

.partnership-form {
    display: grid;
    gap: 0.55rem;
}

.partnership-form label {
    font-weight: 600;
    color: var(--muted-label);
}

.partnership-form input,
.partnership-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--container-border);
    background: var(--container-bg);
    color: var(--text-color);
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
    font: inherit;
}

.partnership-form textarea {
    resize: vertical;
    min-height: 120px;
}

.partnership-form button {
    margin-top: 0.4rem;
    background-color: var(--button-bg);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.partnership-form button:hover {
    background-color: var(--button-bg-hover);
}

.info-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--divider);
    text-align: left;
}

.info-section p {
    line-height: 1.5;
    margin: 0.5rem 0;
}

.info-section ul,
.info-section ol,
.legal-content ul,
.legal-content ol {
    margin: 0.5rem 0 0.8rem 1.2rem;
    padding: 0;
}

.info-section li,
.legal-content li {
    margin: 0.35rem 0;
}

.info-section h3 {
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    color: var(--subheading-color);
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.site-footer {
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--divider);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.site-footer a {
    font-size: 0.95rem;
}

.legal-page {
    max-width: 840px;
}

.legal-content {
    text-align: left;
    line-height: 1.6;
}

.legal-content h2 {
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-color);
}
