/* Global Styles */
:root {
    --primary-color: #e53935; /* Red */
    --secondary-color: #ffb74d; /* Orange/Gold for accents */
    --dark-bg: #1a1a1a;
    --dark-alt-bg: #222222;
    --text-color: #f0f0f0;
    --text-light: #cccccc;
    --border-color: #444444;
    --card-bg: #2a2a2a;
    --card-hover-shadow: rgba(229, 57, 53, 0.4);
    --font-poppins: 'Poppins', sans-serif;
    --font-open-sans: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-open-sans);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    box-sizing: border-box;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-poppins);
    color: var(--text-color);
    line-height: 1.2;
}

/* Adaptive Typography */
h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

@media (max-width: 767.98px) {
    h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    h2 {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }
    h3 {
        font-size: clamp(1.25rem, 6vw, 1.8rem);
    }
}

.section-title {
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(229, 57, 53, 0.5);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
    color: #fff;
}

.btn-secondary {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--border-color);
    border-color: var(--primary-color);
    color: var(--text-color);
}

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

/* Navbar */
.navbar {
    background-color: rgba(26, 26, 26, 0.95);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    z-index: 1030;
}

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

.navbar-brand:hover {
    color: var(--primary-color);
}

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

.site-name {
    font-size: clamp(1.25rem, 4vw, 1.8rem);
    color: var(--text-color);
}

@media (max-width: 767.98px) {
    .site-name {
        font-size: clamp(1.1rem, 5vw, 1.25rem);
    }
}

.navbar-toggler {
    border-color: var(--border-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%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.offcanvas {
    background-color: var(--dark-bg);
    color: var(--text-color);
}

.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
}

.offcanvas-title {
    color: var(--text-color);
}

.offcanvas-body .navbar-nav .nav-link {
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
}

.offcanvas-body .navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(229, 57, 53, 0.1);
}

@media (min-width: 1200px) {
    .navbar-nav .nav-link {
        color: var(--text-light);
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        transition: color 0.3s ease, background-color 0.3s ease;
    }

    .navbar-nav .nav-link:hover {
        color: var(--primary-color);
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: 1;
}

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

.hero-content {
    z-index: 3;
}

.hero-content h1 {
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.hero-content p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.rotating-keyword {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-block;
    min-width: 150px; /* Adjust based on longest keyword */
}

.hero-background-games {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.game-card-bg {
    position: absolute;
    width: 150px;
    height: 100px;
    opacity: 0.1;
    filter: grayscale(100%);
    animation: slideBackgroundCards linear infinite;
}

.game-card-bg.card-1 {
    top: 10%;
    left: -20%;
    animation-duration: 45s;
    animation-delay: 0s;
}

.game-card-bg.card-2 {
    top: 40%;
    left: -30%;
    animation-duration: 50s;
    animation-delay: 15s;
}

.game-card-bg.card-3 {
    top: 70%;
    left: -10%;
    animation-duration: 40s;
    animation-delay: 30s;
}

@keyframes slideBackgroundCards {
    0% {
        transform: translateX(0) rotate(0deg);
        opacity: 0.05;
    }
    50% {
        opacity: 0.15;
    }
    100% {
        transform: translateX(120vw) rotate(360deg);
        opacity: 0.05;
    }
}

/* How to Play Section */
.step-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--card-hover-shadow);
}

.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.step-item h3 {
    color: var(--primary-color);
    margin-top: 1rem;
}

/* Game Selection Section */
.game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px var(--card-hover-shadow);
}

.game-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .card-img-top {
    transform: scale(1.05);
}

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

.game-card .card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

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

/* Game Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.game-modal.active {
    opacity: 1;
    visibility: visible;
}

.game-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.close-game-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1060;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.close-game-modal:hover {
    background-color: var(--secondary-color);
    transform: rotate(90deg);
}

/* Leaderboards Section */
.leaderboard-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.reset-timer-text {
    color: var(--text-light);
    font-size: 1.1rem;
}

#countdownTimer {
    font-weight: 700;
    color: var(--secondary-color);
}

