/* General Styles */
:root {
    --primary-bg-color: #e0f2f7; /* Very light grey-blue */
    --secondary-bg-color: #c5e4ed; /* Slightly darker light blue-grey */
    --accent-color: #ffc107; /* Warm yellow for highlights */
    --accent-dark-color: #e0a800; /* Darker yellow */
    --text-color: #333;
    --heading-color: #212529;
    --light-text-color: #6c757d;
    --white: #fff;
    --dark-overlay: rgba(0, 0, 0, 0.6);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Luckiest Guy', cursive;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--accent-dark-color);
    text-decoration: underline;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--heading-color);
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-dark-color);
    border-color: var(--accent-dark-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--light-text-color);
    border-color: var(--light-text-color);
    color: var(--white);
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.icon-large {
    font-size: 3rem;
    color: var(--accent-dark-color);
}

/* Age Verification PopUp */
.age-verification-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1060; /* Higher than Bootstrap modals */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.age-verification-popup.show {
    opacity: 1;
    visibility: visible;
}

.age-verification-popup .popup-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.age-verification-popup.show .popup-content {
    transform: translateY(0);
}

.age-verification-popup h2 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.age-verification-popup p {
    color: var(--light-text-color);
    margin-bottom: 2rem;
}

/* Top Strip */
.top-strip {
    background-color: #ff0000; /* Red for 18+ warning */
    color: var(--white);
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 1030; /* Above navbar */
    position: relative;
}

/* Header / Hero Section */
.hero-section {
    background-color: var(--secondary-bg-color);
    min-height: 80vh;
    padding-top: 5rem; /* Space for fixed navbar if needed */
    padding-bottom: 3rem;
    background-image: url('images/graphics/hero-background-pattern_2.jpg'); /* Optional pattern */
    background-size: cover;
    background-position: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(224, 242, 247, 0.9) 0%, rgba(197, 228, 237, 0.9) 100%);
    z-index: 0;
}

.hero-section .container-fluid {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: var(--heading-color);
    line-height: 1.1;
}

.hero-section .lead {
    color: var(--light-text-color);
    font-size: 1.5rem;
}

.hero-section .hero-description {
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}

.hero-image {
    max-height: 500px;
    width: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    z-index: 1020;
}

.navbar-brand .logo-img {
    height: 40px;
    width: auto;
}

.navbar-brand .logo-text {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.8rem;
    color: var(--heading-color);
}

.navbar-nav .nav-link {
    font-weight: bold;
    color: var(--heading-color);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-dark-color);
}

/* Section Styling */
section {
    padding: 6rem 0;
}

section h2 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

section h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    border-radius: 2px;
}

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

