body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1a;
    color: #f8f9fa;
    line-height: 1.6;
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #4CAF50;
    --secondary-color: #343a40;
    --dark-color: #1a1a1a;
    --light-text: #f8f9fa;
    --muted-text: #adb5bd;
    --disclaimer-bg: #212529;
    --disclaimer-border: #4CAF50;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--light-text);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* Responsive Typography */
@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }
    h2 {
        font-size: 2.5rem;
    }
    h3 {
        font-size: 1.8rem;
    }
    h4 {
        font-size: 1.5rem;
    }
    .site-name {
        font-size: 1.8rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    h4 {
        font-size: 1.3rem;
    }
    .site-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    h4 {
        font-size: 1rem;
    }
    .site-name {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

/* Global Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--light-text);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover {
    background-color: #45a049;
    border-color: #45a049;
    transform: translateY(-2px);
}
.btn-primary:focus, .btn-primary.focus {
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.5);
}

.btn-outline-light {
    color: var(--light-text);
    border-color: var(--light-text);
}
.btn-outline-light:hover {
    background-color: var(--light-text);
    color: var(--dark-color);
}

.bg-dark {
    background-color: var(--dark-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.navbar {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(5px);
    padding: 0.8rem 0;
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--light-text);
}

.navbar-logo {
    height: 30px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--light-text);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, transform 0.2s ease;
}
.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar-toggler {
    border-color: var(--primary-color);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2876, 175, 80, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.offcanvas {
    background-color: var(--dark-color);
    color: var(--light-text);
}
.offcanvas-header {
    border-bottom: 1px solid var(--secondary-color);
}
.offcanvas-title {
    color: var(--primary-color);
}
.offcanvas-body .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

/* Fullscreen mobile offcanvas: cover entire viewport */
@media (max-width: 991.98px) {
    #offcanvasNavbar {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        z-index: 1061; /* above cookie banner/backdrops */
        background-color: var(--dark-color);
    }
    #offcanvasNavbar .offcanvas-header {
        background-color: var(--dark-color);
    }
    #offcanvasNavbar .offcanvas-body {
        padding: 1rem;
        height: calc(100vh - 56px); /* approx header height */
        overflow-y: auto;
        background-color: var(--dark-color);
    }
    #offcanvasNavbar .navbar-nav {
        display: flex;
        flex-direction: column;
        gap: .5rem;
    }
    #offcanvasNavbar .navbar-nav .nav-link {
        color: #fff !important;
        font-size: 1.1rem;
    }
    /* White close icon */
    #offcanvasNavbar .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
        opacity: 1;
    }
}

/* Make offcanvas close icon white (mobile menu) */
.offcanvas-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Mobile-only fixes for offcanvas menu; desktop remains unaffected */
@media (max-width: 991.98px) {
    #offcanvasNavbar {
        z-index: 1061; /* above backdrop/banners */
    }
    #offcanvasNavbar .offcanvas-body {
        display: block;
        padding: 1rem;
        height: calc(100vh - 56px); /* header height approx */
        overflow-y: auto;
        background-color: var(--dark-color);
    }
    #offcanvasNavbar .navbar-nav {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    #offcanvasNavbar .navbar-nav .nav-link {
        color: #ffffff !important;
        display: block;
    }
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

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

/* Cards */
.card {
    background-color: var(--secondary-color);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card-title {
    color: var(--primary-color);
}

.game-card .card-img-top {
    height: 300px;
    object-fit: cover;
    border-top-left-radius: calc(0.5rem - 1px);
    border-top-right-radius: calc(0.5rem - 1px);
}

.game-card .card-body {
    display: flex;
    flex-direction: column;
}

.game-card .play-game-btn {
    width: 100%;
}

.game-link {
    display: block;
}

/* Reviews */
.review-card {
    max-width: 500px;
    background-color: var(--dark-color);
    border: 1px solid var(--primary-color);
}
.review-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}
.text-warning {
    color: #ffc107 !important;
}

/* Disclaimer Section */
.bg-disclaimer {
    background-color: #121212;
    padding: 3rem 0;
}
.disclaimer-box {
    background-color: var(--disclaimer-bg);
    border: 2px solid var(--disclaimer-border);
    padding: 2rem;
    color: var(--muted-text);
}
.disclaimer-title {
    color: var(--primary-color);
    font-size: 1.8rem;
}
.disclaimer-box p strong {
    color: var(--light-text);
}
.disclaimer-box a {
    color: var(--primary-color);
}
.disclaimer-box a:hover {
    color: var(--light-text);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    padding-top: 3rem;
    padding-bottom: 3rem;
    color: var(--muted-text);
}
.footer a {
    color: var(--muted-text);
}
.footer a:hover {
    color: var(--primary-color);
}
.footer-logos {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}
.footer-logo-item {
    max-width: 120px;
    height: auto;
    display: block;
    filter: brightness(0.8);
    transition: filter 0.3s ease, transform 0.2s ease;
}
.footer-logo-item:hover {
    filter: brightness(1);
    transform: scale(1.05);
}

/* Age Verification Modal */
.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.age-verification-overlay.show {
    opacity: 1;
    visibility: visible;
}
.age-verification-content {
    background-color: var(--secondary-color);
    color: var(--light-text);
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
}

