:root {
    --primary-color: #4CAF50;
    --secondary-color: #FFC107;
    --accent-color: #2196F3;
    --text-dark: #333;
    --text-light: #fff;
    --background-light: #f4f7f6;
    --background-dark: #bba847;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

button {
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 15px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hero-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.hero-banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-banner-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.draw-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: bold;
}

.draw-countdown-timer div {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.draw-countdown-timer span {
    font-size: 3rem;
    color: var(--secondary-color);
}

.primary-call-to-action {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.primary-call-to-action:hover {
    background-color: #FFD54F;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

#how-it-works-section {
    padding: 60px 0;
    text-align: center;
}

.section-intro h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-intro p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 50px;
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: start;
    justify-content: center;
}

.process-step-card {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-color);
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.step-number-tag {
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    top: -20px;
    left: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.process-step-card h3 {
    margin-top: 25px;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.process-step-card p {
    font-size: 0.95rem;
    color: #666;
}

.flow-arrow {
    display: none;
    font-size: 3rem;
    color: var(--secondary-color);
    align-self: center;
    transform: rotate(90deg);
}

.tab-navigation {
    display: flex;
    justify-content: center;
    background-color: var(--background-dark);
    padding: 15px 20px;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-navigation button {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.tab-navigation button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.tab-navigation button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.content-section {
    display: none;
    padding: 40px 20px;
    max-width: 900px;
    margin: 30px auto;
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    animation: fadeIn 0.5s ease-out;
}

.content-section.active {
    display: block;
}

.selection-step {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-light);
}

.selection-step label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.selection-step select,
.selection-step input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    background-color: var(--text-light);
}

.radio-options-row {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-options-row label {
    display: flex;
    align-items: center;
    font-weight: normal;
    color: var(--text-dark);
}

.radio-options-row input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.number-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.number-selection-grid button {
    background-color: #e0e0e0;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.number-selection-grid button.active {
    background-color: var(--accent-color);
    color: var(--text-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.total-cost-display {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: right;
    margin-top: 30px;
    color: var(--primary-color);
}

.add-to-cart-btn {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #5cb85c;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.info-blocks-container,
.info-details-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.info-details-block {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.info-details-block h2,
.info-details-block h3,
.info-details-block h4 {
    color: var(--accent-color);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.info-details-block p,
.info-details-block ul {
    font-size: 0.95rem;
    color: #555;
}

.info-details-block ul {
    list-style: disc;
    padding-left: 20px;
}

.info-details-block li strong {
    color: var(--primary-color);
}

.odds-info-table,
.entry-display-table,
.results-overview-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table-row-header,
.results-overview-table thead tr {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: bold;
}

.table-row-item,
.results-overview-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.table-row-header div,
.table-row-item div,
.results-overview-table th,
.results-overview-table td {
    padding: 12px 15px;
    text-align: left;
}

.results-overview-table tbody tr:nth-child(odd) {
    background-color: var(--background-light);
}
.results-overview-table tbody tr:hover {
    background-color: #e9f5e9;
}

.system-info-section .heading-extra-large {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
}

.system-info-section .heading-large {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.system-info-section .heading-medium {
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.system-info-section .section-text {
    font-size: 1rem;
    color: #444;
}

.group-play-selection {
    text-align: center;
}

.group-play-heading {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.group-play-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.group-play-card {
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--shadow-color);
    text-align: center;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.group-play-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.group-play-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.group-play-card .card-header {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 10px 0;
    border-radius: 8px 8px 0 0;
    font-size: 1.3rem;
    font-weight: bold;
    margin: -20px -20px 20px -20px;
}
.group-play-card .card-header span {
    display: block;
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.8;
}

.group-play-card .card-body {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.group-play-card label {
    margin-top: 15px;
    font-weight: normal;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.group-play-card input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.group-play-step select {
    width: auto;
    min-width: 200px;
    display: block;
    margin: 10px auto 0;
}

.recurring-entry-check {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed var(--border-color);
}

.total-cost-text {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-top: 40px;
    color: var(--primary-color);
}

.lotto-party-selection {
    text-align: center;
}

.party-select-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.party-select-header span {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.lotto-party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.lotto-party-card {
    background-color: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lotto-party-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.image-placeholder {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
}

.party-theme-1 { background-image: url('/assets/party1.jpg'); background-color: #a8dadc; }
.party-theme-2 { background-image: url('/assets/party2.jpg'); background-color: #f7ede2; }
.party-theme-3 { background-image: url('/assets/party3.jpg'); background-color: #d8e2dc; }
.party-theme-4 { background-image: url('/assets/party4.jpg'); background-color: #ffe0b2; }

.party-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.party-details h4 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.party-details p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.party-details strong {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.party-details small {
    font-size: 0.8rem;
    color: #666;
    margin-left: 5px;
}

.party-details span {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

.lotto-party-card label {
    margin-top: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: normal;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.lotto-party-card input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.latest-draw-results {
    text-align: center;
}

.draw-results-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 25px 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
}

.draw-results-header h2 {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.draw-results-header h2 span {
    color: var(--secondary-color);
}

.draw-results-header p {
    font-size: 1rem;
    margin-top: 5px;
}

.drawn-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    font-size: 1.1rem;
    font-weight: bold;
}

.number-sphere {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.number-sphere.bonus {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.results-table-wrapper {
    overflow-x: auto;
}

.number-frequency-analysis {
    text-align: center;
}

.frequency-chart-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.frequency-chart-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    font-size: 0.95rem;
    color: #555;
}

.legend-dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.legend-dot.dark {
    background-color: var(--background-dark);
}

.legend-dot.light {
    background-color: var(--accent-color);
}

.number-trend-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    justify-content: center;
}

.trend-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background-color: var(--background-light);
    padding: 15px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.trend-bar-item.reverse-layout {
    flex-direction: column-reverse;
}

.trend-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.number-display-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 3px solid var(--primary-color);
}

.faq-section {
    padding: 60px 20px;
    background-color: var(--background-dark);
    color: var(--text-light);
    margin-top: 50px;
    text-align: center;
}

.faq-section-title h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 40px;
}

.faq-items-group {
    max-width: 800px;
    margin: 0 auto;
}

.faq-entry-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-entry-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.faq-question-toggle {
    width: 100%;
    background-color: transparent;
    color: var(--text-light);
    padding: 18px 25px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question-toggle::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-entry-item.active .faq-question-toggle::after {
    transform: rotate(45deg);
}

.faq-answer-content {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    color: rgba(255, 255, 255, 0.8);
}

.faq-entry-item.active .faq-answer-content {
    max-height: 200px;
    padding: 15px 25px 25px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .process-steps-grid {
        grid-template-columns: repeat(4, 1fr);
        align-items: center;
    }
    .flow-arrow {
        display: block;
        transform: rotate(0deg);
    }
    .process-steps-grid > *:nth-child(2n) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .brand-logo-link {
        font-size: 1.5rem;
    }
    .brand-logo-link img {
        height: 35px;
    }
    .main-navigation {
        gap: 15px;
    }
    .main-navigation a {
        font-size: 0.9rem;
        padding: 3px 0;
    }

    .hero-banner {
        padding: 60px 15px;
    }

    .hero-banner-content h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .hero-banner-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .draw-countdown-timer {
        flex-wrap: wrap;
        gap: 20px;
        font-size: 1.8rem;
    }

    .draw-countdown-timer div {
        padding: 12px 20px;
        min-width: 80px;
    }

    .draw-countdown-timer span {
        font-size: 2.5rem;
    }

    .primary-call-to-action {
        padding: 14px 35px;
        font-size: 1.1rem;
    }

    .process-steps-grid {
        grid-template-columns: 1fr;
    }

    .flow-arrow {
        display: block;
        transform: rotate(90deg);
        margin: 15px auto;
    }

    .tab-navigation {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .tab-navigation button {
        width: 100%;
        max-width: 300px;
    }

    .info-blocks-container,
    .info-details-container,
    .group-play-cards-grid,
    .lotto-party-grid,
    .number-trend-bars {
        grid-template-columns: 1fr;
    }

    .cookie-notification,
    .age-verification-overlay {
        flex-direction: column;
        gap: 15px;
    }

    .age-verification-dialog {
        padding: 20px;
    }
    .confirm-age-btn, .exit-site-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .brand-logo-link {
        font-size: 1.3rem;
    }
    .brand-logo-link img {
        height: 28px;
    }
    .main-navigation {
        gap: 8px;
    }
    .main-navigation a {
        font-size: 0.75rem;
    }
    .hero-banner {
        padding: 40px 10px;
    }
    .hero-banner-content h1 {
        font-size: 2.2rem;
    }
    .hero-banner-content p {
        font-size: 0.95rem;
    }
    .draw-countdown-timer {
        font-size: 1.3rem;
        gap: 10px;
    }
    .draw-countdown-timer div {
        padding: 8px 15px;
        min-width: 70px;
    }
    .draw-countdown-timer span {
        font-size: 2rem;
    }
    .primary-call-to-action {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .content-section {
        padding: 25px 15px;
    }

    .selection-step {
        padding: 15px;
    }

    .number-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
        gap: 5px;
    }
    .number-selection-grid button {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .add-to-cart-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .age-verification-dialog {
        padding: 20px;
    }
    .confirm-age-btn, .exit-site-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-right: 10px;
    }
}


/* --- Modal Styles --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darker overlay to make modal stand out */
    display: flex; /* Use flexbox for centering */
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Ensure it's on top of everything */
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Start hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--text-light); /* White background from your palette */
    color: var(--text-dark); /* Dark text */
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px); /* Start slightly above center */
    transition: transform 0.3s ease;
}

.modal.is-visible .modal-content {
    transform: translateY(0); /* Slide into place */
}

.modal-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color); /* Primary color for headings */
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Responsive adjustments for modal */
@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
    }
    .modal-content h2 {
        font-size: 1.5rem;
    }
    .modal-content p {
        font-size: 1rem;
    }
}


/* --- Cookie Notification Styles --- */
.cookie-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-dark); /* Dark background for contrast */
    color: var(--text-light); /* Light text on dark background */
    padding: 15px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    z-index: 1000; /* Ensure it's above most content */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    /* Initial state for JavaScript controlled display */
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%); /* Start off-screen */
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out, transform 0.4s ease-out;
}

.cookie-notification.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Slide into view */
}

.cookie-notification p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 800px;
    text-align: center;
}

.cookie-notification p a {
    color: var(--secondary-color); /* Sunny yellow for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-notification p a:hover {
    color: var(--primary-color);
}

.cookie-accept-btn {
    background-color: var(--primary-color); /* Green button */
    color: var(--text-light);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cookie-accept-btn:hover {
    background-color: #5cb85c; /* Slightly darker green on hover */
    transform: translateY(-2px);
}

/* --- Age Verification Overlay Styles --- */
.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Higher than cookie bar, ensures it's on top */
    /* Initial state for JavaScript controlled display */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.age-verification-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.age-verification-dialog {
    background-color: var(--background-light); /* Light background for the dialog box */
    color: var(--text-dark);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 550px;
    width: 90%; /* Responsive width */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9); /* Start slightly smaller for animation */
    transition: transform 0.4s ease;
}

.age-verification-overlay.is-visible .age-verification-dialog {
    transform: scale(1); /* Scale up to full size when visible */
}

.age-verification-dialog h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.age-verification-dialog p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.confirm-age-btn,
.exit-site-btn {
    border: none;
    padding: 15px 35px;
    margin: 0 10px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.confirm-age-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.confirm-age-btn:hover {
    background-color: #5cb85c;
    transform: translateY(-3px);
}

.exit-site-btn {
    background-color: #dc3545; /* Red for exit */
    color: var(--text-light);
}

.exit-site-btn:hover {
    background-color: #c82333;
    transform: translateY(-3px);
}

/* --- Responsive Adjustments for Overlays --- */
@media (max-width: 768px) {
    .cookie-notification {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    .cookie-notification p {
        font-size: 0.9rem;
    }
    .cookie-accept-btn {
        width: 100%;
        max-width: 250px;
    }

    .age-verification-dialog {
        padding: 30px 20px;
    }
    .age-verification-dialog h3 {
        font-size: 1.8rem;
    }
    .age-verification-dialog p {
        font-size: 1rem;
    }
    .confirm-age-btn,
    .exit-site-btn {
        margin: 10px 0; /* Stack buttons vertically */
        width: 100%;
        max-width: 300px; /* Limit button width */
    }
}

@media (max-width: 480px) {
    .cookie-notification {
        padding: 10px 15px;
    }
    .cookie-notification p {
        font-size: 0.85rem;
    }
    .cookie-accept-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .age-verification-dialog {
        padding: 25px 15px;
    }
    .age-verification-dialog h3 {
        font-size: 1.5rem;
    }
    .age-verification-dialog p {
        font-size: 0.9rem;
    }
    .confirm-age-btn,
    .exit-site-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}