/* Global Styles */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}
* {
    box-sizing: border-box;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #222;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem); /* Mobile: ~1.25rem, Tablet: ~2.2rem, Desktop: ~2.8rem */
}
h2 {
    font-size: clamp(1.5rem, 4.5vw, 2.5rem); /* Mobile: ~1.15rem, Tablet: ~2rem, Desktop: ~2.5rem */
}
h3 {
    font-size: clamp(1.3rem, 4vw, 2.2rem); /* Mobile: ~1rem, Tablet: ~1.8rem, Desktop: ~2.2rem */
}

/* Section Padding */
.section-padding {
    padding: 4rem 0;
}
@media screen and (max-width: 767px) {
    .section-padding {
        padding: 2rem 0;
    }
}

/* Background Colors */
.bg-light-red {
    background-color: #ffe0e0;
}
.bg-dark-red {
    background-color: #a02020;
    color: #fff;
}
.bg-dark-gray {
    background-color: #2c3e50;
    color: #ecf0f1;
}

/* Buttons */
.button {
    text-decoration: none;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.button:hover {
    transform: translateY(-2px);
}
.button.primary {
    background-color: #e74c3c;
    color: #fff;
}
.button.primary:hover {
    background-color: #c0392b;
}
.button.success {
    background-color: #2ecc71;
    color: #fff;
}
.button.success:hover {
    background-color: #27ae60;
}
.button.alert {
    background-color: #e74c3c;
    color: #fff;
}
.button.alert:hover {
    background-color: #c0392b;
}

/* Header Warning Bar */
.header-warning-bar {
    background-color: #e74c3c;
    color: #fff;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    position: relative;
    z-index: 1000;
}
.header-warning-bar p {
    margin-bottom: 0;
}

/* Header Main */
.header-main .sticky-topbar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
    z-index: 999;
}
.header-main .site-branding {
    display: flex;
    align-items: center;
}
.header-main .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.header-main .site-logo {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
}
.header-main .site-name {
    font-size: clamp(1.2rem, 3vw, 1.8rem); /* Mobile: ~1.25rem, Tablet: ~1.5rem, Desktop: ~1.8rem */
    font-weight: 700;
    color: #e74c3c;
}

/* Main Navigation */
.main-navigation .menu a {
    font-weight: 600;
    color: #333;
    padding: 0.7rem 1rem;
    transition: color 0.3s ease;
}
.main-navigation .menu a:hover {
    color: #e74c3c;
}

/* Mobile Navigation (Off-canvas) */
.off-canvas {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
}
.off-canvas .menu a {
    color: #ecf0f1;
    padding: 0.7rem 1rem;
    transition: background-color 0.3s ease;
}
.off-canvas .menu a:hover {
    background-color: #e74c3c;
}
.menu-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}
.menu-icon::after {
    background-color: #e74c3c;
}

/* Hero Section */
.hero-section {
    background: url('graphics/uploads/hero-background_266.jpg') no-repeat center center/cover;
    position: relative;
    color: #fff;
    padding: 8rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}
.hero-section > .grid-container {
    position: relative;
    z-index: 2;
}
.hero-title {
    color: #fff;
    font-size: clamp(2.5rem, 7vw, 4rem);
    margin-bottom: 1rem;
}
.hero-subtitle {
    color: #fff;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
}
.hero-game-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero-game-card .game-card-img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.hero-game-card h3 {
    color: #fff;
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
}
.hero-game-card p {
    color: #eee;
    margin-bottom: 1.5rem;
}

/* About Section */
.about-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.about-features {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}
.about-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}


.about-features li .material-symbols-outlined {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-right: 1rem;
    flex-shrink: 0;
}
.about-features li h4 {
    flex: 0 0 120px;
    margin-right: 10px;
    margin-top: 0;
    margin-bottom: 0.3rem;
    color: #e74c3c;
    font-size: clamp(1rem, 3vw, 1rem);
}
.about-features li p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Advantages Section */
.advantage-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.advantage-card .material-symbols-outlined {
    font-size: 3.5rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}
.advantage-card h3 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}
.advantage-card p {
    font-size: 0.9rem;
    flex-grow: 1;
}