/* Game Iframe Modal */
.game-iframe-modal .modal-content {
    background-color: rgba(0, 0, 0, 0.9);
    border: none;
}
.game-iframe-modal .modal-header {
    border-bottom: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1051;
    background-color: rgba(0, 0, 0, 0.5);
}
.game-iframe-modal .modal-title {
    color: var(--light-text);
}
.game-iframe-modal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}
.game-iframe-modal .modal-body {
    padding: 0;
    position: relative;
}
.game-iframe-modal iframe {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #000;
}

/* Cookie Banner */
.cookie-banner {
    z-index: 1050;
    border-top: 1px solid var(--primary-color);
    background-color: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(5px);
}
.cookie-banner a {
    color: var(--primary-color);
}
.cookie-banner a:hover {
    color: var(--light-text);
}

/* Cookie Settings Modal */
#cookieSettingsModal .modal-content {
    border: 1px solid var(--primary-color);
}
#cookieSettingsModal .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
#cookieSettingsModal .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

@media (max-width: 1199px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100%;
        width: 250px;
        background-color: var(--dark-color);
        transition: right 0.3s ease-in-out;
        z-index: 1040;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        padding-top: 60px;
    }
    .navbar-collapse.show {
        right: 0;
    }
    .navbar-toggler {
        display: block;
    }
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 1rem;
        width: 100%;
    }
    .navbar-nav .nav-item {
        width: 100%;
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

@media (min-width: 1200px) {
    .navbar-toggler {
        display: none;
    }
    .offcanvas {
        visibility: visible;
        background-color: transparent;
        border: none;
        position: static;
        transform: none;
        width: auto;
    }
    .offcanvas-header {
        display: none;
    }
    .offcanvas-body {
        padding: 0;
        flex-grow: 1;
    }
    .offcanvas-body .navbar-nav {
        flex-direction: row;
        justify-content: flex-end;
    }
    .offcanvas-body .navbar-nav .nav-link {
        border-bottom: none;
    }
}
/* Base styles for the content frame */
.dataClauseFrame {
    padding-top: 20px;   /* Top padding for the content frame */
    padding-left: 15px;  /* Left padding for the content frame */
    padding-right: 15px; /* Right padding for the content frame */
    /* You might want to add a max-width and margin: 0 auto; for centering on wide screens,
       but it's not explicitly requested for stock styles here. */
}

/* Heading styles within dataClauseFrame */
/* H1: Main section title, moderate size */
.dataClauseFrame h1 {
    font-size: 1.8em;       /* Font size for H1 */
    margin-top: 1.5em;      /* Top margin for H1 */
    margin-bottom: 0.8em;   /* Bottom margin for H1 */
    line-height: 1.2;       /* Line height for H1 for better readability */
    font-weight: bold;      /* Ensure H1 is bold */
}

/* H2: Sub-section title */
.dataClauseFrame h2 {
    font-size: 1.5em;       /* Font size for H2 */
    margin-top: 1.2em;      /* Top margin for H2 */
    margin-bottom: 0.7em;   /* Bottom margin for H2 */
    line-height: 1.3;       /* Line height for H2 */
    font-weight: bold;      /* Ensure H2 is bold */
}

/* H3: Sub-sub-section title */
.dataClauseFrame h3 {
    font-size: 1.3em;       /* Font size for H3 */
    margin-top: 1em;        /* Top margin for H3 */
    margin-bottom: 0.6em;   /* Bottom margin for H3 */
    line-height: 1.4;       /* Line height for H3 */
    font-weight: bold;      /* Ensure H3 is bold */
}

/* H4: Minor heading */
.dataClauseFrame h4 {
    font-size: 1.1em;       /* Font size for H4 */
    margin-top: 0.8em;      /* Top margin for H4 */
    margin-bottom: 0.5em;   /* Bottom margin for H4 */
    line-height: 1.5;       /* Line height for H4 */
    font-weight: bold;      /* Ensure H4 is bold */
}

/* H5: Very minor heading, often bolded text */
.dataClauseFrame h5 {
    font-size: 1em;         /* Font size for H5 (same as body text) */
    margin-top: 0.7em;      /* Top margin for H5 */
    margin-bottom: 0.4em;   /* Bottom margin for H5 */
    line-height: 1.6;       /* Line height for H5 */
    font-weight: bold;      /* Ensure H5 is bold */
}

/* Paragraph styles */
.dataClauseFrame p {
    font-size: 1em;         /* Base font size for paragraphs */
    margin-top: 1em;        /* Top margin for paragraphs */
    margin-bottom: 1em;     /* Bottom margin for paragraphs */
    line-height: 1.6;       /* Line height for readability */
}

/* Unordered list styles */
.dataClauseFrame ul {
    list-style-type: disc;  /* Default bullet style */
    margin-top: 1em;        /* Top margin for lists */
    margin-bottom: 1em;     /* Bottom margin for lists */
    padding-left: 25px;     /* Indentation for list items */
}

/* List item styles */
.dataClauseFrame li {
    margin-bottom: 0.5em;   /* Space between list items */
    line-height: 1.5;       /* Line height for list items */
}

/* Remove bottom margin from the last list item to prevent extra space */
.dataClauseFrame li:last-child {
    margin-bottom: 0;
}

span.site-name:hover {
color: #4cb050;
}

p.card-text {
    color: rgb(255, 255, 255);
}

h5#gameModalLabel {
    display: none;
}

p.mb-0 {
    color: white;
    padding: 20px;
}

.text-muted {
    --bs-text-opacity: 1;
    color: rgb(255 255 255 / 75%) !important;
}