.feature-card {
    background-color: var(--white);
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Games Grid Section */
.games-grid-section {
    
    background-image: linear-gradient(rgb(195 211 210 / 56%), rgb(248 254 254 / 65%)), url(images/graphics/games-background-pattern.png); /* Optional pattern */
    background-color: var(--secondary-bg-color);
    background-size: cover;
    background-position: center;
}

.game-card {
    background-color: var(--white);
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.game-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.game-card .card-body {
    padding: 1.5rem;
}

.game-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-card .card-title {
    font-size: 24px;
}

.game-card .card-text {
    font-size: 0.95rem;
    color: var(--light-text-color);
}

.game-card .card-footer {
    background-color: var(--white);
    border-top: none;
    padding: 1rem 1.5rem;
}

.game-link {
    display: block;
    color: inherit;
}

.game-link:hover {
    text-decoration: none;
}

.btn-play {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--heading-color);
    font-weight: bold;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-play:hover {
    background-color: var(--accent-dark-color);
    border-color: var(--accent-dark-color);
    color: var(--white);
}

/* How to Play Section */
.how-to-play-section {
    background-color: var(--primary-bg-color);
}

.step-card {
    background-color: var(--white);
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--heading-color);
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Reviews Section */
.reviews-section {
    background-color: var(--secondary-bg-color);
    background-image: url('images/graphics/reviews-background-pattern.png'); /* Optional pattern */
    background-size: cover;
    background-position: center;
}

.review-card {
    background-color: var(--white);
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.review-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

/* Why Choose Us Section */
.choose-us-section {
    overflow: hidden;
    background-color: var(--primary-bg-color);
}

.why-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.why-list li i {
    color: #28a745; /* Green checkmark */
    font-size: 1.3rem;
}

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

.accordion-item {
    margin-bottom: 1rem;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background-color: var(--white);
    color: var(--heading-color);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-color);
    color: var(--heading-color);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-body {
    background-color: var(--white);
    padding: 1.5rem;
    border-top: 1px solid #eee;
    color: var(--text-color);
}

/* CTA Section */
.cta-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/graphics/cta-background_4.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

.btn-cta {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--heading-color);
    font-weight: bold;
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: var(--accent-dark-color);
    border-color: var(--accent-dark-color);
    color: var(--white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Disclaimer Block */
.disclaimer-block {
    background-color: #ffe0b2; /* Light orange/peach for warning */
    border-top: 5px solid #ff9800; /* Darker orange border */
    padding: 3rem 0;
    color: #5d4037; /* Dark brown text for contrast */
    font-weight: 500;
    margin-top: 0;
}

.disclaimer-block .disclaimer-icon {
    font-size: 3.5rem;
    color: #ff9800;
}

.disclaimer-block .disclaimer-title {
    color: #ff9800;
    font-size: 2rem;
}

.disclaimer-block p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
}

/* Footer */
.footer-section {
    background-color: #212529; /* Dark grey/black */
    color: rgba(255, 255, 255, 0.7);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-section .logo-img {
    height: 35px;
}

.footer-section .logo-text {
    color: var(--white);
    font-size: 1.6rem;
}

.footer-heading {
    color: var(--white);
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-partners {
    padding-top: 2rem;
}

.footer-logo-img {
    max-width: 150px; /* Adjusted from 100-150 to 120 for 6 logos */
    height: auto;
    margin: 10px;
    transition: transform 0.2s ease;
    filter: drop-shadow(0px 0px 15px rgba(255, 255, 255, 0.2));
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

/* Game Modal */
#gameModal .modal-content {
    background-color: #000;
    border-radius: 0;
}

#gameModal .modal-header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    color: var(--white);
}

#gameModal .modal-title {
    color: var(--white);
}

#gameModal .btn-close {
    filter: invert(1);
}

#gameModal .modal-body {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameIframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: var(--white);
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    display: none; /* Hidden by default, shown by JS */
    align-items: center;
    justify-content: center;
}

.cookie-banner p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-banner .cookie-link {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-banner .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--heading-color);
    font-weight: normal;
    border-radius: 5px;
    padding: 0.4rem 0.8rem;
}

.cookie-banner .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    font-weight: normal;
    border-radius: 5px;
    padding: 0.4rem 0.8rem;
}

