/* Global Styles */
:root {
    --primary-color: #e91e63; /* Pink */
    --secondary-color: #f8bbd0; /* Lighter Pink */
    --accent-color: #c2185b; /* Darker Pink */
    --text-color: #333;
    --light-text-color: #f8f8f8;
    --background-color: #fdf2f7;
    --dark-overlay: rgba(0, 0, 0, 0.7);
    --border-radius: 8px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
}

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

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

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

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

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

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

.btn-secondary {
    background-color: #ccc;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #bbb;
    text-decoration: none;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.age-verification-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.age-verification-content {
    background-color: #fff;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.age-verification-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

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

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

/* Header */
.site-header {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    text-decoration: none;
}

.site-logo {
    height: 40px;
    width: auto;
}

.site-name {
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    align-items: center;
}

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

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

.nav-link {
    font-weight: 600;
    color: var(--text-color);
    padding: 0.5rem 0;
    white-space: nowrap;
}

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

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
    background-image: url('visuals/media/hero-background_38.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    color: #fff;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-md);
    color: #eee;
}

/* About Section */
.about-section {
    padding: var(--spacing-lg) 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    align-items: center;
}

.game-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
    min-width: 250px;
}

.game-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.game-screenshot {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.game-diversity-info {
    flex: 2;
    min-width: 300px;
}

.game-diversity-info h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.game-diversity-info p {
    margin-bottom: var(--spacing-sm);
}

/* Games Section */
.games-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--background-color);
}

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

.game-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-item .game-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none; 
}
.game-item p {
    color: #333;
}

.game-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: var(--spacing-sm) var(--spacing-sm) 0.5rem;
}

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

.btn-play {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 0.7rem 1.5rem;
    margin: 0 var(--spacing-sm) var(--spacing-sm);
    align-self: flex-start;
    text-decoration: none;
}

.btn-play:hover {
    background-color: var(--accent-color);
    text-decoration: none;
}
.btn-play a {
    color: #fff;
}
/* Testimonials Section */
.testimonials-section {
    padding: var(--spacing-lg) 0;
    background-color: #fff;
}

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

.testimonial-card {
    background-color: var(--secondary-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

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

.testimonial-card h3 {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.testimonial-card p {
    font-style: italic;
    font-size: 0.95rem;
}

.submit-testimonial-wrapper {
    text-align: center;
    margin-top: var(--spacing-md);
}

/* Blog Section */
.blog-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--background-color);
}

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

.blog-post-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
}

.blog-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-post-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: var(--spacing-sm) var(--spacing-sm) 0.5rem;
}

.blog-post-card p {
    font-size: 0.9rem;
    margin: 0 var(--spacing-sm) var(--spacing-md);
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-lg) 0;
    background-color: #fff;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-question:hover {
    background-color: var(--accent-color);
}

.faq-question h3 {
    flex-grow: 1;
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.faq-icon {
    margin-right: 10px;
    font-size: 1.3rem;
}

.toggle-icon {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.faq-question.active .toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--spacing-md);
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.faq-answer p {
    padding: var(--spacing-sm) 0;
}

/* Disclaimer Block */
.disclaimer-block {
    background-color: #ffe0b2; /* Light orange for warning */
    border-top: 5px solid #ff9800; /* Orange border */
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-lg);
    color: #333;
}

.disclaimer-block .container {
    max-width: 900px;
}

.disclaimer-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #e65100; /* Darker orange */
    text-align: center;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.disclaimer-icon {
    font-size: 2rem;
}

.disclaimer-block h4 {
    font-size: 1.3rem;
    color: #e65100;
    margin-top: var(--spacing-md);
    margin-bottom: 0.5rem;
}

.disclaimer-block p, .disclaimer-block ul {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.disclaimer-block ul {
    list-style-type: disc;
    padding-left: 20px;
}

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

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

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column .logo-link {
    margin-bottom: var(--spacing-sm);
}

.footer-column .site-logo {
    height: 45px;
}

.footer-column .site-name {
    color: var(--light-text-color);
}

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

.footer-column ul {
    padding: 0;
}

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

.footer-column ul li a {
    color: var(--light-text-color);
    opacity: 0.9;
}

.footer-column ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.player-counter {
    margin-top: var(--spacing-sm);
    font-weight: 600;
}

.responsible-gaming-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: var(--spacing-sm);
}

.responsible-logo {
    height: auto;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: none; /* Ensure no grayscale */
}

.responsible-logo.no-link {
    cursor: default;
}

/* Game Modal */
.game-modal, .blog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.game-modal.active, .blog-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.game-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--light-text-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: 10001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.close-modal-btn:hover {
    background-color: var(--accent-color);
}

/* Blog Modal */
.blog-modal-content {
    position: relative;
    background-color: #fff;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.blog-modal-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.blog-modal-content p {
    margin-bottom: var(--spacing-sm);
}

/* Responsive Design */
@media (max-width: 1300px) {
    .nav-list {
        gap: var(--spacing-sm);
    }
}

