body {
    font-family: 'Poppins', sans-serif;
    background-color: hsl(240, 10%, 10%);
    color: hsl(0, 0%, 90%);
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-dark-primary {
    background-color: hsl(240, 10%, 10%);
}

.bg-dark-secondary {
    background-color: hsl(240, 10%, 15%);
}

.bg-dark-tertiary {
    background-color: hsl(240, 10%, 20%);
}

.text-primary {
    color: hsl(210, 80%, 60%) !important;
}

.text-muted-custom {
    color: hsl(0, 0%, 70%) !important;
}

.header {
    background-color: rgba(10, 10, 15, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1030;
}

.logo-img {
    height: 40px;
}

.site-title {
    font-size: clamp(1rem,2.5vw,1.8rem);
    font-weight: 700;
    color: hsl(210, 80%, 60%);
    text-shadow: 0 0 8px rgba(30, 144, 255, 0.6);
}

.main-nav .nav-link {
    color: hsl(0, 0%, 90%);
    font-weight: 600;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: hsl(210, 80%, 60%);
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: hsl(210, 80%, 60%);
    transition: width 0.3s ease, left 0.3s ease;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 100%;
    left: 0;
}

.cta-button {
    background-color: hsl(210, 80%, 60%);
    border-color: hsl(210, 80%, 60%);
    color: #fff;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
}

.cta-button:hover {
    background-color: hsl(210, 70%, 70%);
    border-color: hsl(210, 70%, 70%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.6);
}

.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30, 144, 255, 0.7); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(30, 144, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30, 144, 255, 0); }
}

.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-img {
    z-index: 0;
    filter: brightness(0.4) grayscale(0.2);
    transform: scale(1.05);
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.6) 0%, rgba(10, 10, 15, 0.8) 100%);
    z-index: 1;
}

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
    color: #fff;
}

.hero-section p.lead {
    font-size: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: hsl(0, 0%, 85%);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: hsl(210, 80%, 60%);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(30, 144, 255, 0.4);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: hsl(210, 80%, 60%);
    border-radius: 2px;
}

.collapse-container .btn-outline-primary {
    color: hsl(210, 80%, 60%);
    border-color: hsl(210, 80%, 60%);
    transition: all 0.3s ease;
}

.collapse-container .btn-outline-primary:hover {
    background-color: hsl(210, 80%, 60%);
    color: #fff;
}

.collapse-content {
    transition: height 0.5s ease-in-out;
    overflow: hidden;
}

.game-iframe-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.game-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
    transition: opacity 0.5s ease;
}

.game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.game-iframe.active {
    opacity: 1;
}

.game-iframe-wrapper.game-active .game-poster,
.game-iframe-wrapper.game-active .game-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-game-button {
    z-index: 3;
}

.game-mode-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 10px;
}

.game-mode-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(30, 144, 255, 0.3);
}