.cookie-banner .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.2rem;
    }

    .hero-section .hero-description {
        font-size: 0.9rem;
    }

    .hero-image {
        max-height: 300px;
        margin-top: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    section h2 {
        font-size: 2.2rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .footer-section .text-md-start, .footer-section .text-md-end {
        text-align: center !important;
    }

    .footer-partners {
        flex-direction: column;
        gap: 10px;
    }

    .footer-logo-img {
        max-width: 150px;
    }

    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner p {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}
/* New styles requested by the user, scoped under .securePolicyGrid */

/* Styles for the main policy content grid container */
.securePolicyGrid {
    padding-top: 3rem; /* Top padding for the section */
    padding-bottom: 3rem; /* Bottom padding for the section */
    padding-left: 1.5rem; /* Left padding for content */
    padding-right: 1.5rem; /* Right padding for content */
    max-width: 960px; /* Maximum width to keep content readable */
    margin-left: auto; /* Center the content block horizontally */
    margin-right: auto; /* Center the content block horizontally */
    background-color: var(--white); /* White background for readability */
    border-radius: 15px; /* Slightly rounded corners for the block */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
    margin-top: 2rem; /* Margin above the grid */
    margin-bottom: 2rem; /* Margin below the grid */
}

/* Heading 1 styles within the policy grid */
.securePolicyGrid h1 {
    font-size: 2.2rem; /* Standard H1 size, not excessively large */
    margin-top: 2rem; /* Top margin for H1 */
    margin-bottom: 1.5rem; /* Bottom margin for H1 */
    line-height: 1.2; /* Standard line height for better readability */
    color: var(--heading-color); /* Inherit heading color from root variables */
    font-family: 'Luckiest Guy', cursive; /* Use the defined heading font */
}

/* Heading 2 styles within the policy grid */
.securePolicyGrid h2 {
    font-size: 1.8rem; /* Standard H2 size */
    margin-top: 1.8rem; /* Top margin for H2 */
    margin-bottom: 1.2rem; /* Bottom margin for H2 */
    line-height: 1.3; /* Standard line height */
    color: var(--heading-color); /* Inherit heading color */
    font-family: 'Luckiest Guy', cursive; /* Use the defined heading font */
}

/* Heading 3 styles within the policy grid */
.securePolicyGrid h3 {
    font-size: 1.5rem; /* Standard H3 size */
    margin-top: 1.5rem; /* Top margin for H3 */
    margin-bottom: 1rem; /* Bottom margin for H3 */
    line-height: 1.4; /* Standard line height */
    color: var(--heading-color); /* Inherit heading color */
    font-family: 'Luckiest Guy', cursive; /* Use the defined heading font */
}

/* Heading 4 styles within the policy grid */
.securePolicyGrid h4 {
    font-size: 1.25rem; /* Standard H4 size */
    margin-top: 1.2rem; /* Top margin for H4 */
    margin-bottom: 0.8rem; /* Bottom margin for H4 */
    line-height: 1.5; /* Standard line height */
    color: var(--heading-color); /* Inherit heading color */
    font-family: 'Luckiest Guy', cursive; /* Use the defined heading font */
}

/* Heading 5 styles within the policy grid */
.securePolicyGrid h5 {
    font-size: 1.1rem; /* Standard H5 size */
    margin-top: 1rem; /* Top margin for H5 */
    margin-bottom: 0.6rem; /* Bottom margin for H5 */
    line-height: 1.5; /* Standard line height */
    color: var(--heading-color); /* Inherit heading color */
    font-family: 'Luckiest Guy', cursive; /* Use the defined heading font */
}

/* Paragraph styles within the policy grid */
.securePolicyGrid p {
    font-size: 1rem; /* Base font size for paragraphs */
    margin-bottom: 1rem; /* Standard bottom margin for paragraphs */
    line-height: 1.7; /* Slightly increased line height for better readability */
    color: var(--text-color); /* Inherit text color from root variables */
}

/* Unordered list styles within the policy grid */
.securePolicyGrid ul {
    margin-top: 1rem; /* Top margin for lists */
    margin-bottom: 1rem; /* Bottom margin for lists */
    padding-left: 2rem; /* Standard indentation for list items */
    list-style: disc; /* Default disc style for unordered lists */
    color: var(--text-color); /* Inherit text color */
}

/* List item styles within the policy grid */
.securePolicyGrid li {
    font-size: 1rem; /* Base font size for list items */
    margin-bottom: 0.5rem; /* Margin between list items */
    line-height: 1.7; /* Line height for list items */
    color: var(--text-color); /* Inherit text color */
}

/* Ensure top margin is reset for the first child element within the grid */
.securePolicyGrid > h1:first-child,
.securePolicyGrid > h2:first-child,
.securePolicyGrid > h3:first-child,
.securePolicyGrid > h4:first-child,
.securePolicyGrid > h5:first-child,
.securePolicyGrid > p:first-child,
.securePolicyGrid > ul:first-child {
    margin-top: 0; /* Remove top margin if it's the very first element in the grid */
}