@media (max-width: 1100px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: var(--spacing-sm) 0;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

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

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-list li a {
        display: block;
        padding: 0.8rem var(--spacing-sm);
        border-bottom: 1px solid #eee;
    }

    .nav-list li:last-child a {
        border-bottom: none;
    }

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

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.8rem var(--spacing-sm);
    }

    .site-name {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about-content {
        flex-direction: column;
    }

    .game-grid, .game-diversity-info {
        min-width: unset;
        width: 100%;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .game-screenshot {
        height: 120px;
    }

    .game-cards-grid, .testimonial-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        min-width: unset;
        width: 100%;
    }

    .footer-column ul {
        padding-left: 0;
    }

    .footer-column ul li {
        display: inline-block;
        margin: 0 10px 0.5rem;
    }

    .responsible-gaming-logos {
        justify-content: center;
    }

    .disclaimer-title {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 5px;
    }

    .disclaimer-icon {
        font-size: 1.5rem;
    }

    .disclaimer-block ul {
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .age-verification-content h2 {
        font-size: 1.25rem;
    }
    .age-verification-content p {
        font-size: 0.9rem;
    }
    .age-verification-buttons {
        flex-direction: column;
    }
    .btn {
        padding: 0.7rem 1.5rem;
    }
    .site-logo {
        height: 35px;
    }
    .site-name {
        font-size: 1rem;
    }
    .burger-menu-btn {
        font-size: 1.8rem;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .game-diversity-info h3 {
        font-size: 1.25rem;
    }
    .game-item h3 {
        font-size: 1.2rem;
    }
    .blog-post-card h3 {
        font-size: 1.1rem;
    }
    .faq-question h3 {
        font-size: 1rem;
    }
    .faq-icon, .toggle-icon {
        font-size: 1.1rem;
    }
    .close-modal-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        top: 10px;
        right: 10px;
    }
    .blog-modal-content h3 {
        font-size: 1.25rem;
    }
    .disclaimer-title {
        font-size: 1rem;
    }
    .disclaimer-icon {
        font-size: 1.2rem;
    }
    .disclaimer-block h4 {
        font-size: 1.1rem;
    }
    .disclaimer-block p, .disclaimer-block ul {
        font-size: 0.85rem;
    }
    .footer-column ul li {
        margin: 0 5px 0.5rem;
    }
    .responsible-logo {
        max-width: 100px;
    }
}/*
 * New stock styles for common HTML elements within the .lawMatrixNode container.
 * These styles aim for a clean, readable layout with moderate font sizes for headings.
 */

/* Base container margins for .lawMatrixNode */
.lawMatrixNode {
    margin-top: 20px;       /* Top margin for the node */
    margin-right: 25px;     /* Right margin for the node */
    margin-bottom: 20px;    /* Bottom margin for the node */
    margin-left: 25px;      /* Left margin for the node */
    /*
     * You might also consider adding a max-width and padding
     * if this node is a content block that needs internal spacing
     * and a readable line length.
     * Example:
     * max-width: 800px;
     * padding: 15px;
     */
}

/* Headings */
.lawMatrixNode h1 {
    font-size: 2rem;        /* Main heading, not overly large */
    font-weight: 700;       /* Bold and prominent */
    line-height: 1.2;       /* Good line spacing for readability */
    margin-top: 2em;        /* Space above the heading */
    margin-bottom: 0.8em;   /* Space below the heading */
}

.lawMatrixNode h2 {
    font-size: 1.6rem;      /* Secondary heading */
    font-weight: 600;       /* Slightly less bold than h1 */
    line-height: 1.3;
    margin-top: 1.8em;
    margin-bottom: 0.7em;
}

.lawMatrixNode h3 {
    font-size: 1.4rem;      /* Tertiary heading */
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.lawMatrixNode h4 {
    font-size: 1.2rem;      /* Quaternary heading */
    font-weight: 500;       /* Lighter weight for less prominence */
    line-height: 1.5;
    margin-top: 1.4em;
    margin-bottom: 0.5em;
}

.lawMatrixNode h5 {
    font-size: 1.1rem;      /* Fifth-level heading */
    font-weight: 500;
    line-height: 1.5;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
}

/* Paragraphs */
.lawMatrixNode p {
    font-size: 1rem;        /* Standard paragraph font size */
    line-height: 1.6;       /* Optimal line height for readability */
    margin-bottom: 1em;     /* Space between paragraphs */
}

/* Unordered Lists */
.lawMatrixNode ul {
    list-style-type: disc;  /* Default bullet style */
    margin-top: 1em;        /* Space above the list */
    margin-bottom: 1em;     /* Space below the list */
    padding-left: 25px;     /* Indentation for bullet points */
}

/* List Items */
.lawMatrixNode li {
    font-size: 1rem;        /* Consistent font size with paragraphs */
    line-height: 1.6;       /* Consistent line height */
    margin-bottom: 0.5em;   /* Small space between list items */
}

/* Optional: Remove bottom margin from the last element inside the node
 * to prevent excessive spacing at the bottom of the container. */
.lawMatrixNode p:last-child,
.lawMatrixNode ul:last-child,
.lawMatrixNode li:last-child {
    margin-bottom: 0;
}