/* How to Play Section */
.how-to-step {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.how-to-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.how-to-step .step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e74c3c;
    line-height: 1;
    margin-bottom: 1rem;
}
.how-to-step .step-icon {
    font-size: 3.5rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}
.how-to-step h3 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}
.how-to-step p {
    font-size: 0.9rem;
    flex-grow: 1;
}

/* Game Selection Section */
.game-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.game-card .game-link {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.game-card .game-image {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover;
    display: block;
}
.game-card .game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.game-card:hover .game-overlay {
    opacity: 1;
}
.game-card .game-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
    display: none; /* Hidden by default, shown by JS */
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.game-card .game-play-button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none; /* Hidden by default, shown by JS */
}
.game-card .game-info {
    padding: 1rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.game-card .game-info h3 {
    color: #e74c3c;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}
.game-card .game-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Leaderboards Section */
.leaderboard-table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    min-width: 600px; /* Ensure table is wide enough for content */
}
.leaderboard-table th, .leaderboard-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.leaderboard-table th {
    background-color: #e74c3c;
    color: #fff;
    font-weight: 600;
}
.leaderboard-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.leaderboard-table tbody tr:hover {
    background-color: #ffebeb;
    transition: background-color 0.3s ease;
}
.leaderboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Testimonials Section */
.testimonial-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}
.testimonial-header h4 {
    margin-bottom: 0.2rem;
    color: #e74c3c;
    font-size: clamp(1rem, 3vw, 1.2rem);
}
.testimonial-header p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}
.testimonial-text {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
}

