:root {
    --primary-color: #76FF03; /* Lime Green */
    --primary-dark: #64DD17;
    --secondary-color: #333;
    --accent-color: #FFC107; /* Amber */
    --text-color: #333;
    --text-light: #fff;
    --bg-light: #f4f4f4;
    --bg-dark: #222;
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --border-radius: 8px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --header-height: 60px;
}

/* Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-color);
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

h3 {
    font-size: clamp(1.25rem, 3.5vw, 2rem);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.1s ease, color 0.1s ease, border-color 0.1s ease;
    white-space: normal;
    word-break: break-word;
    text-decoration: none;
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    color: var(--secondary-color);
    text-decoration: none;
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: 1px solid var(--secondary-color);
}

.secondary-btn:hover {
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-decoration: none;
}

/* Header */
.header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo-link {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.site-name {
    font-family: 'Poppins', sans-serif;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.nav-menu::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.nav-link {
    color: var(--text-light);
    padding: 0.5rem 1rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.1s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.burger-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 1100px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        padding: var(--spacing-sm) 0;
        z-index: 999;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem var(--spacing-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .burger-menu-btn {
        display: block;
    }
}

@media (max-width: 767px) {
    .site-name {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
    .logo {
        height: 30px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-dark);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--spacing-md);
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: var(--spacing-md);
}

/* About Section */
.about-section {
    background-color: var(--bg-light);
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (min-width: 768px) {
    .about-content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text p {
    margin-bottom: var(--spacing-sm);
}

.about-image {
    text-align: center;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Game Selection Section */
.game-selection-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.game-selection-section h2 {
    color: var(--text-light);
}

.game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.game-card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    height: 100%; /* Ensure equal height */
}

.game-card h3 {
    color: var(--primary-color);
    margin: var(--spacing-sm) var(--spacing-sm) 0.5rem;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

.game-card p {
    padding: 0 var(--spacing-sm) var(--spacing-sm);
    font-size: 0.95rem;
    flex-grow: 1;
}

.game-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover;
    display: block;
}

.game-link {
    text-decoration: none;
    color: inherit;
}

.game-link:hover h3 {
    text-decoration: underline;
}

.play-now-btn {
    margin: 0 var(--spacing-sm) var(--spacing-sm);
    width: calc(100% - (2 * var(--spacing-sm)));
}

/* Game Modal */
.game-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-dark);
    justify-content: center;
    align-items: center;
}

.game-modal.active {
    display: flex;
}

.game-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
}

.game-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.close-modal {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.close-modal:hover {
    background-color: var(--primary-dark);
}

/* Age Verification Modal */
.age-verification-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-dark);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.age-verification-modal.hidden {
    display: none !important;
}

.age-verification-content {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.age-verification-content h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.age-verification-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.age-verification-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

/* Leaderboards Section */
.leaderboards-section {
    background-color: var(--bg-light);
}

.player-rank-box {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.leaderboard-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--text-light);
    min-width: 400px;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.leaderboard-table th {
    background-color: var(--secondary-color);
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.leaderboard-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.leaderboard-table tbody tr:hover {
    background-color: #f0f0f0;
}

/* Chat Section */
.chat-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.chat-section h2 {
    color: var(--text-light);
}

.chat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .chat-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.chat-messages {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message-bubble {
    padding: 0.7rem 1rem;
    border-radius: var(--border-radius);
    max-width: 80%;
    word-wrap: break-word;
}

.message-bubble.received {
    background-color: #444;
    align-self: flex-start;
}

.message-bubble.sent {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    align-self: flex-end;
}

.chat-user {
    font-weight: 600;
    margin-right: 5px;
}

.chat-sidebar {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
}

.chat-sidebar h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.online-players-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.online-players-list li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #444;
}

.online-players-list li:last-child {
    border-bottom: none;
}

.player-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.add-friend-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.1s ease;
}

.add-friend-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.chat-input-area {
    display: flex;
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
    gap: 10px;
}

.chat-input {
    flex-grow: 1;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    border: 1px solid #555;
    background-color: #444;
    color: var(--text-light);
    font-size: 1rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-send-btn {
    padding: 0.8rem 1.5rem;
}

/* Quests Section */
.quests-section {
    background-color: var(--bg-light);
}

.quest-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.quest-card {
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quest-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

.quest-card p {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
}

.quest-progress {
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 15px;
    margin-bottom: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    width: 0%; /* Will be set by inline style */
    transition: width 0.1s ease; /* No animation */
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.faq-section h2 {
    color: var(--text-light);
}

.top-faq, .all-faq {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top-faq h3, .all-faq h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.faq-item {
    margin-bottom: 0.5rem;
    list-style: none;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    background-color: #444;
    color: var(--text-light);
    border: none;
    width: 100%;
    text-align: left;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    margin-left: 10px;
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    background-color: #555;
    color: var(--text-light);
    padding: 1rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    display: none;
    font-size: 0.95rem;
    margin-top: -5px; /* Overlap with button border-radius */
}

.faq-answer p {
    margin: 0;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--bg-light);
}

.testimonial-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-avatar-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--spacing-sm);
    border: 3px solid var(--primary-color);
}

.testimonial-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
}

.player-name {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Disclaimer Section */
.disclaimer-section {
    background-color: #fff3e0; /* Light orange/yellow background */
    border-top: 5px solid var(--accent-color);
    border-bottom: 5px solid var(--accent-color);
    padding: var(--spacing-lg) 0;
    color: #555;
}

.disclaimer-content {
    background-color: #ffffff;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.disclaimer-title {
    color: #e65100; /* Darker orange */
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: var(--spacing-md);
    margin-bottom: 0.5rem;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
}

.disclaimer-title.material-symbols-outlined::before {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 1.5em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    color: #e65100;
}

.disclaimer-content ul {
    list-style: disc inside;
    margin-left: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.disclaimer-content li {
    margin-bottom: 0.5rem;
}

.disclaimer-content a {
    color: #e65100;
    text-decoration: underline;
}

.disclaimer-content a:hover {
    color: #ff9800;
}

.disclaimer-note {
    font-style: italic;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px dashed #ccc;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-lg) 0 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #444;
}

.footer-block h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.footer-logo-link {
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.footer-tagline {
    margin-top: 0.5rem;
    color: #bbb;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.community-message-box {
    background-color: #444;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-style: italic;
}

.footer-social-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.footer-logo-18plus {
    width: 60px;
    height: auto;
    margin-right: var(--spacing-sm);
}

.footer-org-logo {
    width: 100px; /* Base width */
    max-width: 150px; /* Max width */
    height: auto;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    padding: var(--spacing-sm) 0;
    margin-top: var(--spacing-sm);
    color: #bbb;
}

/* Utility for body scroll lock */
body.modal-open {
    overflow: hidden;
}
/* New styles for .consentTunnelGrid and its children */

.consentTunnelGrid {
    /* Top and side padding for the main container */
    padding-top: 40px;
    padding-inline: 24px; /* Applies padding to both left and right sides */
}

.consentTunnelGrid h1 {
    /* Heading 1 styles: moderately sized font with standard margins */
    font-size: 1.8em;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.2;
    font-weight: bold;
}

.consentTunnelGrid h2 {
    /* Heading 2 styles: slightly smaller than h1 */
    font-size: 1.5em;
    margin-top: 1.4em;
    margin-bottom: 0.7em;
    line-height: 1.2;
    font-weight: bold;
}

.consentTunnelGrid h3 {
    /* Heading 3 styles: further reduced size */
    font-size: 1.3em;
    margin-top: 1.3em;
    margin-bottom: 0.6em;
    line-height: 1.2;
    font-weight: bold;
}

.consentTunnelGrid h4 {
    /* Heading 4 styles: closer to body text size */
    font-size: 1.1em;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    line-height: 1.2;
    font-weight: bold;
}

.consentTunnelGrid h5 {
    /* Heading 5 styles: almost body text size, still bold */
    font-size: 1em; /* Can be similar to paragraph text for minimal emphasis */
    margin-top: 1.1em;
    margin-bottom: 0.4em;
    line-height: 1.2;
    font-weight: bold;
}

.consentTunnelGrid p {
    /* Paragraph styles: standard font size with good line height for readability */
    font-size: 1em;
    margin-bottom: 1em; /* Space between paragraphs */
    line-height: 1.6; /* Improved readability for body text */
}

.consentTunnelGrid ul {
    /* Unordered list styles: standard indentation and spacing */
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 24px; /* Indentation for bullet points */
    list-style-type: disc; /* Default bullet style */
}

.consentTunnelGrid li {
    /* List item styles: slight spacing between items */
    margin-bottom: 0.5em;
    line-height: 1.5; /* Good line height for list items */
}