.leaderboard-list .list-group-item {
    background-color: var(--dark-alt-bg);
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    border-radius: 0.3rem;
    color: var(--text-color);
    padding: 1rem 1.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.leaderboard-list .list-group-item:hover {
    background-color: rgba(229, 57, 53, 0.1);
    transform: translateX(5px);
}

.leaderboard-list .list-group-item:first-child {
    background-color: rgba(255, 183, 77, 0.15);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(255, 183, 77, 0.3);
}

.leaderboard-list .rank {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 30px;
}

.leaderboard-list .list-group-item:first-child .rank {
    color: var(--secondary-color);
}

.leaderboard-list .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.leaderboard-list .list-group-item:first-child .avatar {
    border-color: var(--secondary-color);
}

.leaderboard-list .player-name {
    font-weight: 600;
    color: var(--text-color);
}

.leaderboard-list .player-xp {
    font-weight: 700;
    color: var(--secondary-color);
}

/* Quests Section */
.accordion-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.accordion-header .accordion-button {
    background-color: var(--dark-alt-bg);
    color: var(--text-color);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border: none;
    transition: background-color 0.3s ease;
}

.accordion-header .accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-header .accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-body {
    background-color: var(--card-bg);
    color: var(--text-light);
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.accordion-body ul li {
    margin-bottom: 0.5rem;
}

.accordion-body ul li i {
    color: var(--primary-color);
}

.progress {
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
}

.progress-bar {
    background-color: var(--secondary-color);
    transition: width 0.6s ease;
}

.xp-reward {
    font-weight: 600;
    color: var(--secondary-color);
    display: block;
    margin-top: 0.5rem;
}

/* FAQ Section */
#faq-section .accordion-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

#faq-section .accordion-header .accordion-button {
    background-color: var(--dark-alt-bg);
    color: var(--text-color);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border: none;
    transition: background-color 0.3s ease;
}

#faq-section .accordion-header .accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

#faq-section .accordion-header .accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

#faq-section .accordion-body {
    background-color: var(--card-bg);
    color: var(--text-light);
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Disclaimer Section */
#disclaimer-section {
    background-color: var(--dark-bg);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.disclaimer-box {
    background-color: #331f1f; /* Darker red/brown for distinction */
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.4);
    color: var(--text-light);
}

.disclaimer-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.disclaimer-box p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.disclaimer-box a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.disclaimer-box a:hover {
    color: var(--text-color);
}

/* Footer */
.bg-dark-footer {
    background-color: var(--dark-alt-bg);
    border-top: 1px solid var(--border-color);
}

.footer-brand .site-name {
    color: var(--text-color);
    font-size: 1.5rem;
}

.footer-brand .footer-logo {
    height: 35px;
    width: auto;
}

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

.footer-nav .footer-link {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-nav .footer-link:hover {
    color: var(--primary-color);
}

.responsible-gaming-logos {
    gap: 1rem;
}

.gaming-logo, .gaming-logo-18plus {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.gaming-logo:hover {
    filter: brightness(1);
}

.gaming-logo-18plus {
    max-width: 60px;
    filter: none;
}

/* Age Verification Modal */
.age-verification-modal {
    background-color: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 0.75rem;
    color: var(--text-color);
    padding: 1.5rem;
}

.age-verification-modal .modal-title {
    color: var(--primary-color);
    font-weight: 700;
}

.age-verification-modal .modal-body p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Utility for scroll lock */
body.modal-open {
    overflow: hidden;
}
/* Base styling for the content wrapper */
.rightsCloudWrap {
    margin-top: 3em; /* Top margin for spacing above the content */
    padding-left: 20px; /* Left padding for content */
    padding-right: 20px; /* Right padding for content */
}

/* Heading 1 styles */
.rightsCloudWrap h1 {
    font-size: 1.8em; /* Moderately sized heading 1 */
    line-height: 1.2; /* Tighter line height for headings */
    margin-top: 1.5em; /* Top margin for spacing */
    margin-bottom: 0.8em; /* Bottom margin for spacing */
    font-weight: bold; /* Ensure it's bold */
}

/* Heading 2 styles */
.rightsCloudWrap h2 {
    font-size: 1.5em; /* Moderately sized heading 2 */
    line-height: 1.2;
    margin-top: 1.2em;
    margin-bottom: 0.7em;
    font-weight: bold;
}

/* Heading 3 styles */
.rightsCloudWrap h3 {
    font-size: 1.2em; /* Moderately sized heading 3 */
    line-height: 1.3;
    margin-top: 1em;
    margin-bottom: 0.6em;
    font-weight: bold;
}

/* Heading 4 styles */
.rightsCloudWrap h4 {
    font-size: 1.1em; /* Moderately sized heading 4 */
    line-height: 1.4;
    margin-top: 0.8em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

/* Heading 5 styles */
.rightsCloudWrap h5 {
    font-size: 1em; /* Moderately sized heading 5, often base font size */
    line-height: 1.5;
    margin-top: 0.7em;
    margin-bottom: 0.4em;
    font-weight: bold;
}

/* Paragraph styles */
.rightsCloudWrap p {
    font-size: 1em; /* Inherit or explicitly set to base font size */
    line-height: 1.6; /* Good readability for paragraphs */
    margin-top: 0; /* No top margin by default, use margin-bottom for separation */
    margin-bottom: 1em; /* Space between paragraphs */
}

/* Unordered list styles */
.rightsCloudWrap ul {
    list-style-type: disc; /* Default bullet points */
    margin-top: 1em; /* Space before the list */
    margin-bottom: 1em; /* Space after the list */
    padding-left: 25px; /* Indent for bullet points */
}

/* List item styles */
.rightsCloudWrap li {
    font-size: 1em; /* Inherit or explicitly set to base font size */
    line-height: 1.5; /* Line height for list items */
    margin-bottom: 0.5em; /* Space between list items */
}

.offcanvas-header .btn-close,
.accordion-button::after{
    filter: invert(1);
}

@media (max-width: 991px){

    .offcanvas {
        bottom: auto;
        width: 100% !important;
        max-width: 300px;
        height: 100vh;
        text-align: center;
    }
}