/* Contact Form Section */
.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.contact-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}
.contact-form input[type="text"], 
.contact-form input[type="email"], 
.contact-form textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
    width: 100%;
    margin-top: 0.25rem;
    transition: border-color 0.3s ease;
}
.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: #e74c3c;
    outline: none;
}
.contact-form textarea {
    resize: vertical;
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 2px solid #c0392b;
    border-bottom: 2px solid #c0392b;
}
.disclaimer-content {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.disclaimer-title {
    color: #fff;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: clamp(1.3rem, 4vw, 2rem);
}
.disclaimer-title .material-symbols-outlined {
    font-size: 2.5rem;
    margin-right: 1rem;
    color: #ffeb3b; /* Warning yellow */
}
.disclaimer-content p {
    color: #f0f0f0;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.disclaimer-content p:last-child {
    margin-bottom: 0;
}

/* Footer Section */
.footer-section {
    padding: 3rem 0;
    text-align: center;
}
.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 1rem;
}
.footer-logo {
    height: 35px;
    width: auto;
    margin-right: 0.5rem;
}
.footer-site-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e74c3c;
}
.footer-text {
    color: #bbb;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.player-counter {
    display: inline-flex;
    align-items: center;
    background-color: #34495e;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #ecf0f1;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.player-counter .material-symbols-outlined {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}
.player-counter .count {
    color: #2ecc71;
}
.footer-links a {
    color: #e74c3c;
    text-decoration: none;
    margin: 0 0.75rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #c0392b;
}
.footer-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.footer-partners .partner-logo {
    max-width: 120px; /* Adjusted for 5 items */
    height: auto;
    display: block;
}
.footer-partners .age-icon {
    max-width: 60px;
}

/* Age Verification Modal */
.age-verification-modal {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    z-index: 10000; /* Higher than other modals */
}
.age-verification-modal h2 {
    color: #e74c3c;
    margin-bottom: 1rem;
}
.age-verification-modal p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Game Iframe Modal */
.game-iframe-modal {
    background-color: rgba(0, 0, 0, 0.95);
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden; /* Prevent modal itself from scrolling */
    z-index: 9999; /* High z-index */
}
.game-iframe-modal .close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
    z-index: 10000; /* Always visible above iframe */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.game-iframe-modal .close-button:hover {
    opacity: 1;
    color: #e74c3c;
}
.game-iframe-modal iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
    .header-main .main-navigation {
        display: none; /* Hide desktop nav */
    }
    .header-main .menu-icon {
        display: block; /* Show burger icon */
    }
    .site-name {
        font-size: 1.25rem;
    }
    .site-logo {
        height: 30px;
    }
    .hero-section {
        padding: 6rem 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .footer-partners {
        gap: 1rem;
    }
    .footer-partners .partner-logo {
        max-width: 100px;
    }
    .footer-section .cell {
        margin-bottom: 1.5rem;
    }
    .footer-section .cell:last-child {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 767px) {
    .hero-section {
        padding: 4rem 0;
        min-height: 60vh;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-game-card .game-card-img {
        height: 150px;
    }
    .leaderboard-table th, .leaderboard-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    .leaderboard-avatar {
        width: 30px;
        height: 30px;
    }
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
    .testimonial-header h4 {
        font-size: 1rem;
    }
    .testimonial-header p {
        font-size: 0.8rem;
    }
    .footer-links a {
        margin: 0 0.5rem;
        font-size: 0.8rem;
    }
    .footer-partners .partner-logo {
        max-width: 80px;
    }
    .footer-partners .age-icon {
        max-width: 40px;
    }
}
/* Styles for the main container of the privacy content */
.privacyNestZone {
    padding-top: 2.5rem; /* Top padding for the content zone */
    padding-bottom: 2.5rem; /* Bottom padding for the content zone */
    padding-left: 1.5rem; /* Left padding for the content zone */
    padding-right: 1.5rem; /* Right padding for the content zone */
    /* Consider adding max-width and margin: 0 auto; for better readability on large screens,
       but the request only specified padding. */
}

/* Heading 1 styles - not too large */
.privacyNestZone h1 {
    font-size: 2rem; /* A good size for a main heading, but not overly dominant */
    line-height: 1.2; /* Improved readability for headings */
    margin-top: 2.5rem; /* Space above the heading */
    margin-bottom: 1.5rem; /* Space below the heading */
    font-weight: 700; /* Bold weight */
    color: #333; /* Dark grey for good contrast */
}

/* Heading 2 styles */
.privacyNestZone h2 {
    font-size: 1.75rem; /* Slightly smaller than h1 */
    line-height: 1.25;
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    font-weight: 600; /* Slightly less bold than h1 */
    color: #333;
}

/* Heading 3 styles */
.privacyNestZone h3 {
    font-size: 1.5rem; /* Further reduced */
    line-height: 1.3;
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

/* Heading 4 styles */
.privacyNestZone h4 {
    font-size: 1.25rem; /* Closer to body text, but still distinct */
    line-height: 1.35;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 500; /* Less bold */
    color: #444;
}

/* Heading 5 styles - smallest heading */
.privacyNestZone h5 {
    font-size: 1.1rem; /* Smallest heading, often used for sub-sections */
    line-height: 1.4;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: #555;
}

/* Paragraph styles */
.privacyNestZone p {
    font-size: 1rem; /* Base font size for paragraphs */
    line-height: 1.6; /* Optimal line height for readability */
    margin-bottom: 1rem; /* Space between paragraphs */
    color: #444; /* Standard text color */
}

/* Unordered list styles */
.privacyNestZone ul {
    list-style-type: disc; /* Default bullet style */
    margin-top: 1rem; /* Space above the list */
    margin-bottom: 1rem; /* Space below the list */
    padding-left: 1.5rem; /* Indentation for bullet points */
    color: #444;
}

/* List item styles */
.privacyNestZone li {
    font-size: 1rem; /* Inherit or set explicitly to match paragraph */
    line-height: 1.6; /* Consistent line height */
    margin-bottom: 0.5rem; /* Space between list items */
    color: #444;
}


@media screen and (max-width: 768px){
    .about-features li {
        flex-direction: column;
        align-items: center;
        justify-content: center;


        h4 {
            flex: 0 0 auto;
            margin-bottom: 20px;
        }
    }
}

footer .grid-x  {
    justify-content: space-around;
}

.off-canvas {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-icon-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;

    span {
        height: 2px;
        width: 100%;
        background: #e74c3c;
    }
}

#gameIframe {
    width: 100%;
    height: 100vh;
}

.policy-wrapper {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;


    li {
        a {
            color: #fff;

            &:hover {
                color: #e74c3c;
            }
        }
    }
}