.game-mode-card .card-img-top {
    height: 180px;
    object-fit: contain;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.game-mode-card .card-body {
    padding: 20px;
}

.game-mode-card .card-title {
    color: hsl(210, 80%, 60%);
    font-weight: 600;
}

.game-mode-card .rating i {
    color: gold;
}

.game-mode-card .active-players {
    font-size: 0.9rem;
    color: hsl(0, 0%, 70%);
}

.stats-item h5 {
    color: hsl(210, 80%, 60%);
    font-weight: 600;
}

.progress-bar-custom {
    background-color: hsl(240, 10%, 25%);
    border-radius: 5px;
    height: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.progress-fill {
    background-color: hsl(210, 80%, 60%);
    height: 100%;
    border-radius: 5px;
    transition: width 1.5s ease-out;
    position: absolute;
    left: 0;
    top: 0;
}

.progress-label {
    color: hsl(0, 0%, 90%);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.stat-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(30, 144, 255, 0.3);
}

.stat-number {
    color: hsl(210, 80%, 60%);
    font-weight: 700;
}

.review-card {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(30, 144, 255, 0.3);
}

.review-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid hsl(210, 80%, 60%);
}

.review-card .rating i {
    color: gold;
}

.update-group h3.update-year {
    color: hsl(210, 80%, 60%);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.update-group h3.update-year::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 3px;
    background-color: hsl(210, 80%, 60%);
    border-radius: 2px;
}

.list-group-item {
    border-left: 4px solid hsl(210, 80%, 60%);
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rating-bar-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rating-bar-group .rating-label {
    width: 80px;
    font-weight: 600;
    color: hsl(0, 0%, 90%);
}

.rating-bar-group .progress-bar-custom {
    flex-grow: 1;
    margin-left: 15px;
    height: 25px;
}

.rating-bar-group .progress-label-inner {
    color: hsl(0, 0%, 90%);
    font-weight: 600;
    position: absolute;
    right: 10px;
    z-index: 1;
}

.compliance-item {
    flex-basis: 200px;
    margin: 10px;
}

.compliance-item .compliance-icon {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(30, 144, 255, 0.4));
}

.game-footer {
    background-color: hsl(240, 10%, 8%);
    padding: 40px 0;
    border-top: 1px solid hsl(240, 10%, 20%);
}

.logo-img-footer {
    height: 35px;
    filter: brightness(0.8);
}

.game-footer p, .game-footer small {
    color: hsl(0, 0%, 70%);
}

.age-rating-img {
    height: 40px;
    vertical-align: middle;
}

.footer-link {
    color: hsl(0, 0%, 70%);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: hsl(210, 80%, 60%);
    text-decoration: underline;
}

.modal-content {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
}

.modal-header {
    border-bottom: 1px solid hsl(240, 10%, 25%);
}

.modal-footer {
    border-top: 1px solid hsl(240, 10%, 25%);
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

@media (max-width: 991.98px) {
    .main-nav {
        display: none; /* Hide nav for smaller screens, could implement a hamburger menu if needed */
    }
    .hero-section h1 {
        font-size: 3rem;
    }
    .hero-section p.lead {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .game-iframe-wrapper {
        padding-bottom: 75%; /* 4:3 Aspect Ratio for smaller screens */
    }
}

@media (max-width: 767.98px) {
    .header .navbar-brand {
        font-size: 1.5rem;
    }
    .cta-button {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    .hero-section {
        min-height: 80vh;
        padding-top: 100px;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .rating-bar-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .rating-bar-group .rating-label {
        margin-bottom: 5px;
    }
    .rating-bar-group .progress-bar-custom {
        width: 100%;
        margin-left: 0;
    }
    .compliance-item {
        flex-basis: 150px;
    }
}/* Base styles for the terms and conditions container */
.termsCaveBox {
    margin-top: 60px; /* Top margin for the entire box */
    margin-left: 20px; /* Left margin for the entire box */
    margin-right: 20px; /* Right margin for the entire box */
    max-width: 900px; /* Max width for content readability */
    margin-left: auto; /* Center the box horizontally */
    margin-right: auto; /* Center the box horizontally */
    padding-left: 15px; /* Inner padding for content on the left */
    padding-right: 15px; /* Inner padding for content on the right */
}

/* Heading styles within .termsCaveBox */
.termsCaveBox h1 {
    font-size: 1.75rem; /* Moderate H1 font size (approx. 28px) */
    margin-top: 2.5em; /* Top margin for spacing from previous block */
    margin-bottom: 1em; /* Bottom margin for spacing to next block */
    line-height: 1.2; /* Line height for better readability */
    font-weight: 700; /* Bold font weight */
}

.termsCaveBox h2 {
    font-size: 1.5rem; /* Moderate H2 font size (approx. 24px) */
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.3;
    font-weight: 600;
}

.termsCaveBox h3 {
    font-size: 1.25rem; /* Moderate H3 font size (approx. 20px) */
    margin-top: 1.8em;
    margin-bottom: 0.7em;
    line-height: 1.4;
    font-weight: 600;
}

.termsCaveBox h4 {
    font-size: 1.1rem; /* Moderate H4 font size (approx. 17.6px) */
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    line-height: 1.4;
    font-weight: 500;
}

.termsCaveBox h5 {
    font-size: 1rem; /* Moderate H5 font size (approx. 16px, often same as body but bolder) */
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    line-height: 1.5;
    font-weight: 500;
}

/* Paragraph styles within .termsCaveBox */
.termsCaveBox p {
    font-size: 1rem; /* Standard paragraph font size (approx. 16px) */
    margin-top: 0; /* No top margin if following another block, usually */
    margin-bottom: 1.2em; /* Bottom margin for paragraph separation */
    line-height: 1.6; /* Line height for better body text readability */
}

/* Unordered list styles within .termsCaveBox */
.termsCaveBox ul {
    list-style-type: disc; /* Default bullet style */
    margin-top: 1em; /* Top margin for the list block */
    margin-bottom: 1.2em; /* Bottom margin for the list block */
    padding-left: 25px; /* Indentation for bullet points */
}

/* List item styles within .termsCaveBox */
.termsCaveBox li {
    font-size: 1rem; /* List item font size */
    margin-bottom: 0.5em; /* Space between individual list items */
    line-height: 1.6; /* Line height for list items */
}


.card-text, .card-body span{
    color: #fff !important;
}

@media(max-width: 600px){
    .game-iframe-section{
            min-height: auto;
            padding-top: 1rem !important;
            padding-bottom: 1rem !important;
    }
}

@media(max-width: 490px){
    .progress-bar-custom{
        height: 50px;
    }
}


